Skip to content

Instantly share code, notes, and snippets.

@biemond
Created July 31, 2014 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biemond/6940004bac83c1aaf0b0 to your computer and use it in GitHub Desktop.
Save biemond/6940004bac83c1aaf0b0 to your computer and use it in GitHub Desktop.
Maven WebLogic Plugin
<properties>
<project_mdwhome>/Users/edwin/Oracle/JDevMiddleware12.1.3_normal</project_mdwhome>
<project_adminurl>t3://127.0.0.1:7001</project_adminurl>
<project_wlsusername>weblogic</project_wlsusername>
<project_wlspassword>weblogic1</project_wlspassword>
<project_wstarget>AdminServer</project_wstarget>
<project_wsurl>http://127.0.0.1:7001</project_wsurl>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.oracle.weblogic</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>12.1.3-0-0</version>
<configuration>
<middlewareHome>${project_mdwhome}</middlewareHome>
<user>${project_wlsusername}</user>
<password>${project_wlspassword}</password>
<domainHome>${project.build.directory}/base_domain</domainHome>
<adminurl>${project_adminurl}</adminurl>
<targets>${project_wstarget}</targets>
</configuration>
<executions>
<execution>
<id>wls-create-domain</id>
<phase>pre-integration-test</phase>
<goals>
<goal>create-domain</goal>
</goals>
<configuration>
<failOnDomainExists>true</failOnDomainExists>
</configuration>
</execution>
<execution>
<id>wls-start-domain</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start-server</goal>
</goals>
</execution>
<execution>
<id>wls-deploy-jax-rs</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<source>${project_mdwhome}/wlserver/common/deployable-libraries/jax-rs-2.0.war</source>
<verbose>true</verbose>
<name>jax-rs</name>
<library>true</library>
</configuration>
</execution>
<execution>
<id>wls-deploy</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<source>${project.build.directory}/${project.build.finalName}.${project.packaging}</source>
<verbose>true</verbose>
<name>${project.build.finalName}</name>
</configuration>
</execution>
<execution>
<id>wls-undeploy</id>
<phase>post-integration-test</phase>
<goals>
<goal>undeploy</goal>
</goals>
<configuration>
<verbose>true</verbose>
<name>${project.build.finalName}</name>
</configuration>
</execution>
<execution>
<id>wls-stop-domain</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop-server</goal>
</goals>
</execution>
<execution>
<id>wls-destroy-domain</id>
<phase>post-integration-test</phase>
<goals>
<goal>remove-domain</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