Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] NPE on mvn release:perform

I don't really see a choice. We all need to release and it's a big gaping hole with tycho in my opinion. Judging by the number of questions on it it may not be just my opinion. At very least a NPE shouldn't be thrown on the "perform -clean", which is all we're doing. I think that's just checking out a tag and running clean so I'm not sure what would be null even. NPE sounds like a bug to me - a null check and meaningful exception would be better in any such case.

Craig

On Tue, May 22, 2012 at 11:19 AM, Igor Fedorenko <ifedorenko@xxxxxxxxxxxx> wrote:
maven release plugin is incompatible with tycho, don't use it with tycho
projects.

--
Regards,
Igor


On 12-05-22 11:16 AM, Craig Foote wrote:
I understand mvn release is not supported by tycho but a
NullPointerException is very unhelpful. Can this be fixed or at least
explained please?

[INFO] [ERROR] Internal error: java.lang.NullPointerException -> [Help 1]
[INFO] org.apache.maven.InternalErrorException: Internal error:
java.lang.NullPointerException
[INFO]     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
[INFO]     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
[INFO]     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
[INFO]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
[INFO]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO]     at java.lang.reflect.Method.invoke(Method.java:597)
[INFO]     at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
[INFO]     at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
[INFO]     at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
[INFO]     at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[INFO] Caused by: java.lang.NullPointerException
[INFO]     at
org.apache.maven.plugin.DefaultPluginDescriptorCache$CacheKey.<init>(DefaultPluginDescriptorCache.java:165)
[INFO]     at
org.apache.maven.plugin.DefaultPluginDescriptorCache.createKey(DefaultPluginDescriptorCache.java:62)
[INFO]     at
org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:136)
[INFO]     at
org.eclipse.tycho.core.maven.utils.PluginRealmHelper.execute(PluginRealmHelper.java:86)
[INFO]     at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.getDependencyMetadata(P2TargetPlatformResolver.java:158)
[INFO]     at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.setupProjects(P2TargetPlatformResolver.java:140)
[INFO]     at
org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:76)
[INFO]     at
org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:56)
[INFO]     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
[INFO]     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
[INFO]     ... 11 more
[INFO] [ERROR]
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven
with the -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug
logging.
[INFO] [ERROR]
[INFO] [ERROR] For more information about the errors and possible
solutions, please read the following articles:
[INFO] [ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException


Craig Foote


_______________________________________________
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


Back to the top