简体   繁体   中英

How can i set deployment options in maven weblogic plugin?

I am using maven weblogic plugin 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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM