You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2011/08/04 00:41:30 UTC

[Myfaces Wiki] Update of "Using_MyFaces_in_a_Project_built_with_Maven" by LeonardoUribe

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The "Using_MyFaces_in_a_Project_built_with_Maven" page has been changed by LeonardoUribe:
http://wiki.apache.org/myfaces/Using_MyFaces_in_a_Project_built_with_Maven?action=diff&rev1=12&rev2=13

- !MyFaces can easily be add to a project built with Maven.  The instruction below should work with version !MyFaces 1.1.2+ and Maven 2.0.4+ [[http://maven.apache.org/download.html]].  
+ See the updated page here:
  
+ https://cwiki.apache.org/confluence/display/MYFACES/Using+MyFaces+in+a+project+built+with+Maven
- === Addition to your project's pom.xml ===
-  * Add !MyFaces as a dependency.  The example below add !MyFaces v1.1.4, myfaces-api and myfaces-impl, and Tomahawk v1.1.4.  All dependencies required by !MyFaces and Tomahawk are automatically included.
- {{{
-   <dependencies>
-     <dependency>
-       <groupId>org.apache.myfaces.core</groupId>
-       <artifactId>myfaces-api</artifactId>
-       <version>1.1.4</version>
-     </dependency>
-     <dependency>
-       <groupId>org.apache.myfaces.core</groupId>
-       <artifactId>myfaces-impl</artifactId>
-       <version>1.1.4</version>
-     </dependency>
-     <dependency>
-       <groupId>org.apache.myfaces.tomahawk</groupId>
-       <artifactId>tomahawk</artifactId>
-       <version>1.1.4</version>
-     </dependency>
-   </dependencies>
- }}}
  
- ===  Using SNAPSHOT versions ===
- 
- If you want to use SNAPSHOT versions of !MyFaces code, ie the bleeding edge that is not yet an official release, then add the following repository to your project's pom or your settings.xml file.
- 
- {{{
-     <repository>
-          <releases>
-            <enabled>false</enabled>
-          </releases>
-          <snapshots>
-            <enabled>true</enabled>
-          </snapshots>
-          <id>apache.snapshots</id>
-          <name>Apache Snapshot Repository</name>
-          <url>http://people.apache.org/repo/m2-snapshot-repository</url>
-     </repository>
- }}}
- 
- === Some useful Maven commands ===
-  * {{{mvn -Declipse.downloadSources=true eclipse:eclipse}}} will setup the eclipse project files and download the source the dependencies.
-  * {{{mvn war:inplace}}} will copy dependencies into WEB-INF/lib and copy resources into WEB-INF/classes
- 
- For more information on Maven see http://maven.apache.org
-