2010/12/3 fhomasp <[email protected]>:
> I simply want to add a property file during the phase "generate-resources"
> with the current version, on the classpath. Ideally it's located at the
> default resourcesdir. The name of the props file needs to be the name of
> the artifact (or the given name).
You need to have the Maven Project:
<snip>
/**
* @parameter expression="${project}"
* @required
* @readonly
*/
private MavenProject project;
</snip>
Then interate the resources:
<snip>
project.getResources()
</snip>
However I support the suggestion of Stephen, create a new directory
under "target" and add it as a resource.
Oh, and I "command you to follow the Maven way" :-D
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]