I use the maven-jar-plugin in my module, as follows:

     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-jar-plugin</artifactId>
       <executions>
         <execution>
           <id>ds_build-jar</id>
           <phase>package</phase>
           <goals>
             <goal>jar</goal>
           </goals>
           <configuration>
             <finalName>ds</finalName>
             <outputDirectory>${project.build.directory}</outputDirectory>
             <includes>
               <include>src/main/java/__ds_archive/com/**/*.class</include>
<include>src/main/java/__ds_archive/**/*.properties</include>
             </includes>
             <excludes>
               <exclude>src/main/java/__ds_archive/junit/**/*.*</exclude>
<exclude>${project.build.directory}/__ds_archive/org/**/*.*</exclude>
             </excludes>
           </configuration>
         </execution>
       </executions>
</plugin>

When i do a mvn install, the ds.jar built out of this does not include any of the classes specified in the <includes> clause nor does it exclude any. I get a warning message :

[INFO] [jar:jar {execution: __ds}]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] [jar:jar {execution: ds_build-jar}]

Am i missing something here?
Please let me know.

Thanks in advance,
Shalini.



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

Reply via email to