How can i set deployment options in maven weblogic plugin?
I am using maven weblogic plugin开发者_StackOverflow中文版 10.3.4. I have read the goal list of weblogic plugin but it does not include the deployment option - isTestMode in the configuration tag. My question is how can I deploy an application in test mode using maven plugin? Would application.xml/deployment plan would do ?
Helps would greatly be appreciated.
The isTestMode option is deprecated and you should use AdminMode instead. Here is an example (I use Maven profiles to define the variables for each environment):
<plugin>
<groupId>com.oracle.weblogic</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<executions>
<execution>
<id>ops-common-deployable-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<version>10.3.4</version>
<configuration>
<adminurl>${weblogic.Deployer.adminurl}</adminurl>
<user>${weblogic.Deployer.user}</user>
<password>${weblogic.Deployer.password}</password>
<source>${project.build.directory}/${project.build.finalName}.${project.packaging}</source>
<name>${project.build.finalName}</name>
<targets>${weblogic.Deployer.application.targets}</targets>
<remote>${weblogic.Deployer.remote}</remote>
<upload>${weblogic.Deployer.upload}</upload>
<adminmode>false</adminmode>
</configuration>
</plugin>
精彩评论