You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Luc Maisonobe <Lu...@free.fr> on 2011/02/19 20:45:41 UTC
[math] velocity problem while doing a dry run on RC
Hello,
It seems 2.2 has been stabilized thanks to the efforts of everybody.
I fixed the latest CLIRR problems, the latest report is available here:
<http://people.apache.org/~luc/clirr-report.html>.
I tried a dry run on creating a release candidate, and encountered a
velocity problem while generating the release notes.
I used Phil's scripts math-pre-RC.sh which calls
mvn changes:announcement-generate
This triggered the following error message a few times:
[ERROR] Parser Exception: templates/math-release-notes.vm :
org.apache.velocity.runtime.parser.ParseException: Encountered
"\"\n\")\n\n" at line 22, column 39.
Was expecting one of:
"[" ...
<STRING_LITERAL> ...
"true" ...
"false" ...
<NUMBER_LITERAL> ...
<IDENTIFIER> ...
"{" ...
at
org.apache.velocity.runtime.parser.Parser.generateParseException(Parser.java:3271)
at
org.apache.velocity.runtime.parser.Parser.jj_consume_token(Parser.java:3155)
at org.apache.velocity.runtime.parser.Parser.Parameter(Parser.java:1022)
Lines 22-23 and following of math-release-notes.vm read:
$release.description.replaceAll(" ", "
")
This line seem to have been last modified as of r927472 just before 2.1
release to fix a parenthesis problem.
The net result is the the release notes file is empty.
What did I do wrong ?
Luc
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [math] velocity problem while doing a dry run on RC
Posted by Phil Steitz <ph...@gmail.com>.
On 2/20/11 5:00 AM, Luc Maisonobe wrote:
> Le 20/02/2011 10:31, Michael Giannakopoulos a écrit :
>> Also works for me with the version bellow:
>>
>> Apache Maven 2.2.1 (rdebian-1)
>> Java version: 1.6.0_20
>> Java home: /usr/lib/jvm/java-6-openjdk/jre
>> Default locale: en_US, platform encoding: UTF-8
>> OS name: "linux" version: "2.6.32-28-generic" arch: "i386" Family: "unix"
>>
> I tried without the locale but still got an error.
> I changed the template to substitute something else instead of the
> newline character and noticed another problem, which may be related: the
> ${project.name} variable is not interpolated, whereas the ${version}
> variable is interpolated with the correct 2.2 value.
>
> I finally deleted all versions of the maven-changes-plugin in my .m2
> repository. Maven downloaded automatically version 2.4 (despite the
> pom.xml file specifies 2.3) and all went well, except the substitution
> of double space with new line was not done at all.
>
> I think I had something bad in my local .m2 repository.
>
Strange. Looks like at least the rest of the stuff worked OK. W00t!
Phil
> Luc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [math] velocity problem while doing a dry run on RC
Posted by Luc Maisonobe <Lu...@free.fr>.
Le 20/02/2011 10:31, Michael Giannakopoulos a écrit :
> Also works for me with the version bellow:
>
> Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_20
> Java home: /usr/lib/jvm/java-6-openjdk/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.32-28-generic" arch: "i386" Family: "unix"
>
I tried without the locale but still got an error.
I changed the template to substitute something else instead of the
newline character and noticed another problem, which may be related: the
${project.name} variable is not interpolated, whereas the ${version}
variable is interpolated with the correct 2.2 value.
I finally deleted all versions of the maven-changes-plugin in my .m2
repository. Maven downloaded automatically version 2.4 (despite the
pom.xml file specifies 2.3) and all went well, except the substitution
of double space with new line was not done at all.
I think I had something bad in my local .m2 repository.
Luc
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [math] velocity problem while doing a dry run on RC
Posted by Michael Giannakopoulos <mi...@gmail.com>.
Also works for me with the version bellow:
Apache Maven 2.2.1 (rdebian-1)
Java version: 1.6.0_20
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-28-generic" arch: "i386" Family: "unix"
Re: [math] velocity problem while doing a dry run on RC
Posted by Luc Maisonobe <Lu...@free.fr>.
Le 20/02/2011 00:08, Phil Steitz a écrit :
> On 2/19/11 2:45 PM, Luc Maisonobe wrote:
>> Hello,
>>
>> It seems 2.2 has been stabilized thanks to the efforts of everybody.
>> I fixed the latest CLIRR problems, the latest report is available here:
>> <http://people.apache.org/~luc/clirr-report.html>.
>>
>> I tried a dry run on creating a release candidate, and encountered a
>> velocity problem while generating the release notes.
>>
>> I used Phil's scripts math-pre-RC.sh which calls
>> mvn changes:announcement-generate
>>
>> This triggered the following error message a few times:
>>
>> [ERROR] Parser Exception: templates/math-release-notes.vm :
>> org.apache.velocity.runtime.parser.ParseException: Encountered
>> "\"\n\")\n\n" at line 22, column 39.
>> Was expecting one of:
>> "[" ...
>> <STRING_LITERAL> ...
>> "true" ...
>> "false" ...
>> <NUMBER_LITERAL> ...
>> <IDENTIFIER> ...
>> "{" ...
>>
>> at
>> org.apache.velocity.runtime.parser.Parser.generateParseException(Parser.java:3271)
>> at
>> org.apache.velocity.runtime.parser.Parser.jj_consume_token(Parser.java:3155)
>> at org.apache.velocity.runtime.parser.Parser.Parameter(Parser.java:1022)
>>
>>
>> Lines 22-23 and following of math-release-notes.vm read:
>>
>> $release.description.replaceAll(" ", "
>> ")
>>
>> This line seem to have been last modified as of r927472 just before 2.1
>> release to fix a parenthesis problem.
>>
>> The net result is the the release notes file is empty.
>>
>> What did I do wrong ?
>
> Works4me using
>
> Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
> Java version: 1.6.0_22
> ...
> OS name: "mac os x" version: "10.6.6" arch: "x86_64" Family: "mac"
>
> What versions of maven and what jdk are you using?
Apache Maven 2.2.1 (rdebian-4)
Java version: 1.6.0_20
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux" version: "2.6.35-25-generic" arch: "amd64" Family: "unix"
Luc
>
> Phil
>
>> Luc
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [math] velocity problem while doing a dry run on RC
Posted by Phil Steitz <ph...@gmail.com>.
On 2/19/11 2:45 PM, Luc Maisonobe wrote:
> Hello,
>
> It seems 2.2 has been stabilized thanks to the efforts of everybody.
> I fixed the latest CLIRR problems, the latest report is available here:
> <http://people.apache.org/~luc/clirr-report.html>.
>
> I tried a dry run on creating a release candidate, and encountered a
> velocity problem while generating the release notes.
>
> I used Phil's scripts math-pre-RC.sh which calls
> mvn changes:announcement-generate
>
> This triggered the following error message a few times:
>
> [ERROR] Parser Exception: templates/math-release-notes.vm :
> org.apache.velocity.runtime.parser.ParseException: Encountered
> "\"\n\")\n\n" at line 22, column 39.
> Was expecting one of:
> "[" ...
> <STRING_LITERAL> ...
> "true" ...
> "false" ...
> <NUMBER_LITERAL> ...
> <IDENTIFIER> ...
> "{" ...
>
> at
> org.apache.velocity.runtime.parser.Parser.generateParseException(Parser.java:3271)
> at
> org.apache.velocity.runtime.parser.Parser.jj_consume_token(Parser.java:3155)
> at org.apache.velocity.runtime.parser.Parser.Parameter(Parser.java:1022)
>
>
> Lines 22-23 and following of math-release-notes.vm read:
>
> $release.description.replaceAll(" ", "
> ")
>
> This line seem to have been last modified as of r927472 just before 2.1
> release to fix a parenthesis problem.
>
> The net result is the the release notes file is empty.
>
> What did I do wrong ?
Works4me using
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.6.0_22
...
OS name: "mac os x" version: "10.6.6" arch: "x86_64" Family: "mac"
What versions of maven and what jdk are you using?
Phil
> Luc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org