Thursday, December 29, 2016

How to install weblogic maven plugin 12.2.1?

For installation you have to follow the next steps:
#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:
...
<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>
...
view raw plugin_pom.xml hosted with ❤ by GitHub
Important Links:

Best regards,

No comments:

Post a Comment