Hi,
I have a datasource XML file that is deployed to jboss deploy directory. Is
there a possibility for maven2 to apply filtering capabilities on my datasource
XML file without having it copied to the target directory and packaged with
within my artifact ? Id like to filter the XML file and copy it with a custom
task to my deployment directory.
The copy part I can already do with the following plugin:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<copy file="src/main/config/ReferenceDataManager-ds.xml"
tofile="${env.JBOSS_HOME}/server/${deploy.server}/deploy/ReferenceDataManager-ds.xml"
/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
I would like to avoid having to create a separate maven2 subproject just to
deploy my XML datasource file after being filtered and replaced with various
properties. I'm not even sure such a workaround is possible. Can the artifact
be of XML type ?
More importantly can I use filtering functionality standalone without being
forced to copy the filtered file to the target directory ?
Thanks,
-Guillaume
____________________________________________________________________________________________________
This electronic mail (including any attachments) may contain information that
is privileged, confidential, and/or otherwise protected from disclosure to
anyone other than its intended recipient(s). Any dissemination or use of this
electronic email or its contents (including any attachments) by persons other
than the intended recipient(s) is strictly prohibited. If you have received
this message in error, please notify us immediately by reply email so that we
may correct our internal records. Please then delete the original message
(including any attachments) in its entirety. Thank you.