You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ba...@apache.org on 2006/06/10 21:01:25 UTC

svn commit: r413353 - /myfaces/tomahawk/trunk/examples/pom.xml

Author: baranda
Date: Sat Jun 10 12:01:24 2006
New Revision: 413353

URL: http://svn.apache.org/viewvc?rev=413353&view=rev
Log:
Using the profile "jsfri" now it is possible to build the examples using the RI. Based on the pom.xml file from the shale project. Thanks! ;)

Modified:
    myfaces/tomahawk/trunk/examples/pom.xml

Modified: myfaces/tomahawk/trunk/examples/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/pom.xml?rev=413353&r1=413352&r2=413353&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/examples/pom.xml (original)
+++ myfaces/tomahawk/trunk/examples/pom.xml Sat Jun 10 12:01:24 2006
@@ -32,25 +32,64 @@
             <artifactId>tomahawk</artifactId>
             <version>${version}</version>
         </dependency> 
-        <dependency>
-            <groupId>org.apache.myfaces.core</groupId>
-            <artifactId>myfaces-api</artifactId>
-            <version>1.1.4-SNAPSHOT</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.myfaces.core</groupId>
-            <artifactId>myfaces-impl</artifactId>
-            <version>1.1.4-SNAPSHOT</version>
-            <!-- Tomahawk examples must only have runtime dependency to myfaces-impl
-            so that it will be automatically added to war. But there must not be
-            any compile dependency on impl so that is is always possible to use
-            other JSF implementations. -->
-            <scope>runtime</scope>
-        </dependency>    
-    </dependencies>   
+    </dependencies>
+
+    <profiles>
+        <!-- By default the war examples use myfaces! :) -->
+        <profile>
+            <id>myfaces</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.myfaces.core</groupId>
+                    <artifactId>myfaces-api</artifactId>
+                    <version>1.1.4-SNAPSHOT</version>
+                </dependency>
+                <dependency>
+                    <groupId>org.apache.myfaces.core</groupId>
+                    <artifactId>myfaces-impl</artifactId>
+                    <version>1.1.4-SNAPSHOT</version>
+                    <!-- Tomahawk examples must only have runtime dependency to myfaces-impl
+                 so that it will be automatically added to war. But there must not be
+                 any compile dependency on impl so that is is always possible to use
+                 other JSF implementations. -->
+                    <scope>runtime</scope>
+                </dependency>
+            </dependencies>
+        </profile>
+
+        <!-- To use the examples using the Sun's JSF Reference Implementation -->
+        <profile>
+            <id>jsfri</id>
+            <dependencies>
+                <dependency>
+                    <groupId>javax.faces</groupId>
+                    <artifactId>jsf-api</artifactId>
+                    <version>1.1_02</version>
+                </dependency>
+                <dependency>
+                    <groupId>javax.faces</groupId>
+                    <artifactId>jsf-impl</artifactId>
+                    <version>1.1_02</version>
+                    <scope>runtime</scope>
+                </dependency>
+            </dependencies>
+
+            <repositories>
+                <repository>
+                    <id>java.net</id>
+                    <name>java.net Maven 1 Repository</name>
+                    <url>https://maven-repository.dev.java.net/nonav/repository</url>
+                    <layout>legacy</layout>
+                </repository>
+            </repositories>
+        </profile>
+    </profiles>
 
-     
     <build>
+        <finalName>${artifactId}</finalName>
         <plugins>	
             <plugin>
                 <artifactId>maven-source-plugin</artifactId>