首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何安装weblogic v12.1.2 (12c)的weblogic maven插件?

如何安装weblogic v12.1.2 (12c)的weblogic maven插件?
EN

Stack Overflow用户
提问于 2014-05-04 11:21:27
回答 2查看 21.9K关注 0票数 11

为了安装weblogic应用服务器,我使用以下链接解压缩了从weblogic应用程序服务器或oracle获得的两个文件:

dev.zip supplemental.zip

..found on 此页.

我只需解压缩两个文件,它们就会自动解压缩到同一个文件夹。将MW_HOMEJAVA_HOME环境变量分别设置为指向解压缩文件夹和Java7JDK位置,我运行了configure.cmd文件并成功结束。

问题是,如果按照上面的说明,我无法达到此页显示的相同结果。我在这里总结了这些说明:(ORACLE_HOMEMW_HOME相同,它们都指向安装文件夹)。

代码语言:javascript
运行
复制
%ORACLE_HOME%/wlserver/server/bin/setWLSEnv
cd %ORACLE_HOME%/oracle_common/plugins/maven/com/oracle/maven/oracle-maven-sync/12.1.2
mvn install:install-file -DpomFile=oracle-maven-sync.12.1.2.pom -Dfile=oracle-maven-sync.12.1.2.jar
mvn com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=D:/oracle_home
mvn help:describe -DgroupId=com.oracle.weblogic -DartifactId=weblogic-maven-plugin -Dversion=12.1.2-0-0

其中oracle-maven-sync.oracleHomeThe path to the Oracle home that you wish to populate the Maven repository from.。它基本上是包含wlserver目录的Weblogic目录。

问题是,最后一行(要求安装的插件进行描述)显示了以下错误消息(忽略被屏蔽的IP,我在这个问题中手动屏蔽了它们):

代码语言:javascript
运行
复制
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-help-plugin:2.2:describe (default-cli) @ standalone-pom ---
[WARNING] The POM for com.oracle.weblogic:weblogic-maven-plugin:jar:12.1.2-0-0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.775 s
[INFO] Finished at: 2014-05-04T13:00:03+02:00
[INFO] Final Memory: 7M/152M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-help-plugin:2.2:describe (default-cli) on project standalone-pom: Plugin does not exist: Plugin could not be found, please check its coordinates fo
 typos and ensure the required plugin repositories are defined in the POM
[ERROR] com.oracle.weblogic:weblogic-maven-plugin:maven-plugin:12.1.2-0-0
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] central (http://x.x.x.x:xxxx/artifactory/plugins-release, releases=true, snapshots=false),
[ERROR] snapshots (http://x.x.x.x:xxxx/artifactory/plugins-snapshot, releases=true, snapshots=true),
[ERROR] central-se (http://x.x.x.x:xxxx/artifactory/plugins-release, releases=true, snapshots=false),
[ERROR] snapshots-se (http://x.x.x.x:xxxx/artifactory/plugins-snapshot, releases=true, snapshots=true)
[ERROR] -> [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/MojoFailureException

是什么让我认为这不是网络问题,是因为我以前成功地安装了这个插件,但我不记得到底是怎么回事,我可能错过了一些步骤?

我该怎么解决这个问题?我的目标是能够以以下方式将来自maven的weblogic库引用为依赖项

代码语言:javascript
运行
复制
<dependency>
    <groupId>com.oracle.weblogic</groupId>
    <artifactId>weblogic-server-pom</artifactId>
    <version>12.1.2-0-0</version>
    <type>pom</type>
    <scope>provided</scope>
</dependency>
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-05-07 06:48:05

答案是在此页上,它提到了如何在本地存储库中安装weblogic的maven依赖项。要在远程存储库上安装它们,请遵循在本节中的说明。

为了快速参考,我必须运行以下命令(请在运行该命令之前阅读该命令后面的注释):

代码语言:javascript
运行
复制
mvn com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=%ORACLE_HOME% -Doracle-maven-sync.testingOnly=false

其中-Doracle-maven-sync.oracleHome表示weblogic的安装文件夹。它是一个文件夹,应该保存以下目录,而不仅仅是:

  • oracle_common
  • user_projects
  • wlserver

在我的问题中,我已经运行了插件mvn com.oracle.maven:oracle-maven-sync:push,但是没有指定这里提到的参数。

票数 11
EN

Stack Overflow用户

发布于 2014-05-07 05:57:53

根据WebLogic 12.1.2文档页,请遵循以下说明:

  1. 安装Oracle Maven同步插件并运行push目标:
代码语言:javascript
运行
复制
- Change directory to _ORACLE\_HOME\oracle\_common\plugins\maven\com\oracle\maven\oracle-maven-sync\12.1.2_.
- mvn install:install-file -DpomFile=oracle-maven-sync.12.1.2.pom -Dfile=oracle-maven-sync.12.1.2.jar.
- mvn com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=c:\oracle\middleware\oracle\_home.

  1. 您可以使用Maven帮助:describe目标验证是否成功安装了插件。有关其他信息,请参阅Apache插件描述目标文档。
代码语言:javascript
运行
复制
- mvn help:describe -DgroupId=com.oracle.weblogic -DartifactId=weblogic-maven-plugin -Dversion=12.1.2-0-0

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23455631

复制
相关文章

相似问题

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