我使用maven war插件创建了2场战争
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>wl-war</id>
<goals>
<goal>war</goal>
</goals>
<configuration>
<warName>war-wl</warName>
<warSourceDirectory>${basedir}\src\main\webapp\wl</warSourceDirectory>
<webXml>${project.basedir}\src\main\webapp\wl\WEB-INF\web.xml</webXml>
</configuration>
</execution>
<execution>
<id>jboss-war</id>
<goals>
<goal>war</goal>
</goals>
<configuration>
<warName>war-jboss</warName>
<warSourceDirectory>${basedir}\src\main\webapp\jboss</warSourceDirectory>
<webXml>${project.basedir}\src\main\webapp\jboss\WEB-INF\web.xml</webXml>
</configuration>
</execution>
</executions>
</plugin>
当我进行mvn部署时,它只部署默认战争 我的要求是上传两者 war-wl.war和war-jboss.war将在存储库中部署