How to install weblogic maven plugin for weblogic v12.1.2 (12c)?

情到浓时终转凉″ 提交于 2019-12-01 03:31:50

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

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

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.

As per the WebLogic 12.1.2 documentation page, follow these instructions:

  1. Install the Oracle Maven sync plug-in and run the push goal:

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

  2. You can validate whether you have successfully installed the plug-in using the Maven help:describe goal. See the Apache help plug-in describe goal documentation for additional information.

    • mvn help:describe -DgroupId=com.oracle.weblogic -DartifactId=weblogic-maven-plugin -Dversion=12.1.2-0-0
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!