Skip to content

Commit afe98cb

Browse files
committed
Added support for running the samples/tests using GlassFish maven plugin
1 parent 94b211a commit afe98cb

1 file changed

Lines changed: 32 additions & 27 deletions

File tree

pom.xml

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,18 @@
205205
<profiles>
206206
<profile>
207207
<id>glassfish</id>
208+
<pluginRepositories>
209+
<pluginRepository>
210+
<id>maven.java.net</id>
211+
<name>Java.net Repository for Maven</name>
212+
<url>https://maven.java.net/content/groups/promoted/</url>
213+
</pluginRepository>
214+
<pluginRepository>
215+
<id>maven2-repository.dev.java.net</id>
216+
<name>Java.net Repository for Maven</name>
217+
<url>http://download.java.net/maven/glassfish/</url>
218+
</pluginRepository>
219+
</pluginRepositories>
208220
<build>
209221
<plugins>
210222
<plugin>
@@ -229,33 +241,6 @@
229241
</container>
230242
</configuration>
231243
</plugin>
232-
</plugins>
233-
</build>
234-
<dependencies>
235-
<dependency>
236-
<groupId>org.glassfish.tyrus</groupId>
237-
<artifactId>tyrus-client</artifactId>
238-
<version>1.3</version>
239-
<scope>test</scope>
240-
</dependency>
241-
<dependency>
242-
<groupId>org.glassfish.tyrus</groupId>
243-
<artifactId>tyrus-container-grizzly-client</artifactId>
244-
<version>1.3</version>
245-
<scope>test</scope>
246-
</dependency>
247-
<dependency>
248-
<groupId>org.glassfish.jersey.core</groupId>
249-
<artifactId>jersey-client</artifactId>
250-
<version>2.4</version>
251-
<scope>test</scope>
252-
</dependency>
253-
</dependencies>
254-
</profile>
255-
<profile>
256-
<id>embedded-glassfish</id>
257-
<build>
258-
<plugins>
259244
<plugin>
260245
<groupId>org.glassfish.embedded</groupId>
261246
<artifactId>maven-embedded-glassfish-plugin</artifactId>
@@ -300,6 +285,26 @@
300285
</plugin>
301286
</plugins>
302287
</build>
288+
<dependencies>
289+
<dependency>
290+
<groupId>org.glassfish.tyrus</groupId>
291+
<artifactId>tyrus-client</artifactId>
292+
<version>1.3</version>
293+
<scope>test</scope>
294+
</dependency>
295+
<dependency>
296+
<groupId>org.glassfish.tyrus</groupId>
297+
<artifactId>tyrus-container-grizzly-client</artifactId>
298+
<version>1.3</version>
299+
<scope>test</scope>
300+
</dependency>
301+
<dependency>
302+
<groupId>org.glassfish.jersey.core</groupId>
303+
<artifactId>jersey-client</artifactId>
304+
<version>2.4</version>
305+
<scope>test</scope>
306+
</dependency>
307+
</dependencies>
303308
</profile>
304309
<profile>
305310
<id>wildfly</id>

0 commit comments

Comments
 (0)