Last active
August 29, 2015 14:03
-
-
Save luizrobertofreitas/57c6d933fd1a7296218e to your computer and use it in GitHub Desktop.
Maven ant plugin for weblogic deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using maven ant plugin for weblogic deployment. First, configure your pom.xml as below. Try the following maven command to execute the plugin goal: | |
mvn clean package antrun:run | |
Configuration: | |
<build> | |
<finalName>artifactName</finalName> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<inherited>true</inherited> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.6</version> | |
<executions> | |
<execution> | |
<id>default-cli</id> | |
<!-- <phase>package</phase> --> | |
<configuration> | |
<target> | |
<property environment="env"/> | |
<taskdef name="wldeploy" classpath="${MIDDLEWARE_HOME}/wlserver_10.3/server/lib/weblogic.jar" | |
classname="weblogic.ant.taskdefs.management.WLDeploy"/> | |
<wldeploy action="deploy" verbose="true" source="target/artifactName.war" | |
name="artifactName" user="weblogic_username" password="weblogic_password" | |
adminurl="t3://host:port" /> | |
</target> | |
</configuration> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment