DELTASPIKE-1181 Added a reference embedded profile as well. Minor fix on the managed profile
diff --git a/deltaspike/parent/code/pom.xml b/deltaspike/parent/code/pom.xml
index 38f82cd..2df386c 100644
--- a/deltaspike/parent/code/pom.xml
+++ b/deltaspike/parent/code/pom.xml
@@ -1732,7 +1732,65 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>payara-embedded-4</id>
+ <properties>
+ <cdicontainer.version>payara-${payara.version}</cdicontainer.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>javax.enterprise</groupId>
+ <artifactId>cdi-api</artifactId>
+ <version>1.2</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.inject</groupId>
+ <artifactId>javax.inject</artifactId>
+ <version>1</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>fish.payara.extras</groupId>
+ <artifactId>payara-embedded-all</artifactId>
+ <version>${payara.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.arquillian.container</groupId>
+ <artifactId>arquillian-glassfish-embedded-3.1</artifactId>
+ <version>1.0.0.CR4</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <systemProperties>
+ <arquillian.launch>glassfish-build-managed-4</arquillian.launch>
+ <org.apache.deltaspike.ProjectStage>UnitTest</org.apache.deltaspike.ProjectStage>
+ <cdicontainer.version>${cdicontainer.version}</cdicontainer.version>
+ </systemProperties>
+ <!-- we just use groups to mark that a test should be executed only
+ with specific environments. even though a java-ee6 application server has to be able to run
+ all tests in theory, we have to exclude some tests because there are e.g. packaging issues or
+ there are currently issues with arquillian. if a test isn't restricted to an environment,
+ no category is used for the test-class. -->
+ <excludedGroups>
+ org.apache.deltaspike.test.category.SeCategory
+ </excludedGroups>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile>
<!--
* Payara will be downloaded as maven dependency
@@ -1805,7 +1863,7 @@
<configuration>
<artifactItems>
<artifactItem>
- <groupId>fish.payara.blue.distributions</groupId>
+ <groupId>fish.payara.distributions</groupId>
<artifactId>payara</artifactId>
<version>${payara.version}</version>
<outputDirectory>${container.unpack.directory}</outputDirectory>