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

Open a bug report with a sample project and steps to reproduce the NPE
and we'll have a look.

As for maven-release-plugin... I am not against using
maven-release-plugin for Tycho projects, but it does not work and there
is not much Tycho developers can do to make it work.

--
Regards,
Igor

On 12-05-22 12:46 PM, Craig Foote wrote:
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 <mailto: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
        <http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException>


        Craig Foote


        _________________________________________________
        tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
        https://dev.eclipse.org/__mailman/listinfo/tycho-user
        <https://dev.eclipse.org/mailman/listinfo/tycho-user>

    _________________________________________________
    tycho-user mailing list
    tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
    https://dev.eclipse.org/__mailman/listinfo/tycho-user
    <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