[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] NPE with tycho-buildtimestamp-jgit

Do you mean a clean local maven repository or a clean cloned git repository?
The latter is what I already tried. I cloned with msysgit on the command line.
My OS is Windows XP.

TIA,
Marco


2012/7/25 Igor Fedorenko <igor@xxxxxxxxxxxxxx>
I can't reproduce the problem. The project builds for me locally and generated version qualifiers match git timestamp as far as I can tell.

Can you try with clean local repository?

--
Regards,
Igor

On 12-07-23 1:51 PM, Marco Lehmann-MÃrz wrote:
Hello Igor,

I just cloned the repository in question and the stacktrace appeared.
Maybe there is a mistake in my parent pom (at the root).

https://github.com/mlehmannm/mlm-eclipse-ide-jsbuilder.git


HTH,
Marco

2012/7/23 Igor Fedorenko <igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>>

  Have you committed the project in question to git repository? Are you
  able to provide small standalone example we can use to reproduce the
  problem?

  --
  Regards,
  Igor


  On 12-07-23 5:20 AM, Marco Lehmann-MÃrz wrote:

    Hi there!

    I'm trying the tycho-buildtimestamp-jgit plugin without luck.
    Everytime I get the following stack trace:

    [DEBUG] -- end configuration --
    [INFO]
    ------------------------------__------------------------------__------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] mlm.eclipse.ide.jsbuilder-__parent ..................
    SUCCESS [0.281s]
    [INFO] mlm.eclipse.ide.jsbuilder .........................
    FAILURE [0.718s]
    [INFO] mlm.eclipse.ide.jsbuilder.__feature ................. SKIPPED
    [INFO] mlm.eclipse.ide.jsbuilder-__repository .............. SKIPPED
    [INFO]
    ------------------------------__------------------------------__------------
    [INFO] BUILD FAILURE
    [INFO]
    ------------------------------__------------------------------__------------
    [INFO] Total time: 34.063s
    [INFO] Finished at: Mon Jul 23 10:56:37 CEST 2012
    [INFO] Final Memory: 74M/178M
    [INFO]
    ------------------------------__------------------------------__------------
    [ERROR] Failed to execute goal
    org.eclipse.tycho:tycho-__packaging-plugin:0.16.0-__SNAPSHOT:build-qualifier
    (default-build-qualifier) on project mlm.eclipse.ide.jsbuilder:
    Execution default-build-quali
    fier of goal
    org.eclipse.tycho:tycho-__packaging-plugin:0.16.0-__SNAPSHOT:build-qualifier
    failed. NullPointerException -> [Help 1]
    org.apache.maven.lifecycle.__LifecycleExecutionException: Failed to
    execute goal
    org.eclipse.tycho:tycho-__packaging-plugin:0.16.0-__SNAPSHOT:build-qualifier
    (default-build-qualifier) on project mlm.ecli
    pse.ide.jsbuilder: Execution default-build-qualifier of goal
    org.eclipse.tycho:tycho-__packaging-plugin:0.16.0-__SNAPSHOT:build-qualifier
    failed.
         at
    org.apache.maven.lifecycle.__internal.MojoExecutor.execute(__MojoExecutor.java:225)
         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:__320)
         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:__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:409)
         at
    org.codehaus.plexus.__classworlds.launcher.Launcher.__main(Launcher.java:352)
    Caused by: org.apache.maven.plugin.__PluginExecutionException:
    Execution
    default-build-qualifier of goal
    org.eclipse.tycho:tycho-__packaging-plugin:0.16.0-__SNAPSHOT:build-qualifier
    failed.
         at
    org.apache.maven.plugin.__DefaultBuildPluginManager.__executeMojo(__DefaultBuildPluginManager.__java:110)
         at
    org.apache.maven.lifecycle.__internal.MojoExecutor.execute(__MojoExecutor.java:209)
         ... 19 more
    Caused by: java.lang.NullPointerException
         at
    org.eclipse.tycho.extras.__buildtimestamp.jgit.__JGitBuildTimestampProvider.__getTimestamp(__JGitBuildTimestampProvider.__java:86)
         at
    org.eclipse.tycho.__buildversion.__BuildQualifierMojo.__getBuildTimestamp(__BuildQualifierMojo.java:182)
         at
    org.eclipse.tycho.__buildversion.__BuildQualifierMojo.execute(__BuildQualifierMojo.java:156)
         at
    org.apache.maven.plugin.__DefaultBuildPluginManager.__executeMojo(__DefaultBuildPluginManager.__java:101)
         ... 20 more
    [ERROR]
    [ERROR]
    [ERROR] For more information about the errors and possible
    solutions,
    please read the following articles:
    [ERROR] [Help 1]
    http://cwiki.apache.org/__confluence/display/MAVEN/__PluginExecutionException
    <http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException>
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build
    with the
    command
    [ERROR]  mvn <goals> -rf :mlm.eclipse.ide.jsbuilder


    Please have a look at
    https://github.com/mlehmannm/__mlm-eclipse-ide-jsbuilder
    <https://github.com/mlehmannm/mlm-eclipse-ide-jsbuilder>


    TIA,
    Marco



    _________________________________________________
    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>




--
Tschà Marco



_______________________________________________
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



--
Tschà Marco