This discussion is archived
4 Replies Latest reply: Jul 14, 2012 7:16 PM by Kalyan Pasupuleti-Oracle RSS

"weblogic.Deployer" generated from Maven plugin has problem

513108 Newbie
Currently Being Moderated
Hi,

h1. Environment
- WebLogic 10.3.3
- WebLogic-maven-plugin 10.3.6.0 (generated manually from WebLogic 10.3.6.0 as I was looking for a bug fix)
- Maven 3

h1. Objective
Deploy an Optional Package to web logic using pluging's deploy goal.

h1. Problem
The generated weblogic.Deployer command from the plugin has a problem. Following is the generated command:

weblogic.Deployer invoked with options:  -noexit -adminurl t3://localhost:7001 -userconfigfile C:\apps\Oracle\Middleware\wls.config -userkeyfile C:\apps\Oracle\Middleware\wls.key -deploy -name com.xxx.entities -source C:\Users\amir\Eclipse Workspace3\Models\target\Models-1.0.1-SNAPSHOT.jar -targets JEE -stage -library -libspecver 1.6 libimplver 1.0.1 -verbose

As you might have noticed, the libimplver switch is missing a hyphen. If add the missing hyphen and run it manually, it works.



h1. Maven Configuration
Plugin's configuration is in two places:

- Super POM

<plugin>
<groupId>com.oracle.weblogic</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
     <version>10.3.6.0</version>
     <configuration>
          <adminurl>t3://localhost:7001</adminurl>
          <stage>true</stage>
          <remote>false</remote>
          <verbose>true</verbose>
          <targets>JEE</targets>
          <userConfigFile>C:\apps\Oracle\Middleware\wls.config</userConfigFile>
          <userKeyFile>C:\apps\Oracle\Middleware\wls.key</userKeyFile>
          <source>${project.build.directory}\${project.build.finalName}.${project.packaging}</source>
     </configuration>
...
</plugin>

- Module's POM


<plugin>
     <groupId>com.oracle.weblogic</groupId>
     <artifactId>weblogic-maven-plugin</artifactId>
     <configuration>
          <name>com.xxx.entities</name>
          <isLibrary>true</isLibrary>
          <libImplVer>1.0.1</libImplVer>
          <libSpecVer>1.6</libSpecVer>
     </configuration>
</plugin>


Appreciate any idea or suggestion.

Edited by: Keibi on Jul 4, 2012 10:40 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points