Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 02159ac

Browse files
Added Payara Micro profile
Signed-off-by: arjantijms <arjan.tijms@gmail.com>
1 parent 6ac3703 commit 02159ac

File tree

2 files changed

+73
-7
lines changed

2 files changed

+73
-7
lines changed

‎README.asciidoc‎ renamed to ‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ These are the available container profiles:
1919
Useful for CI servers. The Payara version that's used can be set via the ``payara.version`` property.
2020
This is the default profile and does not have to be specified explicitly.
2121

22-
* ``payara-embedded``
22+
* ``payara-micro-managed``
2323

24-
This profile uses the Payara embedded server and runs in the same JVM as the TestClass.
25-
Useful for development, but has the downside of server startup per sample.
24+
This profile will install Payara Micro and start up the jar per sample.
25+
Useful for CI servers. The Payara Micro version that's used can be set via the ``payara.micro.version`` property.
2626

2727
* ``payara-remote``
2828

‎pom.xml‎

Lines changed: 70 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525

2626
<!-- Application Server versions (these are downloaded and installed
2727
in these versions by Maven for the CI profiles) -->
28-
<payara.version>5.Beta2</payara.version>
28+
<payara.version>5.Beta3-m1</payara.version>
29+
<payara.micro.version>5.Beta3-m1</payara.micro.version>
2930
<glassfish.version>4.1.1</glassfish.version>
3031
<tomcat.version>9.0.4</tomcat.version>
3132
</properties>
@@ -66,7 +67,6 @@
6667
</releases>
6768
<snapshots>
6869
<enabled>true</enabled>
69-
<updatePolicy>always</updatePolicy>
7070
</snapshots>
7171
</repository>
7272

@@ -116,14 +116,14 @@
116116
<dependency>
117117
<groupId>org.jboss.arquillian</groupId>
118118
<artifactId>arquillian-bom</artifactId>
119-
<version>1.2.1.Final</version>
119+
<version>1.3.0.Final</version>
120120
<scope>import</scope>
121121
<type>pom</type>
122122
</dependency>
123123
<dependency>
124124
<groupId>org.jboss.arquillian.container</groupId>
125125
<artifactId>arquillian-container-test-api</artifactId>
126-
<version>1.2.1.Final</version>
126+
<version>1.3.0.Final</version>
127127
</dependency>
128128
<dependency>
129129
<groupId>com.h2database</groupId>
@@ -505,6 +505,72 @@
505505
</profile>
506506

507507

508+
<profile>
509+
<id>payara-micro-managed</id>
510+
511+
<properties>
512+
<skipJMS>true</skipJMS>
513+
<skipJAXWS>true</skipJAXWS>
514+
</properties>
515+
516+
<dependencies>
517+
<!-- Java EE based client dependencies to contact a server via WebSocket or REST -->
518+
<dependency>
519+
<groupId>fish.payara.arquillian</groupId>
520+
<artifactId>payara-client-ee8</artifactId>
521+
</dependency>
522+
523+
<!-- The Arquillian connector -->
524+
<dependency>
525+
<groupId>fish.payara.arquillian</groupId>
526+
<artifactId>arquillian-payara-micro-5-managed</artifactId>
527+
<version>1.0.Beta3-m2</version>
528+
<scope>test</scope>
529+
</dependency>
530+
</dependencies>
531+
532+
<build>
533+
<plugins>
534+
<!-- Download Payara Micro and copy to target directory -->
535+
<plugin>
536+
<groupId>org.apache.maven.plugins</groupId>
537+
<artifactId>maven-dependency-plugin</artifactId>
538+
<executions>
539+
<execution>
540+
<phase>process-test-classes</phase>
541+
<goals>
542+
<goal>copy</goal>
543+
</goals>
544+
<configuration>
545+
<artifactItems>
546+
<artifactItem>
547+
<groupId>fish.payara.extras</groupId>
548+
<artifactId>payara-micro</artifactId>
549+
<version>${payara.micro.version}</version>
550+
<overWrite>false</overWrite>
551+
<outputDirectory>${session.executionRootDirectory}/target/</outputDirectory>
552+
<destFileName>payara-micro-${payara.micro.version}.jar</destFileName>
553+
</artifactItem>
554+
</artifactItems>
555+
</configuration>
556+
</execution>
557+
</executions>
558+
</plugin>
559+
<!-- Configure Payara Micro Runtime -->
560+
<plugin>
561+
<artifactId>maven-surefire-plugin</artifactId>
562+
<configuration>
563+
<environmentVariables>
564+
<MICRO_JAR>${session.executionRootDirectory}/target/payara-micro-${payara.micro.version}.jar</MICRO_JAR>
565+
</environmentVariables>
566+
</configuration>
567+
</plugin>
568+
</plugins>
569+
</build>
570+
</profile>
571+
572+
573+
508574

509575
<!-- ### GLASSFISH ### -->
510576

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /