[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] strange tycho errors

Restricting to

http://maven.eclipse.org/nexus/content/repositories/milestone-indigo/

from which eclipse-maven-signing-plugin seems to originate could be an option.

Jan

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Matthias Sohn
Sent: Dienstag, 13. Dezember 2011 11:34
To: Tycho user list
Subject: Re: [tycho-user] strange tycho errors

I think I found the reason for these failures:

- we have a reference toÂhttp://maven.eclipse.org/nexus/content/groups/public/ in order to be able to use
 the maven eclipse signing plugin
- this probably causes also other artifacts to be downloaded from maven.eclipse.org, if some of
them are corrupt this can cause any kind of ugly build errors.
- is there a way to tell maven that we only want to download the signing plugin from maven.eclipse.org
 and all others from central ?

--
Matthias
2011/12/13 Matthias Sohn <matthias.sohn@xxxxxxxxxxxxxx>
No, I can't reproduce this locally. I think the similar failure I observed in a local build
yesterdayÂwas caused by missing proxy configuration. I ran the same build sequence again
today with proper proxy configuration and the build succeeded.

So it looks like there is a severe problem on hudson.eclipse.org. If build jobs are forced
to use maven.eclipse.org via centrally configured settings.xml (don't know if that's the case)
and if maven.eclipse.orgÂcontains corrupt artifacts this will create random build errors like theÂ
ones we hit.

The two failing builds both run on sandbox hudson.

--
Matthias

2011/12/13 Igor Fedorenko <igor@xxxxxxxxxxxxxx>
Are you able to reproduce this problem outside of hudson.eclipse.org?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=365727

--
Regards,
Igor


On 11-12-12 6:03 PM, Matthias Sohn wrote:
The egit [1] and egit-github [2] gerrit-trigger build jobs used to verify
changes uploaded for code review experience some strange errors
since a couple of days.

[1] reproducably hits a NPE (using tycho 0.12)

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-plugin:0.12.0:update-site-p2-metadata (default-update-site-p2-metadata) on project org.eclipse.egit-updatesite: Cannot generate P2 metadata: java.lang.NullPointerException -> Â[Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-plugin:0.12.0:update-site-p2-metadata (default-update-site-p2-metadata) on project org.eclipse.egit-updatesite: Cannot generate P2 metadata
   Âat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
   Âat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
   Âat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
   Âat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
   Âat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
   Âat org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
   Âat org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
   Âat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
   Âat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
   Â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: org.apache.maven.plugin.MojoExecutionException: Cannot generate P2 metadata
   Âat org.eclipse.tycho.plugins.p2.AbstractP2MetadataMojo.execute(AbstractP2MetadataMojo.java:95)
   Âat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
   Âat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
   Â... 19 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
   Âat org.eclipse.tycho.p2.facade.internal.P2ApplicationLauncher.execute(P2ApplicationLauncher.java:127)
   Âat org.eclipse.tycho.plugins.p2.AbstractP2MetadataMojo.generateMetadata(AbstractP2MetadataMojo.java:112)
   Âat org.eclipse.tycho.plugins.p2.AbstractP2MetadataMojo.execute(AbstractP2MetadataMojo.java:88)
   Â... 21 more
Caused by: java.lang.NullPointerException
   Âat org.eclipse.tycho.core.osgitools.DefaultBundleReader.toProperties(DefaultBundleReader.java:162)
   Âat org.eclipse.tycho.core.osgitools.DefaultBundleReader.parseHeader(DefaultBundleReader.java:173)
   Âat org.eclipse.tycho.core.osgitools.OsgiBundleProject.readArtifactKey(OsgiBundleProject.java:130)
   Âat org.eclipse.tycho.p2.facade.internal.P2ApplicationLauncher.addBundle(P2ApplicationLauncher.java:132)
   Âat org.eclipse.tycho.p2.facade.internal.P2ApplicationLauncher.execute(P2ApplicationLauncher.java:99)
   Â... 23 more


[2] (using tycho 0.13) seems to fail to download some of the tycho
plugins and then fails with a ClassNotFoundException

Wiping the workspace to remove the job private maven repo doesn't seem
to help in both cases.
I tried this many times, also Jan Sievers looked into these failing jobs
and we are running out
of ideas what could be the cause of these.build errors. Today I also saw
the second issue when
running the egit-github build locally. Again wiping the local maven
repository didn't resolve the
issue. What helped was to remove the tycho plugins from the local maven
repository and then
rerunning the build, wiping the complete Maven repository didn't help.

[1] https://hudson.eclipse.org/sandbox/job/egit.gerrit/
[2] https://hudson.eclipse.org/sandbox/job/egit-github.gerrit/

--
Matthias

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user