I am migrating from weblogic-maven-plugin (10.3) to wls-maven-plugin (12.1) and have encountered a problem deploying the shared library.
The problem is that wls-maven-plugin does not go to the Weblogic.Deployer library checkbox. For weblogic-maven-plugin I have the same conf:
<plugin> <groupId>com.oracle.weblogic</groupId> <artifactId>weblogic-maven-plugin</artifactId> <version>10.3.6.0</version> <configuration> <adminurl>t3://localhost:7001</adminurl> <user>${weblogic.username}</user> <password>${weblogic.password}</password> <upload>true</upload> <source>${project.build.directory}/${project.build.finalName}.${project.packaging}</source> <name>${project.build.finalName}</name> <isLibrary>true</isLibrary> </configuration> </plugin>
The isLibrary element shows the -library pass plugin that calls Weblogic.Deployer.
After switching to the wls plugin:
<plugin> <groupId>com.oracle.weblogic</groupId> <artifactId>wls-maven-plugin</artifactId> <version>12.1.1.0</version> <configuration> <adminurl>t3://localhost:7001</adminurl> <user>${weblogic.username}</user> <password>${weblogic.password}</password> <middlewareHome>${env.MW_HOME}</middlewareHome> <upload>false</upload> <action>deploy</action> <remote>false</remote> <isLibrary>true</isLibrary> <verbose>true</verbose> <source>${project.build.directory}/${project.build.finalName}.${project.packaging}</source> <name>${project.build.finalName}</name> </configuration> </plugin>
But the wls plugin does not pass the -library flag to Weblogic.Deployer and as a result the jar is deployed with an unknown type, so my applications cannot use the library because they could not find it.
Note. If I do a manual deployment using Weblogic.Deployer, everything works fine, so my manifest and weblogic-application.xml files should be correct.
source share