|
@@ -14,6 +14,11 @@
|
|
|
|
|
|
<name>PWM Password Self Service: Server WAR</name>
|
|
|
|
|
|
+ <properties>
|
|
|
+ <!-- by default use the web.xml generated by jsp compile plugin -->
|
|
|
+ <webXmlForJspPreCompiledInjection>${project.build.directory}/web.xml</webXmlForJspPreCompiledInjection>
|
|
|
+ </properties>
|
|
|
+
|
|
|
<profiles>
|
|
|
<profile>
|
|
|
<id>enable-javadoc</id>
|
|
@@ -21,6 +26,13 @@
|
|
|
<maven.javadoc.skip>false</maven.javadoc.skip>
|
|
|
</properties>
|
|
|
</profile>
|
|
|
+ <profile>
|
|
|
+ <!-- doesn't actually skip jsp compile, but will prevent pre-compiled jsps from being included in web.xml -->
|
|
|
+ <id>skip-jsp-compile</id>
|
|
|
+ <properties>
|
|
|
+ <webXmlForJspPreCompiledInjection>${basedir}/src/main/webapp/WEB-INF/web.xml</webXmlForJspPreCompiledInjection>
|
|
|
+ </properties>
|
|
|
+ </profile>
|
|
|
<profile>
|
|
|
<!-- Builds a zip file containing the built war file, along with the supplemental directory -->
|
|
|
<id>release</id>
|
|
@@ -96,7 +108,8 @@
|
|
|
<archiveClasses>false</archiveClasses>
|
|
|
<packagingExcludes>**/*.jsp</packagingExcludes>
|
|
|
<!-- remove/comment the next line to prevent pre-compiled JSPs from being used in the output WAR -->
|
|
|
- <webXml>${project.build.directory}/web.xml</webXml>
|
|
|
+
|
|
|
+ <webXml>${webXmlForJspPreCompiledInjection}</webXml>
|
|
|
<archive>
|
|
|
<manifestEntries>
|
|
|
<Implementation-Archive-Name>${warArtifactID}</Implementation-Archive-Name>
|