Skip to content

Instantly share code, notes, and snippets.

@virgium03
Last active August 29, 2015 13:56
Show Gist options
  • Save virgium03/9249229 to your computer and use it in GitHub Desktop.
Save virgium03/9249229 to your computer and use it in GitHub Desktop.
Deploy webapps with Weblogic Maven plugin
mvn com.oracle.weblogic:weblogic-maven-plugin:undeploy com.oracle.weblogic:weblogic-maven-plugin:deploy -pdev -Dweblogic.server.target=ms1
<plugin>
<groupId>com.oracle.weblogic</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>10.3.6.0</version>
<configuration>
<adminurl>${weblogic.admin.url}</adminurl>
<user>${weblogic.user}</user>
<password>${weblogic.password}</password>
<upload>true</upload>
<action>deploy</action>
<stage>true</stage>
<targets>${weblogic.server.targets}</targets>
<remote>true</remote>
<verbose>true</verbose>
<source>${project.build.directory}/${project.build.finalName}</source>
<!-- <source>${project.build.directory}/classes</source> -->
<name>${project.build.finalName}</name>
</configuration>
</plugin>
<profile>
<id>dev</id>
<properties>
<environment>dev</environment>
<weblogic.admin.url>t3://${weblogic.host}:7001</weblogic.admin.url>
<weblogic.user>${weblogic.user}</weblogic.user>
<weblogic.password>${weblogic.password}</weblogic.password>
<weblogic.server.targets>${weblogic.server.target}</weblogic.server.targets>
</properties>
</profile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment