我有一个目录结构:
src |__ main |__ java |__ resources |__ webapp |__ css_blue |__ css_green |__ css_red |__ WEB-INF
那里有CSS三个单独的目录(如css_red
,css_green
,css_blue
).在这里,我想根据-D
交换机只包含其中一个:
mvn clean install -Dcss=green
pom.xml
4.0.0
com.faisal.dwr
chatbox
0.0.1-SNAPSHOT
war
javax
javaee-api
6.0
provided
org.springframework
spring-webmvc
4.2.4.RELEASE
org.springframework.security
spring-security-web
4.0.3.RELEASE
org.springframework.security
spring-security-config
4.0.3.RELEASE
org.directwebremoting
dwr
3.0.0-RELEASE
${project.artifactId}
org.apache.maven.plugins
maven-war-plugin
2.6
css_${css}
但在这种情况下,文件和目录WEB-INF
不在最终.war
文件中.