Eclipse MarsでEclipse MarsとMaven統合プラグインを使用し、JBoss EAP 7.0サーバーを設定しています。Eclipse MarsクリーンビルドとJbossデプロイメントディレクトリへの移動
私はmavenビルドコンフィギュレーションguideに従い、ターゲットディレクトリにwarを構築して生成するのに成功しました。
可能であれば、maven build run> "clean install"を使用して、ターゲットディレクトリに新しいproject.warを作成します。その間、project.warは%JBOSS_HOME%\ standalone \ deploymentsディレクトリにアップロードされます。ビルドとエクスポートのプロセスを同時にバインドしようとしています。
次の設定をpom.xmlに追加しようとしましたが、動作しません。
<configuration>
....
<webappDirectory>D:\jboss-eap-7.0.0\jboss-eap-7.0\standalone\deployments\</webappDirectory>
</configuration>
それとも
<configuration>
....
<outputDirectoryD:\jboss-eap-7.0.0\jboss-eap-7.0\standalone\deployments\</outputDirectory>
</configuration>
それとも
<executions>
<execution>
<phase>install</phase>
<configuration>
<target>
<copy file="D:\workspace\project\target\project.war"
todir="D:\jboss-eap-7.0.0\jboss-eap-7.0\standalone\deployments\" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
結果:
[ERROR] Could not find goal 'run' in plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 among available goals testCompile, compile, help -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException