You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2010/08/14 13:24:48 UTC
svn commit: r985464 - /axis/axis2/java/core/trunk/modules/webapp/pom.xml
Author: veithen
Date: Sat Aug 14 11:24:48 2010
New Revision: 985464
URL: http://svn.apache.org/viewvc?rev=985464&view=rev
Log:
Fixed the POM of the webapp so that compiled JSPs are not included in the WAR (the purpose of using jspc-maven-plugin is only to validate the JSPs and to detect syntax errors during the build).
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=985464&r1=985463&r2=985464&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/webapp/pom.xml (original)
+++ axis/axis2/java/core/trunk/modules/webapp/pom.xml Sat Aug 14 11:24:48 2010
@@ -1379,6 +1379,7 @@
</executions>
</plugin>
<plugin>
+ <!-- Compile the JSPs so that syntax errors are detected during the build. -->
<groupId>org.codehaus.mojo.jspc</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>2.0-alpha-3</version>
@@ -1390,8 +1391,6 @@
</execution>
</executions>
<configuration>
- <!-- We only want to validate the JSPs, but not to include the compiled
- versions in the project: -->
<includeInProject>false</includeInProject>
</configuration>
<dependencies>
@@ -1403,6 +1402,28 @@
</dependencies>
</plugin>
<plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <!-- We only want to validate the JSPs, but not to include the compiled
+ versions in the project. However, the includeInProject parameter of
+ the jspc-maven-plugin seems to be broken (the classes are always
+ compiled to the target/classes folder) and maven-war-plugin doesn't
+ have an option to exclude specific classes or packages. Therefore
+ the only way to achieve this is to delete the files after compilation. -->
+ <phase>process-classes</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <delete dir="${project.build.outputDirectory}/jsp" />
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>axis2</warName>