Skip to content

Commit f70e97d

Browse files
author
Reza Rahman
committed
Adding WebLogic plugin.
1 parent 7d729eb commit f70e97d

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ This application demonstrates how Java EE applications can be effectively
44
tested using Arquillian on WebLogic 12.1.3. The application contains a
55
set of JUnit tests that you should examine. The tests will be run as part
66
of the Maven build. The tests require a running instance of
7-
WebLogic (please see setup instructions).
7+
WebLogic (please see setup instructions). The WebLogic Maven plugins used as
8+
part of the build also
89

910
WebLogic 12.1.3 supports Java EE 6 and some key Java EE 7 APIs -
1011
WebSocket, JAX-RS 2, JSON-P and JPA 2.1. The application uses both

actionbazaar/pom.xml

+48
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,54 @@
137137
<skipTests>false</skipTests>
138138
</configuration>
139139
</plugin>
140+
<plugin>
141+
<!-- This is the configuration for the weblogic-maven-plugin -->
142+
<groupId>com.oracle.weblogic</groupId>
143+
<artifactId>weblogic-maven-plugin</artifactId>
144+
<version>12.1.3-0-0</version>
145+
<configuration>
146+
<middlewareHome>C:\Oracle\Middleware\Oracle_Home\wlserver</middlewareHome>
147+
</configuration>
148+
<executions>
149+
<!-- (Re)deploy the application to the WebLogic Server -->
150+
<execution>
151+
<id>wls-redeploy</id>
152+
<phase>pre-integration-test</phase>
153+
<goals>
154+
<goal>redeploy</goal>
155+
</goals>
156+
<configuration>
157+
<!--The admin URL where the app is deployed.
158+
Here use the plugin's default value
159+
t3://localhost:7001-->
160+
<adminurl>t3://127.0.0.1:7001</adminurl>
161+
<user>weblogic</user>
162+
<password>welcome123</password>
163+
<!--The location of the file or directory to be deployed-->
164+
<source>${project.build.directory}/${project.build.finalName}.${project.packaging}</source>
165+
<!--The target servers where the application is deployed.
166+
Here use the plugin's default value AdminServer-->
167+
<targets>AdminServer</targets>
168+
<verbose>true</verbose>
169+
<name>${project.build.finalName}</name>
170+
</configuration>
171+
</execution>
172+
<execution>
173+
<id>wls-undeploy</id>
174+
<phase>pre-clean</phase>
175+
<goals>
176+
<goal>undeploy</goal>
177+
</goals>
178+
<configuration>
179+
<adminurl>t3://127.0.0.1:7001</adminurl>
180+
<user>weblogic</user>
181+
<password>welcome123</password>
182+
<name>${project.build.finalName}</name>
183+
<failOnError>false</failOnError>
184+
</configuration>
185+
</execution>
186+
</executions>
187+
</plugin>
140188
</plugins>
141189
</build>
142190
</project>

0 commit comments

Comments
 (0)