Wednesday, 22 October 2008

tomcat 6 + facelets + maven

After creating a project with archetype softeu-archetype-jsf to make the webapp works with tomcat 6 do the following:

In your pom add in the add the following dependencies and repository:

  1.  <dependency>  
  2.   <groupid>javax.el</groupid>  
  3.   <artifactid>el-api</artifactid>  
  4.   <version>1.2</version>  
  5.   <scope>compile</scope>  
  6. </dependency>  
  7. <dependency>  
  8.   <groupid>com.sun.el</groupid>  
  9.   <artifactid>el-ri</artifactid>  
  10.   <version>1.0</version>  
  11.   <scope>compile</scope>  
  12. </dependency>  
  13.   
  14.    <repository>  
  15.       <url>http://download.java.net/maven/2/</url>  
  16.       <id>maven2-repository.dev.java.net</id>  
  17.       <name>Java.net Repository for Maven 2</name>  
  18.    </repository>  

0 comments: