Page 1 of 1

recommended maven configuration don't work

Posted: Sun Mar 30, 2014 2:43 am
by mmdigi
I did what it says to do in http://www.scientiamobile.com/page/wurf ... rogrammers .

However I get the following build error.
Project build error: 'dependencyManagement.dependencies.dependency.artifactId' for scientiamobile2:null:pom is missing. In pom.xml

Code: Select all

<project>
...
	<repositories>
...
		<repository>
		        <!-- Define the following ID in your Maven's settings.xml -->
			<id>scientiamobile2</id>
			<!---You do not need to change the following lines -->
			<name>ScientiaMobile Repository</name>
			<url>http://maven.scientiamobile.com:8081/nexus/content/repositories/private-repository</url>
		</repository>
	</repositories>
...
	<dependencies>
...
		<dependency>
		        <groupId>scientiamobile2</groupId>
		        <artifact>ScientiaMobile Repository</artifact>
		        <version>1.5.1</version>
		        <type>pom</type>
		</dependency>
	</dependencies>
In settings.xml:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0                       http://maven.apache.org/xsd/settings-1.0.0.xsd">
	<server>
	     <id>scientiamobile2</id>
	     <username>***</username>
	     <password>***</password>
	</server>

</settings>
What am I missing?

Re: recommended maven configuration don't work

Posted: Mon Mar 31, 2014 9:53 am
by Elliotfehr
Hello,

It appears this issue is occurring due to the <type>pom</type> tags in the pom.xml file. I have just updated our documentation to reflect this change. Feel free to let us know if you receive any other error messages after this change has been made.

Thank you,

Elliot