If I have 2 modules A and B, and A depends on B, but B has a file
config.properties in its conf/ dir.  How can I build/package A so that
config.properties will be in A also?  How can I do it using
maven-assembly-plugin?


With the plugin maven-assembly-plugin, you can try something like this :

<assembly>
 <id>config</id>
 <formats>
   <format>zip</format>
 </formats>
 <fileSets>
   <fileSet>
     <directory>../Module_B/src/main/conf</directory>
     <outputDirectory>classes</outputDirectory>
     <includes>
       <include>**/*.*</include>
     </includes>
   </fileSet>
 </fileSets>
</assembly>

But I haven't found how to define filtering as with the resources plugin.
Any idea ?

Rémy

Reply via email to