【发布时间】:2014-01-31 23:53:17
【问题描述】:
我想在 Eclipse 的 maven 项目中使用 weblogic-maven-plugin,所以我在 weblogic server 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 cmd 行下面运行这个 cmd,我没有收到错误消息。终于我的部署成功了。
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有问题?
你能帮帮我吗?
【问题讨论】:
-
这里有同样的错误,有什么解决办法吗?
标签: java eclipse maven weblogic-maven-plugin