> 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