[Bug 922730] New: Tycho is broken (again)
by Red Hat Bugzilla
Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=922730
Bug ID: 922730
Summary: Tycho is broken (again)
Product: Fedora
Version: 19
Component: tycho
Severity: urgent
Priority: unspecified
Assignee: rgrunber(a)redhat.com
Reporter: kdaniel(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: java-sig-commits(a)lists.fedoraproject.org,
kdaniel(a)redhat.com, rgrunber(a)redhat.com
Created attachment 711907
--> https://bugzilla.redhat.com/attachment.cgi?id=711907&action=edit
Mizdebsk patch.
The good news is that bug 922055 seems to be solved. I was able to build
Eclipse once this morning. Then builds started failing again:
Caused by: java.lang.NullPointerException
at
org.fedoraproject.maven.resolver.DefaultResolver.initialize(DefaultResolver.java:48)
at
org.fedoraproject.maven.resolver.DefaultResolver.resolve(DefaultResolver.java:69)
at
org.fedoraproject.maven.resolver.AbstractResolver.resolve(AbstractResolver.java:32)
at
org.fedoraproject.maven.resolver.DefaultResolver.resolve(DefaultResolver.java:32)
at
org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.resolveDependency(TychoOsgiRuntimeLocator.java:210)
at
org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.addRuntimeArtifact(TychoOsgiRuntimeLocator.java:162)
at
org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.addRuntimeArtifacts(TychoOsgiRuntimeLocator.java:156)
at
org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.addRuntimeArtifacts(TychoOsgiRuntimeLocator.java:121)
at
org.eclipse.tycho.osgi.runtime.TychoOsgiRuntimeLocator.locateRuntime(TychoOsgiRuntimeLocator.java:106)
at
org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.doStart(DefaultEquinoxEmbedder.java:79)
at
org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.start(DefaultEquinoxEmbedder.java:67)
at
org.eclipse.sisu.equinox.embedder.internal.DefaultEquinoxEmbedder.checkStarted(DefaultEquinoxEmbedder.java:299)
... 34 more
After a chat with mizdebsk and sochotni, it turned out that it is a bug in
Tycho, because tycho creates an instance of DefaultResolver directly but it
should use Plexus Container to create it. The bug become visible after java
folks updated xmvn to use dependency injection.
Mizdebsk has even prepared a patch (attached), but I failed to build and test
tycho with it - despite setting bootstrap flag I got:
[ERROR] osgi.bundle,org.eclipse.swt.gtk.linux.x86_64,3.7.2.v3740f
[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: Could not download artifacts from any repository
osgi.bundle,org.eclipse.swt.gtk.linux.x86_64,3.7.2.v3740f
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.fedoraproject.maven.connector.Main.main(Main.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
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:414)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
Caused by: java.lang.RuntimeException: Could not download artifacts from any
repository
osgi.bundle,org.eclipse.swt.gtk.linux.x86_64,3.7.2.v3740f
at
org.eclipse.tycho.p2.target.P2ArtifactDownloadTool.downloadArtifactsToLocalMavenRepository(P2ArtifactDownloadTool.java:80)
at
org.eclipse.tycho.p2.target.TargetPlatformImpl.downloadArtifacts(TargetPlatformImpl.java:213)
at
org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:128)
at
org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:80)
at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:377)
at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:354)
at
org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:103)
at
org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
... 11 more
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=yHFYvTo0a2&a=cc_unsubscribe
11 years