Skip to content

Commit e4ae253

Browse files
committed
Added Micro container.
1 parent ff23226 commit e4ae253

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

pom.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,57 @@
419419
</build>
420420
</profile>
421421

422+
<profile>
423+
<id>payara-micro-managed</id>
424+
<dependencies>
425+
<!-- The Arquillian connector -->
426+
<dependency>
427+
<groupId>fish.payara.arquillian</groupId>
428+
<artifactId>arquillian-payara-micro-4-managed</artifactId>
429+
<version>1.0.Beta2</version>
430+
<scope>test</scope>
431+
</dependency>
432+
</dependencies>
433+
<build>
434+
<plugins>
435+
<!-- Download Payara Micro and copy to target directory -->
436+
<plugin>
437+
<groupId>org.apache.maven.plugins</groupId>
438+
<artifactId>maven-dependency-plugin</artifactId>
439+
<executions>
440+
<execution>
441+
<phase>process-test-classes</phase>
442+
<goals>
443+
<goal>copy</goal>
444+
</goals>
445+
<configuration>
446+
<artifactItems>
447+
<artifactItem>
448+
<groupId>fish.payara.extras</groupId>
449+
<artifactId>payara-micro</artifactId>
450+
<version>${payara.version}</version>
451+
<overWrite>false</overWrite>
452+
<outputDirectory>${session.executionRootDirectory}/target/</outputDirectory>
453+
<destFileName>payara-micro-${payara.version}.jar</destFileName>
454+
</artifactItem>
455+
</artifactItems>
456+
</configuration>
457+
</execution>
458+
</executions>
459+
</plugin>
460+
<!-- Configure Payara Micro Runtime -->
461+
<plugin>
462+
<artifactId>maven-surefire-plugin</artifactId>
463+
<configuration>
464+
<environmentVariables>
465+
<MICRO_JAR>${session.executionRootDirectory}/target/payara-micro-${payara.version}.jar</MICRO_JAR>
466+
</environmentVariables>
467+
</configuration>
468+
</plugin>
469+
</plugins>
470+
</build>
471+
</profile>
472+
422473
<profile>
423474
<id>payara-embedded</id>
424475
<dependencies>

0 commit comments

Comments
 (0)