首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Weblogic Maven部署

Weblogic Maven部署
EN

Stack Overflow用户
提问于 2013-07-01 22:08:29
回答 2查看 12.2K关注 0票数 6

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

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

代码语言:javascript
复制
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在这里

代码语言:javascript
复制
<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.0eclipse junomaven 3.0.4

EN

回答 2

Stack Overflow用户

发布于 2013-10-22 20:53:06

您需要导入wlfullclient.jarwebservices.jar。我先尝试导入weblogic.jar,但maven抛出了weblogic.utils.DebugClassCastException。要构建这个客户端,您需要在WL_HOME/server/lib中执行:java -jar wljarbuilder.jar

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

代码语言:javascript
复制
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
票数 6
EN

Stack Overflow用户

发布于 2013-09-04 19:45:06

根据您的日志,看起来您使用的是JBoss,而不是Weblogic:

代码语言:javascript
复制
Building JBoss Portlet Bridge
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17406499

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档