You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2007/12/07 10:02:00 UTC

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

Author: skitching
Date: Fri Dec  7 01:01:59 2007
New Revision: 602035

URL: http://svn.apache.org/viewvc?rev=602035&view=rev
Log:
Add docs
Move jetty def out of a profile into the main defs; easier to use.
Move some deps to runtime.
Update Cargo plugin version

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=602035&r1=602034&r2=602035&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/examples/pom.xml (original)
+++ myfaces/tomahawk/trunk/examples/pom.xml Fri Dec  7 01:01:59 2007
@@ -1,3 +1,23 @@
+<!--
+  - Common definitions for all the tomahawk example projects.
+  -
+  - This pom itself can be used to build all the examples, but to run an example it is necessary to use the
+  - pom within the specific example subproject. The code can be built against different JSF implementations.
+  -   mvn clean install              # builds against MyFaces 1.1.x
+  -   mvn -Djsf=12 clean install     # builds against MyFaces 1.2.x
+  -   mvn -Djsf=ri12 clean install   # builds against Sun Reference Implementation 1.2.x
+  -
+  - The example code is build against the current snapshot of Tomahawk by default. Option "-Dtomahawk=x.y.y" can
+  - be used to build against a specific version of Tomahawk.
+  -
+  - To run any example, cd into that dir and execute:
+  -    mvn jetty:run                 # runs against MyFaces 1.1.x
+  -    mvn -Djsf=12 jetty:run        # runs against MyFaces 1.2.x
+  -    mvn -Djsf=ri12 jetty:run      # runs against Sun Reference Implementation 1.2.x
+  -
+  - It should also be possible to run the samples in containers other than jetty via the cargo plugin:
+  -   mvn cargo:start
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     <modelVersion>4.0.0</modelVersion>
@@ -42,6 +62,7 @@
                 </dependency>
             </dependencies>
         </profile>
+
         <!-- Use the specified version of tomahawk -->
         <profile>
             <id>tomahawk-specified</id>
@@ -74,17 +95,12 @@
                     <groupId>org.apache.myfaces.core</groupId>
                     <artifactId>myfaces-api</artifactId>
                     <version>1.2.0</version>
-                    <scope>compile</scope>
                 </dependency>
                 <dependency>
                     <groupId>org.apache.myfaces.core</groupId>
                     <artifactId>myfaces-impl</artifactId>
                     <version>1.2.0</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>compile</scope>
+                    <scope>runtime</scope>
                 </dependency>
                 <dependency>
                     <groupId>jstl</groupId>
@@ -129,6 +145,7 @@
                     <groupId>javax.faces</groupId>
                     <artifactId>jsf-impl</artifactId>
                     <version>1.2_04</version>
+                    <scope>runtime</scope>
                 </dependency>
                 <dependency>
                     <groupId>org.apache.geronimo.specs</groupId>
@@ -152,23 +169,6 @@
             </properties>
         </profile>
 
-        <!-- Profile to run jetty, so the tomcat jars are included in the bundle. They are not included by default -->
-        <profile>
-            <id>jettyConfig</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.mortbay.jetty</groupId>
-                        <artifactId>maven-jetty-plugin</artifactId>
-                        <version>6.1.2rc0</version>
-                        <configuration>
-                            <scanIntervalSeconds>10</scanIntervalSeconds>
-                        </configuration>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-
         <!-- See http://myfaces.apache.org/tomahawk/testing/selenium.html -->
         <profile>
             <id>selenium</id>
@@ -334,7 +334,7 @@
             <plugin>
                 <groupId>org.codehaus.cargo</groupId>
                 <artifactId>cargo-maven2-plugin</artifactId>
-                <version>0.2</version>
+                <version>0.3.1</version>
                 <configuration>
                     <container>
                         <containerId>tomcat5x</containerId>
@@ -350,6 +350,16 @@
                     </configuration>
                 </configuration>
             </plugin>
+
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>maven-jetty-plugin</artifactId>
+                <version>6.1.2rc0</version>
+                <configuration>
+                    <scanIntervalSeconds>10</scanIntervalSeconds>
+                </configuration>
+            </plugin>
+
         </plugins>
     </build>