Take a look at
http://maven.apache.org/ref/2.2.1/maven-model/maven.html#class_resource
Your xml-file should be part of such resource, with filtering set to true
(default false)
Now you can use ${project.groupId} ${project.artifactId} ${project.version} in
your xml-file.
cheers,
Robert
> Date: Fri, 23 Apr 2010 05:55:20 -0700
> From: [email protected]
> To: [email protected]
> Subject: [mojo-user] Extract information from pom.xml into build
>
>
> Hello,
> I need to extract some information from the pom.xml (groupId, artifactId,
> version) and put them into some xml file that will be included in my war, I
> tried to use the maven xml plugin but doesn't manage to transform the
> pom.xml (any other xml works).
> I assume this is not possible with this plugin, does anyone know some plugin
> that would help me to do that?
> Thanks!
> --
> View this message in context:
> http://old.nabble.com/Extract-information-from-pom.xml-into-build-tp28340984p28340984.html
> Sent from the mojo - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/