0

tomcat7-maven-plugin 是否同时存储所有战争文件?

有没有办法配置插件来延迟另一场战争开始后发生的战争部署?

我已经配置了 tomcat7-maven-plugin 来部署几个战争文件。ArtifactB 对 artifactA 具有运行时依赖关系,该依赖关系在启动时解决。似乎tomcat7-maven-plugin同时部署了所有战争,导致artifactB挂起并且即使在artifactA启动并运行后它也不会恢复。

<plugin>
    <groupId>org.apache.tomcat.maven</groupId>
    <artifactId>tomcat7-maven-plugin</artifactId>
    <version>2.2</version>
    <configuration>
        <path>/</path>
        <port>8080</port>
        <addWarDependenciesInClassloader>true</addWarDependenciesInClassloader>
        <warSourceDirectory>${project.build.directory}/${project.build.finalName}/</warSourceDirectory>
        <webapps>
            <webapp>
                <groupId>the.groupId</groupId>
                <artifactId>artifactA</artifactId>
                <version>1.0-SNAPSHOT</version>
                <type>war</type>
                <asWebapp>true</asWebapp>
            </webapp>
            <webapp>
                <groupId>the.groupId</groupId>
                <artifactId>artifactB</artifactId>
                <version>1.0-SNAPSHOT</version>
                <type>war</type>
                <asWebapp>true</asWebapp>
            </webapp>
        </webapps>
    </configuration>
</plugin>
4

0 回答 0