You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by Jochen Wiedmann <jo...@gmail.com> on 2015/09/30 16:46:04 UTC

Error when generating release notes ffor Rat

Hi, Sebb,

could you please be so kind and have a look into the release-notes.vm
of RAT? I am getting the error below and don't feel confident to
resolve that without help.

Thanks,

Jochen

$ mvn clean install -Prelease-notes -Dchanges.version=0.12
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache Creadur Rat
[INFO] Apache Creadur Rat::API
[INFO] Apache Creadur Rat::Core
[INFO] Apache Creadur Rat::Plugin4Maven
[INFO] Apache Creadur Rat::Tasks4Ant
[INFO] Apache Creadur Rat::Command Line
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Creadur Rat 0.12-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ apache-rat-project ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce
(enforce-bytecode-version) @ apache-rat-project ---
[INFO]
[INFO] --- apache-rat-plugin:0.11:check (default) @ apache-rat-project ---
[INFO] 56 implicit excludes (use -debug for more details).
[INFO] Exclude: BUILD.txt
[INFO] Exclude: apache-rat/README*.txt
[INFO] Exclude: apache-rat-core/src/test/resources/**
[INFO] Exclude: apache-rat*/target/**
[INFO] Exclude: apache-rat-plugin/src/test/resources/**
[INFO] Exclude: apache-rat-plugin/src/it/**
[INFO] Exclude: apache-rat-tasks/src/test/resources/**
[INFO] 16 resources included (use -debug for more details)
[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0
generated: 0 approved: 11 licence.
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @
apache-rat-project ---
[INFO]
[INFO] --- maven-changes-plugin:2.11:announcement-generate
(create-release-notes) @ apache-rat-project ---
[INFO] Including issues from file
C:\Users\jwi\rat\apache-rat-project\src\changes\changes.xml in
announcement...
[debug] Found 7 releases.
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 61, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 62, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 63, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 61, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 62, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 63, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 61, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 62, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 63, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 61, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 62, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 63, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 61, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 62, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 63, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 61, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 62, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 63, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 61, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 62, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 63, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 61, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 62, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 63, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 61, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 62, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 63, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 61, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 62, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 63, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 61, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 62, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 63, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 61, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 62, column 23]
[ERROR] Right side ($indent1.length()) of '<' operation has null value
at src/changes/release-notes.vm[line 63, column 23]
[ERROR] Exception in macro #processaction called at
src/changes/release-notes.vm[line 87, column 1]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Creadur Rat ................................. FAILURE [  2.332 s]
[INFO] Apache Creadur Rat::API ............................ SKIPPED
[INFO] Apache Creadur Rat::Core ........................... SKIPPED
[INFO] Apache Creadur Rat::Plugin4Maven ................... SKIPPED
[INFO] Apache Creadur Rat::Tasks4Ant ...................... SKIPPED
[INFO] Apache Creadur Rat::Command Line ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.587 s
[INFO] Finished at: 2015-09-30T16:42:13+02:00
[INFO] Final Memory: 27M/317M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-changes-plugin:2.11:announcement-generate
(create-release-notes) on project apache-rat-project:
org.apache.velocity.exception.VelocityException:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'replaceAll' in  class java.lang.String threw exception
java.lang.IllegalArgumentException: Illegal group reference at
src/changes/release-notes.vm[line 57, column 22] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/MojoExecutionException

Re: Error when generating release notes ffor Rat

Posted by "P. Ottlinger" <po...@apache.org>.
Am 30.09.2015 um 18:53 schrieb sebb AT ASF:
> So long as the RN contain the current changes and a link to the full
> change history that's fine by me.

+1

Thanks for the fixes :-)

Phil


Re: Error when generating release notes ffor Rat

Posted by Jochen Wiedmann <jo...@gmail.com>.
On Wed, Sep 30, 2015 at 6:53 PM, sebb AT ASF <se...@apache.org> wrote:

> Turns out it was a problem with the indent calculation.
> The VM needs to know the JIRA id (i.e. RAT).
> It was using a commons property which of course did not exist.

Giving quickly means giving twice.

Thanks very much.

Jochen



-- 
The next time you hear: "Don't reinvent the wheel!"

http://www.keystonedevelopment.co.uk/wp-content/uploads/2014/10/evolution-of-the-wheel-300x85.jpg

Re: Error when generating release notes ffor Rat

Posted by sebb AT ASF <se...@apache.org>.
On 30 September 2015 at 16:35, Jochen Wiedmann
<jo...@gmail.com> wrote:
> On Wed, Sep 30, 2015 at 5:15 PM, sebb AT ASF <se...@apache.org> wrote:
>> The release-notes profile is intended to be run as follows:
>>
>> mvn changes:announcement-generate -Prelease-notes -Dchanges.version=0.12
>
> Same error message, AFAICT.
>
> Thanks for looking into the issue.

Turns out it was a problem with the indent calculation.
The VM needs to know the JIRA id (i.e. RAT).
It was using a commons property which of course did not exist.

I've fixed it in trunk and the 0.12 branch.

There were also some errors in the changes.xml file.

We should decide whether we are happy to have the RN show the changes
just for the current release.

This is easier for the RM as the vm script does not have to be updated.
However users have to check the website for the changes in previous releases.
[And we need to ensure that the details have been transferred from the
existing RN, but we should do that anyway]

So long as the RN contain the current changes and a link to the full
change history that's fine by me.

WDYT?

> Jochen
>
>
> --
> The next time you hear: "Don't reinvent the wheel!"
>
> http://www.keystonedevelopment.co.uk/wp-content/uploads/2014/10/evolution-of-the-wheel-300x85.jpg

Re: Error when generating release notes ffor Rat

Posted by Jochen Wiedmann <jo...@gmail.com>.
On Wed, Sep 30, 2015 at 5:15 PM, sebb AT ASF <se...@apache.org> wrote:
> The release-notes profile is intended to be run as follows:
>
> mvn changes:announcement-generate -Prelease-notes -Dchanges.version=0.12

Same error message, AFAICT.

Thanks for looking into the issue.

Jochen


-- 
The next time you hear: "Don't reinvent the wheel!"

http://www.keystonedevelopment.co.uk/wp-content/uploads/2014/10/evolution-of-the-wheel-300x85.jpg

Re: Error when generating release notes ffor Rat

Posted by sebb AT ASF <se...@apache.org>.
The release-notes profile is intended to be run as follows:

mvn changes:announcement-generate -Prelease-notes -Dchanges.version=0.12

It is not guaranteed to work as part of any other build.

Having said that, there is a problem somewhere which I will look at

On 30 September 2015 at 15:46, Jochen Wiedmann
<jo...@gmail.com> wrote:
> Hi, Sebb,
>
> could you please be so kind and have a look into the release-notes.vm
> of RAT? I am getting the error below and don't feel confident to
> resolve that without help.
>
> Thanks,
>
> Jochen
>
> $ mvn clean install -Prelease-notes -Dchanges.version=0.12
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] Apache Creadur Rat
> [INFO] Apache Creadur Rat::API
> [INFO] Apache Creadur Rat::Core
> [INFO] Apache Creadur Rat::Plugin4Maven
> [INFO] Apache Creadur Rat::Tasks4Ant
> [INFO] Apache Creadur Rat::Command Line
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache Creadur Rat 0.12-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ apache-rat-project ---
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.3.1:enforce
> (enforce-bytecode-version) @ apache-rat-project ---
> [INFO]
> [INFO] --- apache-rat-plugin:0.11:check (default) @ apache-rat-project ---
> [INFO] 56 implicit excludes (use -debug for more details).
> [INFO] Exclude: BUILD.txt
> [INFO] Exclude: apache-rat/README*.txt
> [INFO] Exclude: apache-rat-core/src/test/resources/**
> [INFO] Exclude: apache-rat*/target/**
> [INFO] Exclude: apache-rat-plugin/src/test/resources/**
> [INFO] Exclude: apache-rat-plugin/src/it/**
> [INFO] Exclude: apache-rat-tasks/src/test/resources/**
> [INFO] 16 resources included (use -debug for more details)
> [INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0
> generated: 0 approved: 11 licence.
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
> apache-rat-project ---
> [INFO]
> [INFO] --- maven-changes-plugin:2.11:announcement-generate
> (create-release-notes) @ apache-rat-project ---
> [INFO] Including issues from file
> C:\Users\jwi\rat\apache-rat-project\src\changes\changes.xml in
> announcement...
> [debug] Found 7 releases.
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 61, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 62, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 63, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 61, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 62, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 63, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 61, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 62, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 63, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 61, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 62, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 63, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 61, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 62, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 63, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 61, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 62, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 63, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 61, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 62, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 63, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 61, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 62, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 63, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 61, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 62, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 63, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 61, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 62, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 63, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 61, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 62, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 63, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 61, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 62, column 23]
> [ERROR] Right side ($indent1.length()) of '<' operation has null value
> at src/changes/release-notes.vm[line 63, column 23]
> [ERROR] Exception in macro #processaction called at
> src/changes/release-notes.vm[line 87, column 1]
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Creadur Rat ................................. FAILURE [  2.332 s]
> [INFO] Apache Creadur Rat::API ............................ SKIPPED
> [INFO] Apache Creadur Rat::Core ........................... SKIPPED
> [INFO] Apache Creadur Rat::Plugin4Maven ................... SKIPPED
> [INFO] Apache Creadur Rat::Tasks4Ant ...................... SKIPPED
> [INFO] Apache Creadur Rat::Command Line ................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.587 s
> [INFO] Finished at: 2015-09-30T16:42:13+02:00
> [INFO] Final Memory: 27M/317M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-changes-plugin:2.11:announcement-generate
> (create-release-notes) on project apache-rat-project:
> org.apache.velocity.exception.VelocityException:
> org.apache.velocity.exception.MethodInvocationException: Invocation of
> method 'replaceAll' in  class java.lang.String threw exception
> java.lang.IllegalArgumentException: Illegal group reference at
> src/changes/release-notes.vm[line 57, column 22] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [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/MojoExecutionException