Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Non-resolvable parent POM on OSGI Bundle Project
Non-resolvable parent POM on OSGI Bundle Project [message #1403567] Thu, 24 July 2014 12:44 Go to next message
John Doe is currently offline John DoeFriend
Messages: 25
Registered: May 2014
Junior Member
Hello,

When I create a new OSGI Bundle project, I tried to do a maven build but I have this error :
Non-resolvable parent POM: Could not find artifact test:test:pom:1.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 9, column 10 -> [Help 2]


And this is my pom.xml wich is create automatically :
<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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<name>test - </name>
	<groupId>test</groupId>
	<artifactId>Test</artifactId>
	<packaging>eclipse-plugin</packaging>

	<parent>
		<groupId>test</groupId>
		<artifactId>test</artifactId>
		<relativePath>../test/pom.xml</relativePath>
		<version>1.0.0-SNAPSHOT</version>
	</parent>
	<build>
		<resources>
			<resource>
				<directory>.</directory>
				<includes>
					<include>META-INF/</include>
				</includes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-source-plugin</artifactId>
			</plugin>
		</plugins>
	</build>
</project>


I didn't use to use maven so may be I missed something. But I can't found what is wrong. Thanks for help.

Re: Non-resolvable parent POM on OSGI Bundle Project [message #1403574 is a reply to message #1403567] Thu, 24 July 2014 13:08 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You always build run maven on the pom.xml in releng. I also doubt that
the relative path you use to the parent pom.xml is correct (if it should
integrate into the whole application.)

So i think you want:
a) make the parent resolve look like
> <parent>
> <groupId>MyApplicationE4</groupId>
> <artifactId>MyApplicationE4.app.releng</artifactId>
> <relativePath>../MyApplicationE4.app.releng/pom.xml</relativePath>
> <version>1.0.0-SNAPSHOT</version>
> </parent>

b) add your new pom.xml a module in your ...releng/pom.xml adding
<modules>
....
<module>../test</module>
</modules>

Tom

On 24.07.14 14:44, John Doe wrote:
> Hello,
>
> When I create a new OSGI Bundle project, I tried to do a maven build but
> I have this error :
> Non-resolvable parent POM: Could not find artifact
> test:test:pom:1.0.0-SNAPSHOT and 'parent.relativePath' points at wrong
> local POM @ line 9, column 10 -> [Help 2]
>
>
> And this is my pom.xml wich is create automatically :
>
> <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/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <name>test - </name>
> <groupId>test</groupId>
> <artifactId>Test</artifactId>
> <packaging>eclipse-plugin</packaging>
>
> <parent>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <relativePath>../test/pom.xml</relativePath>
> <version>1.0.0-SNAPSHOT</version>
> </parent>
> <build>
> <resources>
> <resource>
> <directory>.</directory>
> <includes>
> <include>META-INF/</include>
> </includes>
> </resource>
> </resources>
> <plugins>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-source-plugin</artifactId>
> </plugin>
> </plugins>
> </build>
> </project>
>
>
> I didn't use to use maven so may be I missed something. But I can't
> found what is wrong. Thanks for help.
>
>
Re: Non-resolvable parent POM on OSGI Bundle Project [message #1403677 is a reply to message #1403574] Fri, 25 July 2014 08:58 Go to previous messageGo to next message
John Doe is currently offline John DoeFriend
Messages: 25
Registered: May 2014
Junior Member
Nice Tom. I'll try it.
Re: Non-resolvable parent POM on OSGI Bundle Project [message #1403727 is a reply to message #1403677] Fri, 25 July 2014 15:42 Go to previous messageGo to next message
John Doe is currently offline John DoeFriend
Messages: 25
Registered: May 2014
Junior Member
I could not resolve the problem. The Test module couldn't find the E4App.app.relend pom.

This is my E4App.relend pom :

...
	<prerequisites>
		<maven>3.0</maven>
	</prerequisites>

	<groupId>E4App</groupId>
	<artifactId>E4App.app.releng</artifactId>
	<version>1.0.0-SNAPSHOT</version>
	<packaging>pom</packaging>
...
<modules>
		<module>../Test</module>
</modules>


And my Test pom :
 <parent>
    <groupId>E4App</groupId>
    <artifactId>E4App.app.releng</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <relativePath>../E4App.app.releng/pom.xml</relativePath>
  </parent>


I have an error on my Test pom :
Non-resolvable parent POM: Couldnt not find artifact E4App.app.releng:pom:1.0.0-SNAPSHOT 


And I have the same error with the E4App.app, E4App.app.feature and E4App.app.product default pom.xml when I clic on "Open parent POM".

My default E4App.app, E4App.app.feature and E4App.app.product pom.xml :
 <parent>
    <groupId>E4App</groupId>
    <artifactId>E4App.app.releng</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <relativePath>../E4App.app.releng/pom.xml</relativePath>
  </parent>


Moreover, I also try dependency between two Module (after added both in my releng pom.xml). I have the same error.
Test1:jar:1.0.0-SNAPSHOT: Could not find artifact NDTkitTouch:Test2:jar:1.0.0-SNAPSHOT


Thanks again for your help.
Re: Non-resolvable parent POM on OSGI Bundle Project [message #1403737 is a reply to message #1403727] Fri, 25 July 2014 17:49 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
So is the relative path between the Test/pom.xml and the other one ok?

Tom

On 25.07.14 17:42, John Doe wrote:
> I could not resolve the problem. The Test module couldn't find the
> E4App.app.relend pom.
>
> This is my E4App.relend pom :
>
>
> ..
> <prerequisites>
> <maven>3.0</maven>
> </prerequisites>
>
> <groupId>E4App</groupId>
> <artifactId>E4App.app.releng</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> <packaging>pom</packaging>
> ..
> <modules>
> <module>../Test</module>
> </modules>
>
>
> And my Test pom :
>
> <parent>
> <groupId>E4App</groupId>
> <artifactId>E4App.app.releng</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> <relativePath>../E4App.app.releng/pom.xml</relativePath>
> </parent>
>
>
> I have an error on my Test pom :
>
> Non-resolvable parent POM: Couldnt not find artifact
> E4App.app.releng:pom:1.0.0-SNAPSHOT
>
> And I have the same error with the E4App.app, E4App.app.feature and
> E4App.app.product default pom.xml when I clic on "Open parent POM".
>
> My default E4App.app, E4App.app.feature and E4App.app.product pom.xml :
>
> <parent>
> <groupId>E4App</groupId>
> <artifactId>E4App.app.releng</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> <relativePath>../E4App.app.releng/pom.xml</relativePath>
> </parent>
>
>
> Moreover, I also try dependency between two Module (after added both in
> my releng pom.xml). I have the same error.
>
> Test1:jar:1.0.0-SNAPSHOT: Could not find artifact
> NDTkitTouch:Test2:jar:1.0.0-SNAPSHOT
>
>
> Thanks again for your help.
>
Re: Non-resolvable parent POM on OSGI Bundle Project [message #1403831 is a reply to message #1403737] Mon, 28 July 2014 08:05 Go to previous message
John Doe is currently offline John DoeFriend
Messages: 25
Registered: May 2014
Junior Member
I couldn't add tag 'relative path' for a dependency on my pom.xml. The only tags I could add are "Goup Id", "Artifact Id" ,"Version", "Classifier", "Type", "Scope", "System Path".
Previous Topic:Breaking change in nightly
Next Topic:Failed to load p2 repository on maven build
Goto Forum:
  


Current Time: Sat Apr 20 03:50:50 GMT 2024

Powered by FUDForum. Page generated in 0.03451 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top