You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by lukewpatterson <lu...@gmail.com> on 2009/12/16 00:49:55 UTC
xmltask-equivalant Maven plugin
Does anyone know of a Maven plugin which provides functionality similar to
the "xmltask" [1] Ant Task?
description:
"
Uses include:
* modifying configuration files for applications during builds
...
"
usage example:
-----------------------------------------------------------
original file, src/blah.xml:
<blah>
<name></name>
</blah>
inserting the "name"
<xmltask source="src/blah.xml" dest="target/blah.xml">
<insert path="/blah/name" xml="Tiger"/>
</xmltask>
which results in:
<blah>
<name>Tiger</name>
</blah>
-----------------------------------------------------------
If there isn't a direct Maven plugin, I'll try wrapping in a
maven-antrun-plugin call. The only problem then is that xmltask isn't in
central. I logged an enhancement request [2] for that issue.
Thanks,
Luke
[1] http://www.oopsconsultancy.com/software/xmltask/
[2]
http://sourceforge.net/tracker/?func=detail&aid=2914839&group_id=27398&atid=390338
--
View this message in context: http://old.nabble.com/xmltask-equivalant-Maven-plugin-tp26803518p26803518.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: xmltask-equivalant Maven plugin
Posted by lukewpatterson <lu...@gmail.com>.
Stephen Connolly-2 wrote:
>
> perhaps versions-maven-plugin can help. (depends on what you want to edit)
>
Stephen, my use-case is that I rely on some plugins which are configured
exclusively via xml files, and I want to move the
creation/documentation/source of the configuration to the pom. In other
cases, I want to append project-specific configuration to files retrieved
from the parent pom's actions.
--
View this message in context: http://old.nabble.com/xmltask-equivalant-Maven-plugin-tp26803518p26812406.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: xmltask-equivalant Maven plugin
Posted by Stephen Connolly <st...@gmail.com>.
2009/12/16 lukewpatterson <lu...@gmail.com>
>
>
> stug23 wrote:
> >
> > There is a Maven XML plugin that uses XSLT to transform a document that
> > you may want to have a look at:
> > <http://mojo.codehaus.org/xml-maven-plugin/>
> >
>
> Thanks Pat, I have found that plugin to be helpful in several scenarios.
> Side note, I am waiting for an enhancement of it:
> http://jira.codehaus.org/browse/MOJO-1447
>
> In the current scenario I'm working on, I'd like to directly edit xml from
> the pom without needing an XSLT file.
>
perhaps versions-maven-plugin can help. (depends on what you want to edit)
-Stephen
> --
> View this message in context:
> http://old.nabble.com/xmltask-equivalant-Maven-plugin-tp26803518p26811752.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: xmltask-equivalant Maven plugin
Posted by lukewpatterson <lu...@gmail.com>.
stug23 wrote:
>
> There is a Maven XML plugin that uses XSLT to transform a document that
> you may want to have a look at:
> <http://mojo.codehaus.org/xml-maven-plugin/>
>
Thanks Pat, I have found that plugin to be helpful in several scenarios.
Side note, I am waiting for an enhancement of it:
http://jira.codehaus.org/browse/MOJO-1447
In the current scenario I'm working on, I'd like to directly edit xml from
the pom without needing an XSLT file.
--
View this message in context: http://old.nabble.com/xmltask-equivalant-Maven-plugin-tp26803518p26811752.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: xmltask-equivalant Maven plugin
Posted by stug23 <pa...@gmail.com>.
There is a Maven XML plugin that uses XSLT to transform a document that you
may want to have a look at:
<http://mojo.codehaus.org/xml-maven-plugin/>
lukewpatterson wrote:
>
> Does anyone know of a Maven plugin which provides functionality similar to
> the "xmltask" [1] Ant Task?
>
> description:
> "
> Uses include:
> * modifying configuration files for applications during builds
> ...
> "
>
> usage example:
> -----------------------------------------------------------
> original file, src/blah.xml:
> <blah>
> <name></name>
> </blah>
> inserting the "name"
> <xmltask source="src/blah.xml" dest="target/blah.xml">
> <insert path="/blah/name" xml="Tiger"/>
> </xmltask>
> which results in:
> <blah>
> <name>Tiger</name>
> </blah>
> -----------------------------------------------------------
>
> If there isn't a direct Maven plugin, I'll try wrapping in a
> maven-antrun-plugin call. The only problem then is that xmltask isn't in
> central. I logged an enhancement request [2] for that issue.
>
>
> Thanks,
>
> Luke
>
> [1] http://www.oopsconsultancy.com/software/xmltask/
> [2]
> http://sourceforge.net/tracker/?func=detail&aid=2914839&group_id=27398&atid=390338
>
--
View this message in context: http://old.nabble.com/xmltask-equivalant-Maven-plugin-tp26803518p26806518.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org