Question

I am trying to add specific directories from maven modules into my build. I believe that are the way to go back this.

I would appreciate a clear and concise way of using to obtain necessary directories from maven modules that just simply contain a directory with some necessary resources.

Please and thank you.

GC

Was it helpful?

Solution

If you want to include entire modules, use moduleSets, but if you want to pick and choose which files to add you can use fileSets in an assembly config file from the top level project like this:

  <fileSets>
     <fileSet>
        <directory>${basedir}/myModule/src/main/resources</directory>   
        <includes>
           <include>*.txt</include>
        </includes>
     </fileSet>
  </fileSets>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top