Hi,

You parent pom is like any artifact and you have to indicate to maven 2
where to find it.

Since you have a corporate repository (via a maven proxy) you have two
solutions :
1. Either you add a reference to your corporate repository in your pom.xml
 <repositories>
   <repository>
     <id>inhouse</id>
     <name>Inhouse maven repository</name>
     <url>url to your corporate repository</url>
     <releases>
       <enabled>true</enabled>
     </releases>
     <snapshots>
       <enabled>false</enabled>
     </snapshots>
   </repository>

2. or by specifying your corporate repository to maven 2 in your setting.xml
 <mirrors>
   <mirror>
     <id>Corporate Proxy</id>
     <mirrorOf>central</mirrorOf>
     <name>my corporate repository</name>
     <url>url to your corporate repository</url>
   </mirror>
It's important to use the token central for the node mirrorOf.

In general, the second solution is better when using a maven 2 proxy.

HTH,

Rémy

Reply via email to