Hi,

 

I have a multi module project where in the pom for all the modules
inherit from a parent pom. 

 

This was building fine in maven2, but after moving to maven 3, I get the
following error whenever, building a module that has a dependency on
another module in the project.

 

Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException:
Failure to find
com.cisco.ccbu.uccx:uccx-parent:pom:${uccx-project.version} in
http://xxxx-lnx1.cisco.com:8081/nexus/content/groups/public was cached
in the local repository, resolution will not be reattempted until the
update interval of nexus has elapsed or updates are forced

 

For any module, say module A, the pom says,

 

<parent>

<groupId>com.cisco.xxx.yyyy</groupId>

<artifactId>yyyy-parent</artifactId>

<version>${yyyy-project.version}</version>

 <relativePath>../../../BuildDir/parent-pom.xml</relativePath>

</parent>

 

In maven2, this used to work fine.  But in Maven3, this works only if I
manually add "${yyyy-project.version}" folder (along with the pom and
maven-metadata with version string replaced with
${yyyy-project.version}")  under com/Cisco/xxxx/yyyy/yyyy-parent folder
in repository.

 

I tried doing a maven build by hardcoding all the version numbers, but
still the problem exists.  

 

Any suggestions on how to go about this?

 

Regards

Jayaram.

Reply via email to