Laird Nelson wrote:

I have a pom.xml.  It looks like this:

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>foo-api</artifactId>
   <parent>
     <artifactId>foo-pomtype-api</artifactId>
     <groupId>com.foobar</groupId>
     <version>1.0-SNAPSHOT</version>
   </parent>
[...]
I ran find . -name "pom.xml" | xargs grep 'relativePath' from the root, and
there are no relative path elements in any of our pom files.

relativePath defaults to the value "../pom.xml" and this value, whether explicitly given by you or not, is effective for your POM.

So either specify the proper path to your local parent or set
  <relativePath/>
if the parent isn't supposed to be resolved locally.


Benjamin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to