I am using the maven-antrun-plugin to execute a simple copy task that
configures my JBoss instance prior to running integration-test with
Cargo. I want to include the JDBC driver jar, which is installed into
my local maven repository. I've relocated the repository in
settings.xml as follows:
<localRepository>C:/m2/repository</localRepository>
Here is the task element
<copy todir="${cargo.container.home}/server/default/lib">
<fileset
dir="${localRepository}/com/oracle/${jdbc.artifactId}/${jdbc.version}">
<include name="*.jar"/>
</fileset>
</copy>
I get:
[INFO] Error executing ant tasks
Embedded error: C:\dev\af-modular\web\[local] ->
file:\C:\m2\repository\com\oracle\ojdbc14\10.2.0.3.0 not found.
If I replace the localRepository property reference with the literal
'C:/m2/repository' all is well. It is the backslash before C: that's
the trouble. Where is it coming from?
Any suggestion to solve this, or a completely different approach, would
be welcome.
TIA,
Richard Brewster
Senior Associate
Perrin Quarles Associates
[EMAIL PROTECTED]
(434) 817-2640