私は、貨物でローカルにデプロイされた Web アプリケーションのプラグイン メカニズムを使用しています。そのため、私はほとんどの場合、アプリケーション (WAR) 自体ではなく、プラグインを変更します。しかし、cargo を開始すると、変更がなくても毎回 WAR ファイルがデプロイされます。時間を節約するために、すでに展開されている war ファイルを再利用するとしましょう。
私の現在のmvnファイル:
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
...
<deployables>
<deployable>
<location>${project.build.directory}/${project.build.finalName}</location>
<pingURL>http://localhost:8080</pingURL>
<properties>
<context></context>
</properties>
</deployable>
</deployables>