私はEclipseのMavenプロジェクトでweblogic-maven-pluginを使用したいので、weblogicサーバー12c 1.2.1でweblogic-maven-plugin.jarを生成し、それを使用しています。
<plugin>
<groupId>com.oracle.weblogic</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>12.1.2.0</version>
<configuration>
<adminurl>t3://weblogicServerIP:7001</adminurl>
<user>weblogic</user>
<password>weblogic123</password>
<targets>Cluster-1</targets>
<upload>true</upload>
<action>deploy</action>
<remote>true</remote>
<verbose>true</verbose>
<source>${project.build.directory}/${project.build.finalName}.${project.packaging}</source>
<name>myProject</name>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
しかし、weblogic maven プラグインに問題があります。デプロイするローカルで Maven プロジェクトをビルドすると、ビルドが失敗します。
The args for the deployer is: -noexit -adminurl t3://weblogicServerIP:7001 -user weblogic -password ******** -deploy -name myProject -source myProject.war -targets Cluster-1 -upload -remote -verbose
weblogic.Deployer invoked with options: -noexit -adminurl t3://weblogicServerIP:7001 -user weblogic -deploy -name myProject -source myProject.war -targets Cluster-1 -upload -remote -verbose
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:04.013s
[INFO] Finished at: Mon Jan 13 10:27:27 EET 2014
[INFO] Final Memory: 9M/23M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.oracle.weblogic:weblogic-maven-plugin:12.1.2.0:deploy (default) on project myProject: weblogic.deploy.api.tools.deployer.DeployerException: Unable to connect to 't3://weblogicServerIP:7001': weblogic.security.utils.KeyStoreConfiguration. Ensure the url represents a running admin server and that the credentials are correct. If using http protocol, tunneling must be enabled on the admin server.
サーバー プロトコルのトンネリングを有効にしましたが、このエラーで変更するものはありません。ところで、weblogicServer コマンド行の下にあるこのコマンドを実行しましたが、エラー メッセージは表示されませんでした。最後に、私の展開は成功しました。
java weblogic.Deployer -noexit -adminurl t3://weblogicServerIP:7001 -user weblogic -password weblogic123 -deploy -name myProject -source myProject.war -targets Cluster-1 -upload -verbose -debug
ところで、weblogic-maven-plugin.jar を抽出しましたが、KeyStoreConfiguration.java が見つかりませんでした。どこにも見つかりませんでした。
それで、私は何をすべきですか?newtwork に問題がありますか、それとも weblogic-maven-plugin.jar に問題がありますか?
私たちを手伝ってくれますか?