Skip to content

Commit

Permalink
编译时设定参数-Dservlet2时,用servlet2来编译和测试。默认采用servlet3。
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Zhou committed Oct 23, 2012
1 parent 6713e3a commit cb90537
Show file tree
Hide file tree
Showing 20 changed files with 48 additions and 85 deletions.
4 changes: 0 additions & 4 deletions common/logconfig/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions common/springext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>citrus-common-generictype</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions common/util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>citrus-test-util</artifactId>
Expand Down
5 changes: 0 additions & 5 deletions dist/test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,6 @@
<artifactId>hamcrest-library</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>httpunit</groupId>
<artifactId>httpunit</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions dist/webx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@
<groupId>${project.groupId}</groupId>
<artifactId>citrus-webx-dev</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
Expand Down
54 changes: 48 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,54 @@
<gpg.skip>false</gpg.skip>
</properties>
</profile>
<profile>
<id>servlet2</id>
<activation>
<property>
<name>servlet2</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
<profile>
<id>servlet3</id>
<activation>
<property>
<name>!servlet2</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
</profiles>
<modules>
<module>dist/webx</module>
Expand Down Expand Up @@ -462,12 +510,6 @@
<artifactId>cglib-nodep</artifactId>
<version>2.2.2</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
Expand Down
5 changes: 0 additions & 5 deletions service/dataresolver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,5 @@
<groupId>${project.groupId}</groupId>
<artifactId>citrus-test-util</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
4 changes: 0 additions & 4 deletions service/form/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
<artifactId>citrus-service-form</artifactId>
<name>Citrus Form Service</name>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>ecs</groupId>
<artifactId>ecs</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions service/jsp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
<groupId>${project.groupId}</groupId>
<artifactId>citrus-test-util</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>jasper</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions service/moduleloader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,5 @@
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
</dependencies>
</project>
4 changes: 0 additions & 4 deletions service/pipeline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,5 @@
<groupId>${project.groupId}</groupId>
<artifactId>citrus-common-expr</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
</dependencies>
</project>
4 changes: 0 additions & 4 deletions service/pull/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,5 @@
<groupId>${project.groupId}</groupId>
<artifactId>citrus-test-util</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
</dependencies>
</project>
4 changes: 0 additions & 4 deletions service/requestcontext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
<artifactId>citrus-service-requestcontext</artifactId>
<name>Citrus Request Context Service</name>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions service/resource/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,5 @@
<groupId>${project.groupId}</groupId>
<artifactId>citrus-test-util</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
</dependencies>
</project>
4 changes: 0 additions & 4 deletions service/upload/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
<groupId>${project.groupId}</groupId>
<artifactId>citrus-test-util</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions service/uribroker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@
<groupId>${project.groupId}</groupId>
<artifactId>citrus-service-requestcontext</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>citrus-service-configuration</artifactId>
Expand Down
5 changes: 0 additions & 5 deletions test/util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@
<artifactId>hamcrest-library</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>httpunit</groupId>
<artifactId>httpunit</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions webx/dev/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
<artifactId>citrus-webx-dev</artifactId>
<name>Development mode tools for Webx</name>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>citrus-webx-turbine</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions webx/framework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
<artifactId>citrus-webx-framework</artifactId>
<name>Citrus Webx Framework</name>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>citrus-service-resource</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions webx/turbine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
<artifactId>citrus-webx-turbine</artifactId>
<name>Citrus Webx Turbine-style Implementation</name>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
Expand Down

0 comments on commit cb90537

Please sign in to comment.