maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <bpor...@f2network.com.au>
Subject RE: Resource copying problem ???
Date Mon, 24 Nov 2003 04:57:15 GMT
> In additional, I tried to add one resource as following:
>       <resource>
>         <directory>${basedir}/src/conf/hibernate</directory>
> 
> <targetPath>${basedir}/target/${pom.artifactId}/WEB-INF/conf</
> targetPath>
>         <includes>
>           <include>hibernate.properties</include>
>         </includes>
>       </resource>
> 
> It just copy the "hibernate.properties" into the 
> /WEB-INF/classes/target/xxxxx/WEB-INF/conf ???? In fact, I 
> want it to be copied into the 
> ${basedir}/target/${pom.artifactId}/WEB-INF/conf !!!!! Is 
> there any problem in the resource-plugin ???

That's what targetPath is meant to do. You'll have to do your own ant:copy
in maven.xml to put it into ${maven.build.dir}/WEB-INF/conf

Cheers,
Brett

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message