This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#locate on the follow folder direction: | |
cd c:\oracle\wls1221\oracle_common\plugins\maven\com\oracle\maven\oracle-maven-sync\12.2.1 | |
#execute installation of oracle maven sync | |
mvn install:install-file -DpomFile=oracle-maven-sync-12.2.1.pom -Dfile=oracle-maven-sync-12.2.1.jar | |
#it would take for while the copy of several artifacts | |
mvn com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=C:\Oracle\Middleware\Oracle_Home_122120 | |
#check correct installation of artifacts | |
mvn help:describe -DgroupId=com.oracle.weblogic -DartifactId=weblogic-maven-plugin -Dversion=12.2.1-2-0 |
and finally add plugin for weblogic:deploy purpose:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<plugin> | |
<groupId>com.oracle.weblogic</groupId> | |
<artifactId>weblogic-maven-plugin</artifactId> | |
<version>12.2.1-2-0</version> | |
<configuration> | |
<adminurl>t3://localhost:7001</adminurl> | |
<user>weblogic</user> | |
<password>weblogic1</password> | |
<upload>true</upload> | |
<targets>AdminServer</targets> | |
<action>deploy</action> | |
<remote>false</remote> | |
<verbose>true</verbose> | |
<source>${project.build.directory}/${project.build.finalName}.${project.packaging}</source> | |
<name>${project.build.finalName}</name> | |
</configuration> | |
<executions> | |
<execution> | |
<phase>install</phase> | |
<goals> | |
<goal>deploy</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
... |
- http://ruleoftech.com/2014/using-the-weblogic-12c-maven-plug-in-for-deployment
- http://docs.oracle.com/middleware/1212/wls/WLPRG/maven.htm#WLPRG591
- http://docs.oracle.com/cd/E24329_01/web.1211/e24378/jarbuilder.htm#SACLT239
Best regards,