Skip to content

Commit cbd39b8

Browse files
author
Arun Gupta
committed
Samples can run using Embedded GlassFish using "embedded-glassfish" profile
1 parent a488d82 commit cbd39b8

1 file changed

Lines changed: 49 additions & 42 deletions

File tree

pom.xml

Lines changed: 49 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -111,48 +111,6 @@
111111
</configuration>
112112
</configuration>
113113
</plugin>
114-
<plugin>
115-
<groupId>org.glassfish.embedded</groupId>
116-
<artifactId>maven-embedded-glassfish-plugin</artifactId>
117-
<version>4.0</version>
118-
<configuration>
119-
<app>target/${project.artifactId}.war</app>
120-
<port>8080</port>
121-
<ports>
122-
<https-listener>8181</https-listener>
123-
</ports>
124-
</configuration>
125-
<dependencies>
126-
<dependency>
127-
<groupId>org.glassfish.main.common</groupId>
128-
<artifactId>simple-glassfish-api</artifactId>
129-
<version>4.0</version>
130-
</dependency>
131-
<dependency>
132-
<groupId>org.glassfish.main.extras</groupId>
133-
<artifactId>glassfish-embedded-all</artifactId>
134-
<version>4.0</version>
135-
</dependency>
136-
</dependencies>
137-
<executions>
138-
<execution>
139-
<id>start</id>
140-
<phase>integration-test</phase>
141-
<goals>
142-
<goal>start</goal>
143-
<goal>deploy</goal>
144-
</goals>
145-
</execution>
146-
<execution>
147-
<id>stop</id>
148-
<phase>post-integration-test</phase>
149-
<goals>
150-
<goal>undeploy</goal>
151-
<goal>stop</goal>
152-
</goals>
153-
</execution>
154-
</executions>
155-
</plugin>
156114
</plugins>
157115
</build>
158116

@@ -194,6 +152,55 @@
194152
</plugins>
195153
</build>
196154
</profile>
155+
<profile>
156+
<id>embedded-glassfish</id>
157+
<build>
158+
<plugins>
159+
<plugin>
160+
<groupId>org.glassfish.embedded</groupId>
161+
<artifactId>maven-embedded-glassfish-plugin</artifactId>
162+
<version>4.0</version>
163+
<configuration>
164+
<app>target/${project.artifactId}.war</app>
165+
<port>8080</port>
166+
<ports>
167+
<https-listener>8181</https-listener>
168+
</ports>
169+
</configuration>
170+
<dependencies>
171+
<dependency>
172+
<groupId>org.glassfish.main.common</groupId>
173+
<artifactId>simple-glassfish-api</artifactId>
174+
<version>4.0</version>
175+
</dependency>
176+
<dependency>
177+
<groupId>org.glassfish.main.extras</groupId>
178+
<artifactId>glassfish-embedded-all</artifactId>
179+
<version>4.0</version>
180+
</dependency>
181+
</dependencies>
182+
<executions>
183+
<execution>
184+
<id>start</id>
185+
<phase>integration-test</phase>
186+
<goals>
187+
<goal>start</goal>
188+
<goal>deploy</goal>
189+
</goals>
190+
</execution>
191+
<execution>
192+
<id>stop</id>
193+
<phase>post-integration-test</phase>
194+
<goals>
195+
<goal>undeploy</goal>
196+
<goal>stop</goal>
197+
</goals>
198+
</execution>
199+
</executions>
200+
</plugin>
201+
</plugins>
202+
</build>
203+
</profile>
197204
<profile>
198205
<id>wildfly</id>
199206
<build>

0 commit comments

Comments
 (0)