Luc Maisonobe wrote:
Phil Steitz a écrit :
Luc Maisonobe wrote:
Phil Steitz a écrit :
Luc Maisonobe wrote:
Phil Steitz a écrit :
Luc Maisonobe wrote:
Phil Steitz a écrit :
Luc Maisonobe wrote:
Phil Steitz a écrit :
How about we use the changes plugin to generate a text file and
then
edit and commit as RELEASE-NOTES.txt.
I will try to do it tomorrow

I added a velocity template and directed the changes plugin to
use it.
mvn changes:announcement-generate
mv target/announcement/math-release-notes.vm RELEASE-NOTES.txt
The changes plugin does not find the template. As per
http://maven.apache.org/plugins/maven-changes-plugin/examples/using-a-custom-announcement-template.html




the templateDirectory should be a subdirectory of
${basedir}/src/main/resources/. I can change this location, of
course,
but it raises two issues to me:
 - should we change the complete layout to follow the maven way and
also
   change src/java into src/main/java src/test into src/test/java
and so
   on ?
 - why does this location don't work since it seems to be the same
for
   [pool] ?
Did you update pom.xml?  The mods I committed to the pom specify the
template directory.
Yes. I saw the update and the specification
<templateDirectory>src/template</templateDirectory> but the plugin
looked at this below src/main/resources.
This is strange.  Should work.  What exactly is the error message you
are getting when you do

mvn changes:announcement-generate

from trunk/ ?
This one:

[INFO] [changes:announcement-generate]
[INFO] Creating announcement file from
/home/luc/sources/apache/commons-math/src/site/xdoc/changes.xml...
[ERROR] ResourceManager : unable to find resource
'src/template/math-release-notes.vm' in any resource loader.
[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------

[INFO] Resource not found.

Embedded error: Template not found. (
src/template/math-release-notes.vm )
I guess what works4me is somehow OS dependent.  IIRC, I have done this
successfully on both Linux and Mac OS.    What is odd is that if I use
${basedir}/src/template
maven claims not to be able to find the file, even though ls with the
path that is says it can't find identifies the correct file.

Looks like you got it to work somehow ;)

I am OK rearranging the files so things are in the default locations if
that works for you.
Do you mean only the template or all the sources too ?
Given the flakiness of the plugin's resource loading, I suspect we would
have to move the changes.xml file as well.   I would be OK with that if
it works cross-platform.  What did you have to do locally to get it to
work?

I moved only the velocity template to a new src/main/resource/templates
directory I created.
OK, I am +1 for committing that change and the associated pom change.

Phil
I also updated all plugins to latest version, which implied I did this
with version 2.1 of the plugin. I'm not sure maven switched back to 2.0
after that even if I put this number back into the pom.

Luc
Phil
Luc

Phil
Luc

Phil


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to