0
cargo:deploy
을 통해 war
을 Tomcat 7 및 Weblogic 컨테이너에 동시에 배포하고 싶습니다. 그것이 의미하는 한 번에 하나의 프로필 만 활성화 될 수 있습니다.복수의 메이븐 프로파일 배포
<profiles>
<!-- *********************************************************************
CARGO - FOR TOMCAT.
Activated when file ${env.USERPROFILE}/foo.bar exists (which should be there after successful Tomcat tookit install)
********************************************************************* -->
<profile>
<id>tomcat</id>
<activation>
<file><exists>${env.USERPROFILE}/foo.bar</exists></file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>${cargo-maven2-plugin.version}</version>
<configuration>
<container>
<containerId>tomcat7x</containerId>
<type>installed</type>
<home>${env.USERPROFILE}/foo/apache-tomcat-7.0.57</home>
<timeout>180000</timeout>
</container>
<configuration>
<type>existing</type>
<home>${env.USERPROFILE}/foo/apache-tomcat-7.0.57</home>
</configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<type>war</type>
<properties>
<!--No slash needed before the context-->
<context>sec-captc</context>
</properties>
</deployable>
</deployables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- *********************************************************************
CARGO - FOR WEBLOGIC
********************************************************************* -->
<profile>
<id>weblogic</id>
<activation>
<file><exists>${env.USERPROFILE}/foo.bar</exists></file>
</activation>
<build><plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>${cargo-maven2-plugin.version}</version>
<configuration>
<container>
<containerId>weblogic12x</containerId>
<type>installed</type>
<home>${installed-weblogic.home}/foo</home>
<timeout>180000</timeout>
</container>
<configuration>
<type>existing</type>
<home>${installed-weblogic.domain}</home>
</configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<type>war</type>
<properties>
<context>/${installed-weblogic.war.contextpath}</context>
</properties>
</deployable>
</deployables>
</configuration>
</plugin>
</plugins></build>
</profile>
</profiles>
내가/변화가 동시에 이러한 작업을 할 수 있도록 추가해야합니까 : 여기
내가 현재 가지고 무엇인가?
나는 신기한 사람이다. 이드는 그것이 내가 읽었던 것을 생각해 보면 그것이 이상한 것인지 궁금해했다. 나는 그것을 시도하고 그것이 작동하는지 확인합니다. – TheLimeTrees