Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356815 - Artifacts missing in R-3.7-201106131736 repository
Summary: Artifacts missing in R-3.7-201106131736 repository
Status: CLOSED INVALID
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 09:57 EDT by Holger Staudacher CLA
Modified: 2011-09-07 02:35 EDT (History)
4 users (show)

See Also:


Attachments
Example Target (757 bytes, application/octet-stream)
2011-09-06 11:25 EDT, Holger Staudacher CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Staudacher CLA 2011-09-06 09:57:25 EDT
On our build we are using a target definition that contains one feature. The build worked like a charm since today. I deleted the .m2 directory and startet a build. I receive the following error:

[INFO] Downloading org.eclipse.osgi
[INFO] Fetching download.php (0B of 76B at 0B/s) from http://www.eclipse.org/downloads/download.php?file=/eclipse/updates/3.7-I-builds/I20110613-1736&format=xml&countryCode=us&timeZone=1&format=xml
[INFO] Fetching download.php (63B of 76B at 0B/s) from http://www.eclipse.org/downloads/download.php?file=/eclipse/updates/3.7-I-builds/I20110613-1736&format=xml&countryCode=us&timeZone=1&format=xml
[INFO] Downloading org.eclipse.osgi
[ERROR] Internal error: java.lang.RuntimeException: "Messages while trying children repositories.": ["": ["Artifact not found: osgi.bundle,org.eclipse.osgi,3.7.0.v20110613."]] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "Messages while trying children repositories.": ["": ["Artifact not found: osgi.bundle,org.eclipse.osgi,3.7.0.v20110613."]]
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

This is strange because when I wget the location I just receive a php file. Don't know if the locations changed. I think this is a Tycho bug, please correct me if I'm wrong or you need more information. I use the latest Tycho 0.13.0-SNAPSHOT.
Comment 2 Tobias Oberlies CLA 2011-09-06 10:57:36 EDT
Could you provide a full stack trace? I presume that you have cut off the "caused by" parts, which point to the location where the exception was originally thrown.
Also, a minimal project to reproduce the issue would be good.
Comment 3 Holger Staudacher CLA 2011-09-06 11:01:35 EDT
Hi Tobias,
sorry, my fault. I will see what I can do regarding the project.

org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "Messages while trying children repositories.": ["": ["Artifact not found: osgi.bundle,org.eclipse.osgi,3.7.0.v20110613."]]
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException: "Messages while trying children repositories.": ["": ["Artifact not found: osgi.bundle,org.eclipse.osgi,3.7.0.v20110613."]]
	at org.eclipse.tycho.p2.impl.resolver.ResolutionContextImpl.downloadArtifacts(ResolutionContextImpl.java:498)
	at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:104)
	at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:69)
	at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:343)
	at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:162)
	at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:85)
	at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:91)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	... 11 more
Comment 4 Tobias Oberlies CLA 2011-09-06 11:22:05 EDT
Next, I would need see your target platform configuration. What is the .target file you use?
Comment 5 Holger Staudacher CLA 2011-09-06 11:25:17 EDT
Created attachment 202815 [details]
Example Target

This is the target we use. It links to a p2 repository on github which we have created. Maybe this helps.
Comment 6 Tobias Oberlies CLA 2011-09-06 12:06:50 EDT
The problem comes from the repository http://download.eclipse.org/equinox/drops/R-3.7-201106131736/, which is broken. It claims to contain the org.eclipse.osgi bundle, but it doesn't: http://download.eclipse.org/equinox/drops/R-3.7-201106131736/plugins/org.eclipse.osgi_3.7.0.v20110613.jar

Tycho (or more precisely Tycho's embedded p2) downloads 
http://www.eclipse.org/downloads/download.php?file=/eclipse/updates/3.7-I-builds/I20110613-1736&format=xml&countryCode=us&timeZone=1&format=xml, because that URL contains the (empty) list of mirrors for the repository. But this is unrelated.

Forwarding to Equinox (with change of title).
Comment 7 DJ Houghton CLA 2011-09-06 13:34:40 EDT
Kim, I checked the local mirror and the bundles are directly under drops/R-3.7-201106131736 without a plug-ins folder. Is there a change that needs to happen in the build scripts for us to produce the repo correctly?
Comment 8 Kim Moir CLA 2011-09-06 13:54:58 EDT
DJ, where are you looking?

I looked at the 3.7 repo and it looks fine to me

kmoir@dev1:/home/data/httpd/download.eclipse.org/eclipse/updates/3.7/R-3.7-201106131736> cd plugins/
kmoir@dev1:/home/data/httpd/download.eclipse.org/eclipse/updates/3.7/R-3.7-201106131736/plugins> ls *osgi_*
org.eclipse.osgi_3.7.0.v20110613.jar  org.eclipse.osgi_3.7.0.v20110613.jar.pack.gz
kmoir@dev1:/home/data/httpd/download.eclipse.org/eclipse/updates/3.7/R-3.7-201106131736/plugins>
Comment 9 DJ Houghton CLA 2011-09-06 13:56:50 EDT
I was looking on fullmoon at /home/www/equinox/drops/R-3.7-201106131736.
Comment 10 Kim Moir CLA 2011-09-06 14:07:03 EDT
This url

http://download.eclipse.org/equinox/drops/R-3.7-201106131736/ 

isn't a repo and shouldn't be consumed as such :-)  It's the directory that contains the 3.7 build.  

The 3.7 repository is located here including all your favourite Equinox bundles :-)

http://download.eclipse.org/eclipse/updates/3.7
Comment 11 DJ Houghton CLA 2011-09-06 14:41:05 EDT
Ok, it sounds like p2 is trying to connect to a URL which isn't a p2 repository. Tobias, are you set up to be able to reproduce this problem? Do you know how the equinox drops page might have gotten into the list of repositories?
Comment 12 Markus Knauer CLA 2011-09-06 16:05:54 EDT
Thanks, Kim, DJ, Tobias!

You were absolutely right... ;-)

(In reply to comment #10)
> This url
> 
> http://download.eclipse.org/equinox/drops/R-3.7-201106131736/ 
> 
> isn't a repo and shouldn't be consumed as such :-)

Switching to the correct repository URL fixed this. I am closing the bug as INVALID.
Comment 13 Holger Staudacher CLA 2011-09-07 02:35:28 EDT
Moaw. Sorry for wasting your time. I just took this url from the equinox website and pasted it into the target editor, everything seemed to work. I missed to check if it's a real repository.