Sunday, 16 April 2017

Maven Hot Deployment Plugin on Weblogic 12c

1) Install jar 
mvn install:install-file -DpomFile=oracle-maven-sync-12.2.1.pom -Dfile=oracle-maven-sync-12.2.1.jar
path:- D:\installs\fmw_12.2.1.1.0_wls_quick_Disk1_1of1\wls12210\oracle_common\plugins\maven\com\oracle\maven\oracle-maven-sync\12.2.1

2) Sync Local Repo - (Requires Internet)
mvn com.oracle.maven:oracle-maven-sync:push -DoracleHome=D:\installs\fmw_12.2.1.1.0_wls_quick_Disk1_1of1\wls12210\ -Doracle-maven-sync.testingOnly=false

3) Add Plugin to profile within pom.xml


<build>
        <plugins>
            <plugin>
        <groupId>com.oracle.weblogic</groupId>
        <artifactId>weblogic-maven-plugin</artifactId>
        <version>12.2.1-1-0</version>
        <configuration>
            <adminurl>t3://localhost:7001</adminurl>
            <user>weblogic</user>
            <password>admin123</password>
            <upload>true</upload>
            <!-- <targets>myServer</targets> -->
            <action>deploy</action>
            <remote>false</remote>
            <verbose>true</verbose>
            <source>D:\workspace\YOLO\target</source>
            <name>YOLO</name>
        </configuration>
        <executions>
            <execution>
                <phase>install</phase>
                <goals>
                    <goal>deploy</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
        </plugins>
    </build>


Article to follow :- https://ruleoftech.com/2014/using-the-weblogic-12c-maven-plug-in-for-deployment

No comments:

Post a Comment

AWS Certificate Manager - Import Certificate

How to import a certificate. Use Key Store Explorer to open the cert and export keypair in PEM format  This will save a file cert.pem. Make ...