|
[
Permlink
| « Hide
]
Felipe Leme added a comment - 30/Aug/04 02:47 AM
patch implementing the maven approach.
Hi Felipe,
Cool. Thanks for the patch. I was about to apply it when I noticed you've used a build.properties file. I'm reserving this file for user specific environmental variable only and it should never be checked in (hence the cvsignore). If the properties are supposed to be shared and I suppose they are, then they should go in project.properties. Ok with this? :-) Thanks Hi Vincent,
I realized the build.properties is reserved to the user. But I think these properties can't go to the project.properties, as that file will be installed on the user's maven cache. I mean, my concern is that this way the maven.jar.overrides will always on by default (and the cactus jars pointing to the wrong places), because maven always reads the project.properties from each plugin (but I might be wrong - I'm not sure if maven really reads each plugin's project.properties - I know it reads the plugin.properties though). Anyway, my current patch changes the comments on build.properties.sample stating that it should be added to build.properties, although that wouldn't solve the .cvsignore issue. So, another solution would be to instruct the user to append build.properties.sample to ${HOME}/build.properties (as that file has the 'highest priority' anyways). So, what do you think? -- Felipe PS: by looking at some plugins project.properties, doesn't looks like they are used by maven, as some plugins defines some important properties like maven.junit.fork=yes and maven.changes.issue.template = %URL%/../browse/%ISSUE%
So, in this case I'm fine with using project.properties. But then another issue arises: why do we need to install project.properties on the plugin, if it's not used at runtime by maven? Vincent,
Here is a new patch, this time using project.properties (and removing project.properties from POM's resources - I don't think it's necessary to include it in the plugin). -- Felipe New patch - the previous one didn't include the -13 on the files being copied.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||