wildfly Mavenプラグインをシャットダウンするように設定し、既存のwildflyインスタンスをどのように起動しますか?サーバーファイルをダウンロードしてからサーバーを起動します。別の質問は、正しいフェーズを使用してきれいですか?私が望むのは、ちょうどクリックしてサーバーを再デプロイして再起動すると言うことができることです。Wildfly Mavenプラグインをシャットダウンして既存のサーバを起動します
私のpom.xmlファイルには以下のものがあります。あなただけの<jboss-home/>
を指定する必要がスタート目標に
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.1.0.Alpha11</version>
<configuration>
<force>true</force>
<hostname>${jboss-as.deploy.hostname}</hostname>
<username>${jboss-as.deploy.user}</username>
<password>${jboss-as.deploy.pass.prod}</password>
<fileNames>
<fileName>target/${plugin.war.warName}.war</fileName>
</fileNames>
</configuration>
<executions>
<execution>
<id>undeploy</id>
<phase>clean</phase>
<goals>
<goal>undeploy</goal>
</goals>
</execution>
<execution>
<id>deploy</id>
<phase>clean</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
<execution>
<id>shutdown</id>
<phase>clean</phase>
<goals>
<goal>shutdown</goal>
</goals>
</execution>
<execution>
<id>start</id>
<phase>clean</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
</executions>
</plugin>
開始目標が開始する前にシャットダウン目標が完了していることを確認するにはどうすればよいですか? – Grim
残念ながら。シャットダウンは何を待つべきかを知る必要があるため、「待つ」のは難しいことです。ゴールにはプロセスへのアクセス権がないため、いつ破壊されるのか分かりません。あなたが拒否されるまで、最高の推測で管理ポートにpingされますが、それでも正確ではありません。 –