|
@@ -32,6 +32,41 @@
|
|
|
<javadoc.opts>-Xdoclint:none</javadoc.opts>
|
|
|
</properties>
|
|
|
</profile>
|
|
|
+ <profile>
|
|
|
+ <!-- Builds a zip file containing the built war file, along with the supplemental directory -->
|
|
|
+ <id>release</id>
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
+ <version>2.6</version>
|
|
|
+ <configuration>
|
|
|
+ <descriptors>
|
|
|
+ <descriptor>src/assembly/pwm.xml</descriptor>
|
|
|
+ </descriptors>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>make-assembly</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>single</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <!-- Disables source and javadoc jar file creation. Handy when wanting to run quick development builds -->
|
|
|
+ <id>developer</id>
|
|
|
+ <properties>
|
|
|
+ <maven.javadoc.skip>true</maven.javadoc.skip>
|
|
|
+ <source.skip>true</source.skip>
|
|
|
+ </properties>
|
|
|
+ </profile>
|
|
|
</profiles>
|
|
|
|
|
|
<build>
|
|
@@ -104,6 +139,34 @@
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-war-plugin</artifactId>
|
|
|
+ <version>2.6</version>
|
|
|
+ <configuration>
|
|
|
+ <archiveClasses>true</archiveClasses>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
+ <version>2.7</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>copy-resources</id>
|
|
|
+ <phase>validate</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>copy-resources</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <outputDirectory>${project.build.outputDirectory}/src</outputDirectory>
|
|
|
+ <resources>
|
|
|
+ <resource><directory>src/main/java</directory></resource>
|
|
|
+ <resource><directory>src/main/resources</directory></resource>
|
|
|
+ </resources>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|