Sean Schofield wrote:
Quick question. How do you include LICENSE.txt in your jar file. Isn't it supposed to be automatic if its in your top level dir?
I am not an expert, but my project.xml contains

   <licenses>
       <license>
           <name>The Apache Software License, Version 2.0</name>
           <url>/LICENSE.txt</url>
           <distribution>repo</distribution>
       </license>
   </licenses>


bundling other stuff you have to add a resource

<build>
   <resources>
.....
           <resource>
               <directory>${basedir}</directory>
               <targetPath>META-INF</targetPath>
               <includes>
                   <include>NOTICE.txt</include>
               </includes>
           </resource>
       </resources>

Hope that helps!

Mario

Reply via email to