Skip to content

Commit fade4cf

Browse files
Added option to create an executable JAR file for the Test JSP application with an embedded Tomcat, so that it could be shared with testers in cases when they have problems with building the application locally. Skipped by default.
1 parent 438074d commit fade4cf

File tree

1 file changed

+14
-0
lines changed
  • csrfguard-test/csrfguard-test-jsp

1 file changed

+14
-0
lines changed

csrfguard-test/csrfguard-test-jsp/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<properties>
4646
<tomcat7-maven-plugin.version>2.1</tomcat7-maven-plugin.version>
4747
<skip.run.webapp>true</skip.run.webapp>
48+
<skip.create.executable.jar>true</skip.create.executable.jar>
4849
</properties>
4950

5051
<profiles>
@@ -102,6 +103,19 @@
102103
<skip>${skip.run.webapp}</skip>
103104
</configuration>
104105
<executions>
106+
<execution> <!--Create executable JAR with embedded Tomcat-->
107+
<id>create-executable-jar</id>
108+
<goals>
109+
<goal>exec-war-only</goal>
110+
</goals>
111+
<phase>package</phase>
112+
<configuration>
113+
<enableNaming>false</enableNaming>
114+
<finalName>${project.artifactId}-${project.version}-executable.jar</finalName>
115+
<skip>${skip.create.executable.jar}</skip>
116+
<charset>utf-8</charset>
117+
</configuration>
118+
</execution>
105119
<execution>
106120
<id>deploy-jsp-war</id>
107121
<phase>pre-integration-test</phase>

0 commit comments

Comments
 (0)