-
1. Re: Non-resolvable parent POM error for artifact in local Nexus repository
lincolnthree Oct 8, 2012 4:47 PM (in response to oman002)If Forge is unable to resolve the parent POM, then chances are good that Maven builds will have the same problem. My recommendation is to either: A) Fix the relativePath location so that it points to the correct parent POM B) Remove the relativePath entirely.
I hope this helps,
Lincoln
-
2. Re: Non-resolvable parent POM error for artifact in local Nexus repository
oman002 Oct 8, 2012 8:24 PM (in response to lincolnthree)Hi thanks for your reply!
The maven build runs fine. There also isn't any relativePath location in my pom.xml:
<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>
<parent>
<artifactId>common-parent</artifactId>
<groupId>net.rda</groupId>
<version>1.5.0</version>
</parent>
<artifactId>core-persistence</artifactId>
<groupId>net.rda</groupId>
<version>1.5.0.8-SNAPSHOT</version>
<name>Core Persistance</name>
<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
<testResource>
<directory>src/main/properties</directory>
</testResource>
</testResources>
</build>
</project>
Could it be that forge isn't finding my .m2/settings.xml file which specifies the local Nexus repository that contains the parent pom?
-
3. Re: Non-resolvable parent POM error for artifact in local Nexus repository
lincolnthree Oct 9, 2012 4:59 PM (in response to oman002)Odd. Could you perhaps email me your entire project (so that I can try to reproduce your issue) on the forge-dev list? forge-dev@lists.jboss.org
I'd like to take a closer look.
Thanks,
~Lincoln
-
4. Re: Non-resolvable parent POM error for artifact in local Nexus repository
oman002 Oct 9, 2012 9:43 PM (in response to lincolnthree)1 of 1 people found this helpfulIf I modify my pom and explictly add my local Nexus repository it works. However I expect forge to use the repos I have specified in maven conf\settings.xml, just as mvn package does.
I've posted details for replicating the issue to forge-dev@lists.jboss.org
Thanks!!
-
5. Re: Non-resolvable parent POM error for artifact in local Nexus repository
lincolnthree Oct 10, 2012 1:59 AM (in response to oman002)Okay. Forge may be ignoring repositories in settings.xml, which is not good. I'll have a look at this.
-
6. Re: Non-resolvable parent POM error for artifact in local Nexus repository
lincolnthree Oct 10, 2012 5:16 PM (in response to lincolnthree)Fixed in latest SNAPSHOT. Could you try building forge from source (or waiting for a new snapshot build) and try again?
1.1.1-SNAPSHOT - you might have to wait for the CI build if you don't do it yourself.
~Lincoln
-
7. Re: Non-resolvable parent POM error for artifact in local Nexus repository
oman002 Oct 10, 2012 8:49 PM (in response to lincolnthree)Thanks very much for the fix - however I tried forge-distribution-1.1.1-20121010.225553-23.zip and it still has the error (and some others beside).
On a side note, to clarify the above - when I said local Nexus repository I really meant non-public coporate Nexus repository.
If a locally cached copy of the parent pom and it's .sha1 file exist in my machine's local repository (ie: .m2/repository) then there is no problem for forge.