Skip to content

Commit

Permalink
提交文件,解决weblogic和tomcat打包导致的web.xml配置问题
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhiqiang0514 committed Jun 7, 2016
1 parent 0e0b0fb commit 051741c
Show file tree
Hide file tree
Showing 22 changed files with 107 additions and 9 deletions.
13 changes: 13 additions & 0 deletions dubbokeeper-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,17 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceDirectory>
${basedir}/src/main/webapp
</warSourceDirectory>
<webXml>${basedir}/src/main/webapp/WEB-INF/web-${web.xml.name}.xml</webXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
64 changes: 64 additions & 0 deletions dubbokeeper-ui/src/main/webapp/WEB-INF/web-tomcat.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8" ?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<listener>
<listener-class>com.dubboclub.dk.web.utils.ContextLoaderListenerWrapper</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:/META-INF/spring/*.xml</param-value>
</context-param>
<servlet>
<servlet-name>dispatcherServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:webApplication.xml</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dispatcherServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.js</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.css</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.jpg</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.ttf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.map</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.md</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.woff</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.woff2</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
1 change: 1 addition & 0 deletions install-lucene-tomcat.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mvn -Dmaven.test.skip=true clean package install -P lucene,tomcat assembly:assembly -U
2 changes: 2 additions & 0 deletions install-lucene-tomcat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
mvn -Dmaven.test.skip=true clean package install -P lucene,tomcat assembly:assembly -U
1 change: 1 addition & 0 deletions install-lucene-weblogic.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mvn -Dmaven.test.skip=true clean package install -P lucene,weblogic assembly:assembly -U
2 changes: 2 additions & 0 deletions install-lucene-weblogic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
mvn -Dmaven.test.skip=true clean package install -P lucene,weblogic assembly:assembly -U
1 change: 0 additions & 1 deletion install-lucene.bat

This file was deleted.

2 changes: 0 additions & 2 deletions install-lucene.sh

This file was deleted.

1 change: 1 addition & 0 deletions install-mongodb-tomcat.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mvn -Dmaven.test.skip=true clean package install -P mongodb,tomcat assembly:assembly -U
2 changes: 2 additions & 0 deletions install-mongodb-tomcat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
mvn -Dmaven.test.skip=true clean package install -P mongodb,tomcat assembly:assembly -U
1 change: 1 addition & 0 deletions install-mongodb-weblogic.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mvn -Dmaven.test.skip=true clean package install -P mongodb,weblogic assembly:assembly -U
2 changes: 2 additions & 0 deletions install-mongodb-weblogic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
mvn -Dmaven.test.skip=true clean package install -P mongodb,weblogic assembly:assembly -U
1 change: 0 additions & 1 deletion install-mongodb.bat

This file was deleted.

2 changes: 0 additions & 2 deletions install-mongodb.sh

This file was deleted.

1 change: 1 addition & 0 deletions install-mysql-tomcat.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mvn -Dmaven.test.skip=true clean package install -P mysql,tomcat assembly:assembly -U
2 changes: 2 additions & 0 deletions install-mysql-tomcat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
mvn -Dmaven.test.skip=true clean package install -P mysql,tomcat assembly:assembly -U
1 change: 1 addition & 0 deletions install-mysql-weblogic.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mvn -Dmaven.test.skip=true clean package install -P mysql,weblogic assembly:assembly -U
2 changes: 2 additions & 0 deletions install-mysql-weblogic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
mvn -Dmaven.test.skip=true clean package install -P mysql,weblogic assembly:assembly -U
1 change: 0 additions & 1 deletion install-mysql.bat

This file was deleted.

2 changes: 0 additions & 2 deletions install-mysql.sh

This file was deleted.

12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,17 @@
<final-name>mongodb</final-name>
</properties>
</profile>
<profile>
<id>tomcat</id>
<properties>
<web.xml.name>tomcat</web.xml.name>
</properties>
</profile>
<profile>
<id>weblogic</id>
<properties>
<web.xml.name>weblogic</web.xml.name>
</properties>
</profile>
</profiles>
</project>

0 comments on commit 051741c

Please sign in to comment.