Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Process Manager (Stardust) » eclipse-collector: Unable to find artifact p2.osgi.bundle:org.eclipse.osgi:jar:3.10.0.v20140513-1456(Dependency problems when building stardust 2.0.0 with maven)
eclipse-collector: Unable to find artifact p2.osgi.bundle:org.eclipse.osgi:jar:3.10.0.v20140513-1456 [message #1388697] Thu, 26 June 2014 20:42 Go to next message
Iwan Imsand is currently offline Iwan ImsandFriend
Messages: 4
Registered: June 2014
Junior Member
Hello

I tried to build stardust 2.0.0 with the manual on wiki.eclipse.org/Stardust/Source_Code, but maven doesn't find all dependencies.

...
[INFO] eclipse-collector-feature ......................... SUCCESS [  2.454 s]
[INFO] eclipse-collector ................................. FAILURE [ 35.657 s]
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.4:copy (copy-eclipse-dependencies) on project eclipse-collector: Unable to find artifact. Could not find artifact p2.osgi.bundle:org.eclipse.osgi:jar:3.10.0.v20140513-1456 in stardust-releases


(the full error is in the attached file)

I tried to download the jar manually, but it seems that there is no such jar?!

I tried to cleanup my local maven repository (and the one in build.tools/build), but without success.

The command line is:

mvn install -f product\components-pom.xml -P stardust-build -Dbuild.tools.home=%build.tools% -Dproduct.home=%product.home% -s %build.tools%\conf\m2\settings.xml


Is the address for the artifact p2.osgi.bundle:org.eclipse.osgi:jar:3.10.0.v20140513-1456 really correct and the artifact exists?
Re: eclipse-collector: Unable to find artifact p2.osgi.bundle:org.eclipse.osgi:jar:3.10.0.v20140513- [message #1390917 is a reply to message #1388697] Mon, 30 June 2014 07:18 Go to previous messageGo to next message
Iwan Imsand is currently offline Iwan ImsandFriend
Messages: 4
Registered: June 2014
Junior Member
I checked if the jar org.eclipse.osgi-3.10.0.v20140513-1456.jar exists on http://download.eclipse.org/stardust/maven/releases/org/eclipse/osgi/org.eclipse.osgi/?d

There are only two 3.9.1 versions, but no 3.10.0 versions!

Re: eclipse-collector: Unable to find artifact p2.osgi.bundle:org.eclipse.osgi:jar:3.10.0.v20140513- [message #1391055 is a reply to message #1390917] Mon, 30 June 2014 11:34 Go to previous messageGo to next message
Simone Seurer is currently offline Simone SeurerFriend
Messages: 10
Registered: June 2013
Junior Member
Hi Iwan,

our publish script published to /snapshots folder instead of /releases. I published again today, so you should now be able to consume the dependencies.

Thanks, Simone
Re: eclipse-collector: Unable to find artifact p2.osgi.bundle:org.eclipse.osgi:jar:3.10.0.v20140513- [message #1391368 is a reply to message #1391055] Mon, 30 June 2014 20:57 Go to previous messageGo to next message
Iwan Imsand is currently offline Iwan ImsandFriend
Messages: 4
Registered: June 2014
Junior Member
Hi Simone,

thanks for publishing the artifacts again.

I tried again, but the artifacts still couldn't be found, it seems that there are some groupIds wrong in the pom.xml of the eclipse-collector project. After I changed the groupIds, the build was successful.

You can find the changes in the attached patch file.

Thanks,
Iwan
Re: eclipse-collector: Unable to find artifact p2.osgi.bundle:org.eclipse.osgi:jar:3.10.0.v20140513- [message #1392487 is a reply to message #1391368] Wed, 02 July 2014 12:01 Go to previous messageGo to next message
Sven Rottstock is currently offline Sven RottstockFriend
Messages: 28
Registered: December 2012
Junior Member
Hi Iwan,

the groupId is correct. The eclipse-collector project does no longer use the Stardust Maven repository. We've converted it into an Eclipse feature. This means that Tycho is used to retrieve the dependencies and this tool is using the plain P2 repositories of Eclipse. If it is able to download the artifacts it put these dependencies into your local Maven Cache below of the p2.osgi.bundle groupId. If you try to build Stardust on master then per default the luna-profile is active (please see here). This profile sets the P2 repository URL to http://download.eclipse.org/releases/luna. Nevertheless that the project doesn't find the dependencies is very strange. Have you updated the org.eclipse.stardust and product Git repository in your environment? If yes, please could you activate the luna-build profile explicitly? Instead of -P stardust-build, please use -P stardust-build,luna-build. If it also doesn't work then you can skip the download with -P stardust-build,!download-eclipse-deps.

--
Sven
Re: eclipse-collector: Unable to find artifact p2.osgi.bundle:org.eclipse.osgi:jar:3.10.0.v20140513- [message #1393863 is a reply to message #1392487] Fri, 04 July 2014 11:40 Go to previous message
Caroline Rieseler is currently offline Caroline RieselerFriend
Messages: 1
Registered: September 2013
Junior Member
Hi Iwan,
we have ananlyzed this issue.
The osgi dependency has a false version and thus cannot be found in the repository. This will need to be fixed in the product-parent pom of product repository. I have created Bugzilla ticket for it: Bug 438806.
You should be able to workaround this issue by replacing the version in the property section of the parent pom.
Caroline
Previous Topic:Eclipse does not start due to not finding the JRE and javaw.exe
Next Topic:java.lang.NoClassDefFoundError: org/eclipse/emf/ecore/resource/Resource$Internal
Goto Forum:
  


Current Time: Mon Jul 06 20:13:49 GMT 2015

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

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