[WebLogic] How to import WebLogic jars into maven local repository

[WebLogic] How to import WebLogic jars into maven local repository

If you are developing the the java web application based-on maven and WebLogic application server you possibly need to import some WebLogic libraries or API into your local maven repository. WebLogic provides this feature and even more than it. WebLogic Server provides support for Maven through the provisioning of plug-ins that enable you to perform various operations on WebLogic Server from within a Maven environment and runtime libraries.

I’ll take WebLogic 12.2.1.3 as an example to demonstrate how to do this.

An important location

First go to

cd <wls_home>\oracle_common\plugins\maven\com\oracle\maven\oracle-maven-sync\12.2.1
ls -l
oracle-maven-sync-12.2.1.jar
oracle-maven-sync-12.2.1.pom

Maven install

In the directory, continue executing mvn install

mvn install:install-file -DpomFile=oracle-maven-sync-12.2.1.pom -Dfile=oracle-maven-sync-12.2.1.jar
mvn com.oracle.maven:oracle-maven-sync:push -DoracleHome=<wls_home>

To test install result

mvn help:describe -DgroupId=com.oracle.weblogic -DartifactId=weblogic-maven-plugin -Dversion=12.2.1-3-0

What you have

Now what you have in local maven repository,

  • WebLogic runtime libraries or API
  • WebLogic Maven Plug-in
    • The weblogic-maven-plugin provides enhanced functionality to install, start and stop servers, create domains, execute WLST scripts, and compile and deploy applications. With the weblogic-maven-plugin, you can install WebLogic Server from within your Maven environment to fulfill the local WebLogic Server requirement when needed.

Reference

https://docs.oracle.com/middleware/12213/wls/WLPRG/maven.htm#WLPRG585

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值