maven - Weblogic Maven 部署

标签 maven weblogic

我正在使用 weblogic 10.3.6.0maven 3 .我想使用 maven 插件将我的项目部署到 weblogic 服务器。我在 this oracle documents 中执行相同的步骤

但是当我构建我的项目时,我收到这个错误

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building JBoss Portlet Bridge - JSF 2 Basic Portlet 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- weblogic-maven-plugin:2.9.5:deploy (default-cli) @ TestWeblogic ---
[WARNING] The POM for weblogic:weblogic:jar:10.3.6 is missing, no dependency i  information available
[WARNING] The POM for weblogic:webservices:jar:10.3.6 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.446s
[INFO] Finished at: Mon Jul 01 16:50:02 EEST 2013
[INFO] Final Memory: 7M/111M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:weblogic-maven-plugin:2.9.5:deploy (  (default-cli) on project TestWeblogic: Execution default-cli of goal org.codehaus.mojo:weblogic-maven-plugin:2.9.5:deploy failed: Plugin org.codehaus.mojo:weblogic-maven-plugin:2.9.5 or one of its dependencies could not be resolved: The following artifacts could not be resolved: weblogic:weblogic:jar:10.3.6, weblogic:webservices:jar:10.3.6: Failure to find weblogic:weblogic:jar:10.3.6 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced ->        [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/PluginResolutionException

我的 pom xml 在这里

<plugin> 
  <groupId>com.oracle.weblogic</groupId> 
  <artifactId>weblogic-maven-plugin</artifactId> 
  <version>10.3.6.0</version> 
  <configuration> 
      <adminurl>t3://localhost:7001</adminurl>
      <user>username</user> 
      <password>password</password> 
      <upload>true</upload> 
      <action>deploy</action> 
      <remote>false</remote> 
      <verbose>true</verbose> 
      <source>${project.build.directory}/${project.build.finalName}.${project.packaging}</source> 
     <name>${project.build.finalName}</name> 
  </configuration> 
 </plugin> 

我用 weblogic server 10.3.6.0 , eclipse juno , maven 3.0.4 .

最佳答案

您需要导入 wlfullclient.jarwebservices.jar .我尝试导入 weblogic.jar首先,但是 maven 抛出了一个 ClassCastException来自 weblogic.utils.Debug .
要构建此客户端,您需要执行:java -jar wljarbuilder.jarWL_HOME/server/lib .

准备好后,通过执行以下命令导入到 Maven 存储库:

mvn install:install-file -DgroupId=weblogic -DartifactId=weblogic
-Dversion=10.3.6  -Dpackaging=jar -Dfile=wlfullclient.jar


mvn install:install-file -DgroupId=weblogic -DartifactId=webservices -Dversion=10.3.6  -Dpackaging=jar -Dfile=webservices.jar

关于maven - Weblogic Maven 部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17406499/

相关文章:

java - Oracle Weblogic 将 jar 添加到类路径?

java - 如何运行tomcat7-maven-plugin,服务器代码更改将立即更新

eclipse 和 maven 全局中央存储库

integration - 如何将Weblogic的config.xml迁移到多台机器上?

java - 在 weblogic 中面临 perm gen space 错误

proxy - 带 Spring 的 CGLIB 抛出 IllegalAccessError

eclipse - 项目验证错误

java - 使用 jaxb 从 xsd 中选择生成 java 类

java - IntelliJ 的测试支持 Maven 感知吗?

Java从一个war文件注入(inject)到另一个war文件