maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zanzerkia, Robert" <Robert.Zanzer...@fmr.com>
Subject maven-changelog-plugin not working...
Date Tue, 02 Jul 2013 13:51:57 GMT
Hi,
I am trying to use the changelog plugin.
With maven3 it wasn't even getting executed but I got help and now it does run.
However it crashes with NPE (See part of the log below).

Thank you,
Robert
Also the changelong.xml it creates has lines like:
- <changelog>
- <changeset datePattern="yyyyMMdd HH:mm:ss z" start="20130617 09:30:11 EDT" end="20130703
09:30:11 EDT">
- <changelog-entry>
- <author>
- <![CDATA[

null
  ]]>
  </author>
- <msg>
- <![CDATA[
  ]]>
  </msg>
  </changelog-entry>
- <changelog-entry>
- <author>
- <![CDATA[

null
  ]]>
  </author>
- <msg>
- <![CDATA[
  ]]>
  </msg>
  </changelog-entry>




I see blow that indicates scm integration is working with jazz (RTC).
[DEBUG] Successfully parsed "Baseline:" line:
[DEBUG]   baselineAlias = 1042
[DEBUG]   baselineId    = 191
[DEBUG]   baseline      = uCMDB-PatternDev-9.05.44
[DEBUG] Consumed line :    Unresolved:
[DEBUG] Consumed line :      d-- /EI AS-ITAM uCMDB Pattern DEV/pom.xml.releaseBackup
[DEBUG]  Line               : '      d-- /EI AS-ITAM uCMDB Pattern DEV/pom.xml.releaseBackup'
[DEBUG]  Extracted filePath : '/EI AS-ITAM uCMDB Pattern DEV/pom.xml.releaseBackup'
[DEBUG]  Extracted     flag : 'd-'
[DEBUG]  Extracted   status : 'deleted'
[DEBUG] Consumed line :      d-- /EI AS-ITAM uCMDB Pattern DEV/release.properties
[DEBUG]  Line               : '      d-- /EI AS-ITAM uCMDB Pattern DEV/release.properties'
[DEBUG]  Extracted filePath : '/EI AS-ITAM uCMDB Pattern DEV/release.properties'
[DEBUG]  Extracted     flag : 'd-'
[DEBUG]  Extracted   status : 'deleted'
[DEBUG] Consumed line :    Outgoing:
[DEBUG] Consumed line :      Change sets:

Here's the NPE>
[DEBUG] Consumed line :  (1040) ---$ Zanzerkia, Robert "[maven-release-plugin] prepare release
uCMDB-PatternDev-9..." 28-Jun-2013 11:41 AM
[DEBUG] Consumed line :  (1039) ---$ Zanzerkia, Robert "[maven-release-plugin] prepare for
next development itera..." 28-Jun-2013 11:41 AM
[DEBUG] Consumed line :  (1034) ---$ Zanzerkia, Robert "[maven-release-plugin] prepare release
uCMDB-PatternDev-9..." 28-Jun-2013 11:19 AM
[DEBUG] Consumed line :  (1033) ---$ Zanzerkia, Robert "[maven-release-plugin] prepare release
uCMDB-PatternDev-9..." 28-Jun-2013 11:19 AM
[DEBUG] Consumed line :  (1031) ---$ Zanzerkia, Robert "[maven-release-plugin] prepare release
uCMDB-PatternDev-9..." 28-Jun-2013 11:19 AM
[DEBUG] Consumed line :  (1032) ---$ Zanzerkia, Robert "<No comment>" 28-Jun-2013 11:19
AM
[DEBUG] Consumed line :  (1028) ---$ Zanzerkia, Robert "[maven-release-plugin] prepare for
next development itera..." 26-Jun-2013 10:34 AM
[DEBUG] Consumed line :There are more items available. Use --maximum option to return more
number of items.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.777s
[INFO] Finished at: Tue Jul 02 09:30:38 EDT 2013
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-changelog-plugin:2.1:changelog
(default-cli) on project uCMDB-PatternDev: An error has occurred in Change Log report generation.
NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-changelog-plugin:2.1:changelog
(default-cli) on project uCMDB-PatternDev: An error has occurred in Change Log report generation.
                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: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.MojoExecutionException: An error has occurred in Change
Log report generation.
                at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
                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.NullPointerException
                at org.apache.maven.plugin.changelog.ChangeLogReport$1.compare(ChangeLogReport.java:1046)
                at java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)
                at java.util.TimSort.sort(TimSort.java:203)
                at java.util.TimSort.sort(TimSort.java:173)
                at java.util.Arrays.sort(Arrays.java:659)
                at java.util.Collections.sort(Collections.java:217)
                at org.apache.maven.plugin.changelog.ChangeLogReport.doChangedSetTable(ChangeLogReport.java:1040)
                at org.apache.maven.plugin.changelog.ChangeLogReport.doChangedSet(ChangeLogReport.java:889)
                at org.apache.maven.plugin.changelog.ChangeLogReport.doGenerateReport(ChangeLogReport.java:847)
                at org.apache.maven.plugin.changelog.ChangeLogReport.executeReport(ChangeLogReport.java:340)
                at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
                at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
                ... 21 more

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message