Hello,

I am trying to add some common resource files to all of my jars in a
multimodule project, without having to copy the files to all the
src/main/resources directories in every single module.  (In particular
this is for LICENSE and NOTICE files that are required in the jars for
our Apache incubator project.)

We tried adding the following to our parent POM (we use the flat layout):

 <build>
   <resources>
     <resource>
       <targetPath>META-INF</targetPath>
       <filtering>false</filtering>
       <directory>../uimaj-distr/src/main/readme/</directory>
       <includes>
         <include>LICENSE</include>
         <include>NOTICE</include>
       </includes>
     </resource>
   </resources>
   ...
 </build>


However this causes _hundreds_ of unit tests to fail when I run "mvn
clean install".  The surefire-reports contain NoClassDefFoundErrors
but do not say the name of the class that's not found.

If I remove the <resources> element, everything builds fine.

So far I have not been able to reproduce this in a small test case, so
I don't know what else might be contributing to the problem.

Any ideas?

Thanks,
 -Adam

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to