【问题标题】:Weblogic Maven Deploy with Luna eclipseWeblogic Maven 部署与 Luna eclipse
【发布时间】:2015-03-25 15:59:15
【问题描述】:

我正在使用 weblogic 12.1.1.0 。我想使用 maven 插件将我的项目部署到 weblogic 服务器。 但是当我构建我的项目时,我得到了这个错误

[INFO] Scanning for projects...
[WARNING] The POM for com.oracle.weblogic:wls-maven-plugin:jar:12.1.1.0 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for com.oracle.weblogic:wls-maven-plugin:12.1.1.0: Plugin com.oracle.weblogic:wls-maven-plugin:12.1.1.0 or one of its dependencies could not be resolved: Failure to find com.oracle.weblogic:wls-maven-plugin:jar:12.1.1.0 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
[INFO] 
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building test1 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.oracle.weblogic:wls-maven-plugin:jar:12.1.1.0 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for com.oracle.weblogic:wls-maven-plugin:12.1.1.0: Plugin com.oracle.weblogic:wls-maven-plugin:12.1.1.0 or one of its dependencies could not be resolved: Failure to find com.oracle.weblogic:wls-maven-plugin:jar:12.1.1.0 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
[INFO] 
[INFO] --- weblogic-maven-plugin:2.9.5:deploy (default-cli) @ test1 ---
[WARNING] The POM for weblogic:weblogic:jar:10.3.6 is missing, no dependency 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: 0.533 s
[INFO] Finished at: 2015-01-27T08:38:04+03:30
[INFO] Final Memory: 7M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:weblogic-maven-plugin:2.9.5:deploy (default-cli) on project test1: 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

<properties>
      <weblogic.adminurl>t3://localhost:7001</weblogic.adminurl>
      <weblogic.user>weblogic</weblogic.user>
      <weblogic.password>12345678</weblogic.password>
      <weblogic.remote>false</weblogic.remote>

  </properties>

  <build> 
  <plugins> 


  <!-- WebLogic Server 12c Maven Plugin -->
            <plugin>

                <groupId>com.oracle.weblogic</groupId>
                <artifactId>wls-maven-plugin</artifactId>
                <version>12.1.1.0</version>



                <configuration>
                    <adminurl>${weblogic.adminurl}</adminurl>
                    <user>${weblogic.user}</user>
                    <password>${weblogic.password}</password>
                    <source>../test1/target/test1-0.0.1-SNAPSHOT.war</source> 
                    <name>test1</name> 

                </configuration>
            </plugin>



  </plugins> 
  </build> 

我在项目 wlfullclient.jar 和 webservices.jar 中添加了两个 jar 文件

【问题讨论】:

标签: java eclipse maven weblogic12c


【解决方案1】:

您是否运行过 Oracle 的 weblogic 插件的设置程序?该插件具有不在公共存储库中的依赖项,它们是 wls12 安装的一部分,必须安装到 Maven 中

http://docs.oracle.com/middleware/1212/wls/WLPRG/maven.htm#CHEIHIEH

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-18
    • 2014-01-31
    • 1970-01-01
    • 1970-01-01
    • 2011-01-07
    • 2016-03-11
    相关资源
    最近更新 更多