You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by ta...@apache.org on 2015/07/06 23:52:47 UTC

deltaspike git commit: DELTASPIKE-932 added container profiles for better testing with maven

Repository: deltaspike
Updated Branches:
  refs/heads/master 07f0bdd7b -> 203a0dac4


DELTASPIKE-932 added container profiles for better testing with maven

Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/203a0dac
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/203a0dac
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/203a0dac

Branch: refs/heads/master
Commit: 203a0dac4b99ec8aff0063383219297d609d0ba8
Parents: 07f0bdd
Author: Thomas Andraschko <ta...@apache.org>
Authored: Mon Jul 6 23:52:23 2015 +0200
Committer: Thomas Andraschko <ta...@apache.org>
Committed: Mon Jul 6 23:52:23 2015 +0200

----------------------------------------------------------------------
 deltaspike/examples/jsf-playground/pom.xml | 207 +++++++++++++++++-------
 1 file changed, 148 insertions(+), 59 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/203a0dac/deltaspike/examples/jsf-playground/pom.xml
----------------------------------------------------------------------
diff --git a/deltaspike/examples/jsf-playground/pom.xml b/deltaspike/examples/jsf-playground/pom.xml
index 58e1e21..2eef070 100644
--- a/deltaspike/examples/jsf-playground/pom.xml
+++ b/deltaspike/examples/jsf-playground/pom.xml
@@ -11,13 +11,13 @@
 
     http://www.apache.org/licenses/LICENSE-2.0
 
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
--->
+        Unless required by applicable law or agreed to in writing,
+        software distributed under the License is distributed on an
+        "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+        KIND, either express or implied.  See the License for the
+        specific language governing permissions and limitations
+        under the License.
+    -->
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
@@ -36,86 +36,175 @@
         <deploy.skip>true</deploy.skip>
     </properties>
 
-    <profiles>
-        <profile>
-            <!--
-             * Run it with: mvn clean package tomee:run -PtomeeConfig
-             *
-             * For debugging add: -Dopenejb.server.debug=true
-             *
-             * The application can be browsed under http://localhost:8080/ds
-             -->
-            <id>tomeeConfig</id>
-            <build>
-                <defaultGoal>install</defaultGoal>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-compiler-plugin</artifactId>
-                        <version>3.0</version>
-                        <configuration>
-                            <source>1.6</source>
-                            <target>1.6</target>
-                        </configuration>
-                    </plugin>
-                    <plugin>
-                        <groupId>org.apache.openejb.maven</groupId>
-                        <artifactId>tomee-maven-plugin</artifactId>
-                        <version>1.0.1</version>
-                        <configuration>
-                            <tomeeVersion>${tomee.version}</tomeeVersion>
-                        </configuration>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-
-    </profiles>
-
     <dependencies>
-
-        <dependency>
-            <groupId>org.apache.myfaces.core</groupId>
-            <artifactId>myfaces-api</artifactId>
-            <version>${myfaces2.version}</version>
-            <scope>provided</scope>
-        </dependency>
-
         <!-- DeltaSpike modules -->
         <dependency>
             <groupId>org.apache.deltaspike.core</groupId>
             <artifactId>deltaspike-core-api</artifactId>
             <scope>compile</scope>
+            <version>${project.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.deltaspike.core</groupId>
             <artifactId>deltaspike-core-impl</artifactId>
             <scope>compile</scope>
-            <!-- compile since we extends DefaultMessageResolver -->
+            <version>${project.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.deltaspike.modules</groupId>
             <artifactId>deltaspike-jsf-module-api</artifactId>
             <scope>compile</scope>
+            <version>${project.version}</version>
         </dependency>
 
         <dependency>
-            <groupId>org.apache.deltaspike.modules</groupId>
-            <artifactId>deltaspike-jsf-module-impl</artifactId>
-            <scope>runtime</scope>
+            <groupId>javax</groupId>
+            <artifactId>javaee-api</artifactId>
+            <version>7.0</version>
+            <scope>provided</scope>
         </dependency>
-
     </dependencies>
 
+    <profiles>
+        <profile>
+            <id>run-tomee-1.7.2</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.openejb.maven</groupId>
+                        <artifactId>tomee-maven-plugin</artifactId>
+                        <version>1.0.1</version>
+                        <configuration>
+                            <tomeeVersion>1.7.2</tomeeVersion>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.deltaspike.modules</groupId>
+                    <artifactId>deltaspike-jsf-module-impl-ee6</artifactId>
+                    <scope>compile</scope>
+                    <version>${project.version}</version>
+                </dependency>
+            </dependencies>
+        </profile>
+        <profile>
+            <id>run-wildfly-8.0.0</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.wildfly.plugins</groupId>
+                        <artifactId>wildfly-maven-plugin</artifactId>
+                        <version>1.0.1.Final</version>
+                        <configuration>
+                            <version>8.0.0.Final</version>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.deltaspike.modules</groupId>
+                    <artifactId>deltaspike-jsf-module-impl</artifactId>
+                    <scope>compile</scope>
+                    <version>${project.version}</version>
+                </dependency>
+            </dependencies>
+        </profile>
+        <profile>
+            <id>run-jboss-7.1.1</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.jboss.as.plugins</groupId>
+                        <artifactId>jboss-as-maven-plugin</artifactId>
+                        <version>7.7.Final</version>
+                        <configuration>
+                            <version>7.1.1.Final</version>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.deltaspike.modules</groupId>
+                    <artifactId>deltaspike-jsf-module-impl-ee6</artifactId>
+                    <scope>compile</scope>
+                    <version>${project.version}</version>
+                </dependency>
+            </dependencies>
+        </profile>
+        <profile>
+            <id>run-glassfish-3.1.2.2</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.glassfish.embedded</groupId>
+                        <artifactId>maven-embedded-glassfish-plugin</artifactId>
+                        <version>3.1.2.2</version>
+                        <configuration>
+                            <port>8080</port>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.deltaspike.modules</groupId>
+                    <artifactId>deltaspike-jsf-module-impl-ee6</artifactId>
+                    <scope>compile</scope>
+                    <version>${project.version}</version>
+                </dependency>
+            </dependencies>
+        </profile>
+    </profiles>
+
     <build>
         <finalName>ds</finalName>
         <plugins>
             <plugin>
-                <groupId>org.wildfly.plugins</groupId>
-                <artifactId>wildfly-maven-plugin</artifactId>
-                <version>1.0.1.Final</version>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>3.0</version>
+                <configuration>
+                    <source>1.6</source>
+                    <target>1.6</target>
+                </configuration>
             </plugin>
         </plugins>
     </build>