Community
Participate
Working Groups
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.
Btw. I have no clue why Tycho uses this location: http://www.eclipse.org/downloads/download.php?file=/eclipse/updates/3.7-I-builds/I20110613-1736&format=xml&countryCode=us&timeZone=1&format=xml
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.
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
Next, I would need see your target platform configuration. What is the .target file you use?
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.
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).
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?
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>
I was looking on fullmoon at /home/www/equinox/drops/R-3.7-201106131736.
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
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?
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.
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.