如何为 weblogic v12.1.2 (12c) 安装 weblogic maven 插件? [英] How to install weblogic maven plugin for weblogic v12.1.2 (12c)?

查看:31
本文介绍了如何为 weblogic v12.1.2 (12c) 安装 weblogic maven 插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

To install weblogic application server I decompressed 2 files I got from or oracle using these links:

http://download.oracle.com/otn/nt/middleware/12c/wls/1212/wls1212_dev.ziphttp://download.oracle.com/otn/nt/middleware/12c/wls/1212/wls1212_dev_supplemental.zip

..在此页面上找到.

我只是解压了这两个文件,它们会自动解压到同一个文件夹.将 MW_HOMEJAVA_HOME 环境变量设置为分别指向解压文件夹和 Java 7 JDK 位置,我运行了 configure.cmd 文件,它成功结束.

I simply decompressed both files and they automatically decompress to the same folder. setting the MW_HOME and JAVA_HOME environment variables to point to the decompressed folder and Java 7 JDK locations respectively, I ran the configure.cmd file and it ended successfully.

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

The problem is that I can't reach the same result this page shows if I follow the instructions on it. I summarized these instructions here: (ORACLE_HOME is identical to MW_HOME, they both point to the installation folder.)

%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.oracleHome您希望从中填充 Maven 存储库的 Oracle 主目录的路径..它基本上是包含 wlserver 目录的 Weblogic 目录.

Where oracle-maven-sync.oracleHome is The path to the Oracle home that you wish to populate the Maven repository from.. Its basically the Weblogic directory having wlserver directory in it.

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

The problem is that the last line (the line that asks the installed plugin for description), shows the following error message (Ignore the masked IPs, I masked them manually in this question):

[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

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

What makes me think that this is NOT a network problem, is that I've successfully installed this plugin before, but I can't remember how exactly so may be I'm missing some steps ?

请问我该如何解决?我的目标是能够通过以下方式将 Maven 中的 weblogic 库作为 依赖项 引用:

How can I resolve this please ? My goal is to be able to refer to weblogic's libraries from maven as a dependency in the following way:

<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>

推荐答案

答案在 这个页面,其中提到了如何在本地存储库中安装 weblogic 的 maven 依赖项.要在远程存储库上安装它们,请按照本节中的说明.

The answer is on this page which mentions how to install weblogic's maven dependencies in the local repository. For installing them on the remote repository, follow the instructions in this section.

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

For quick reference, I had to run this command (Please read the comments after the command before running it):

mvn com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=%ORACLE_HOME% -Doracle-maven-sync.testingOnly=false

其中 -Doracle-maven-sync.oracleHome 代表 weblogic 的安装文件夹.它是一个文件夹,应该包含目录,而不仅仅是:

Where -Doracle-maven-sync.oracleHome represents weblogic's installation folder. Its a folder that should hold directories like and not only:

  • oracle_common
  • user_projects
  • wlserver

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

In my question I already ran the plugin mvn com.oracle.maven:oracle-maven-sync:push but I didn't specify the parameters mentioned here.

这篇关于如何为 weblogic v12.1.2 (12c) 安装 weblogic maven 插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆