Author: veithen
Date: Fri Jun 10 18:45:37 2016
New Revision: 1747773

URL: http://svn.apache.org/viewvc?rev=1747773&view=rev
Log:
AXIS2-5784: Attach a JAR with the admin servlet classes to axis2-webapp.

Modified:
    axis/axis2/java/core/trunk/modules/webapp/pom.xml

Modified: axis/axis2/java/core/trunk/modules/webapp/pom.xml
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/webapp/pom.xml?rev=1747773&r1=1747772&r2=1747773&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/webapp/pom.xml (original)
+++ axis/axis2/java/core/trunk/modules/webapp/pom.xml Fri Jun 10 18:45:37 2016
@@ -306,6 +306,27 @@
                 </configuration>
             </plugin>
             <plugin>
+                <artifactId>maven-jar-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <!-- Attach a JAR with the Webapp classes for use as a 
dependency in user projects. -->
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                        <configuration>
+                            <classifier>classes</classifier>
+                            <excludes>
+                                <!-- Properties must be copied to 
target/classes so that they are loaded
+                                     by the Jetty plugin, but we don't want to 
include them in the JAR.
+                                     Our only option is therefore to exclude 
them here (which means that we
+                                     can't use the attachClasses property on 
the maven-war-plugin). -->
+                                <exclude>*.properties</exclude>
+                            </excludes>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
                 <groupId>org.mortbay.jetty</groupId>
                 <artifactId>jetty-maven-plugin</artifactId>
                 <configuration>


Reply via email to