Since eclipse developers can easily create an eclipse project from maven (with the command <kbd>maven eclipse</kbd>, and the MyFaces maven pom seems a little out of date, please accept the below patch.

It is a minimal pom, on the head of the project d.d. 30 may 2005, 23:40h. With this pom and project.properties, the project at least compiles under eclipse (which is at least handy for your users, to debug their code).



Index: project.properties
===================================================================
--- project.properties (revision -2)
+++ project.properties (working copy)
@@ -1,0 +1,2 @@
+maven.eclipse.classpath.include=src/share,src/myfaces,src/components,src/codegen,src/xdoclet,src/cactus,webapps/src/blank,webapps/src/example,webapps/src/tiles,webapps/src/wap
+#MUDO src/wml doesn't compile: missing entire package org.apache.myfaces.wap.component


Index: project.xml
===================================================================
--- project.xml (revision 179052)
+++ project.xml (working copy)
@@ -16,29 +16,143 @@
-->
<project>

- <pomVersion>3</pomVersion>
+ <pomVersion>4</pomVersion>
+ <groupId>myfaces</groupId>
+ <name>Apache MyFaces</name>
+ <artifactId>myfaces</artifactId>
+ <package>org.apache.myfaces</package>
+ <currentVersion>1.0.9</currentVersion>
+ <organization>
+ <name>Apache</name>
+ <url>http://www.apache.org/</url>
+ </organization>
+ <build>
+ <sourceDirectory>src/jsfapi</sourceDirectory>
+ <!-- Other source directories form a problem; see maven.eclipse.classpath.include
+ in project.properties. To solve this, MyFaces needs to be split in separate
+ projects. This would also make sense for the JUnit tests -->
+ <unitTestSourceDirectory>src/junit</unitTestSourceDirectory>
+ </build>
+ <dependencies>
+
+ <!-- src/jsfapi -->
+ <dependency>
+ <groupId>servletapi</groupId>
+ <artifactId>servletapi</artifactId>
+ <version>2.3</version>
+ </dependency>
+ <dependency>
+ <groupId>jspapi</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.0-20040521</version>
+ </dependency>
+ <dependency>
+ <groupId>jstl</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.0.2</version>
+ <url>http://jakarta.apache.org/taglibs/doc/standard-1.0-doc/</url>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+
+ <!-- src/share -->
+ <dependency>
+ <groupId>commons-el</groupId>
+ <artifactId>commons-el</artifactId>
+ <version>1.0</version>
+ </dependency>
+
+ <!-- src/myfaces -->
+ <dependency>
+ <groupId>portlet-api</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-beanutils</groupId>
+ <artifactId>commons-beanutils</artifactId>
+ <version>1.7.0</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-digester</groupId>
+ <artifactId>commons-digester</artifactId>
+ <version>1.5</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.3</version>
+ </dependency>

- <name>Apache MyFaces</name>
- <id>myfaces</id>
- <groupId>myfaces</groupId>
- <package>org.apache.myfaces</package>
- <currentVersion>1.0.8-beta</currentVersion>
+ <!-- src/junit -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <properties>
+ <eclipse.dependency>false</eclipse.dependency>
+ </properties>
+ </dependency>
+
+ <!-- src/components -->
+ <dependency>
+ <groupId>struts</groupId>
+ <artifactId>struts</artifactId>
+ <version>1.2.4</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-validator</groupId>
+ <artifactId>commons-validator</artifactId>
+ <version>1.1.4</version> <!-- misses some functionality; use repo head -->
+ <properties>
+ <eclipse.dependency>true</eclipse.dependency>
+ </properties>
+ </dependency>

+ <!-- src/codegen -->
+ <dependency>
+ <groupId>velocity</groupId>
+ <artifactId>velocity</artifactId>
+ <version>1.4</version>
+ </dependency>
+ <dependency>
+ <groupId>ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>1.6.4</version>
+ </dependency>
+
+ <!-- src/xdoclet -->
+ <dependency>
+ <groupId>xdoclet</groupId>
+ <artifactId>xdoclet</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>xjavadoc</groupId>
+ <artifactId>xjavadoc</artifactId>
+ <version>1.0.3</version>
+ </dependency>
+
+ <!-- src/cactus -->
+ <dependency>
+ <groupId>cactus</groupId>
+ <artifactId>cactus</artifactId>
+ <version>13-1.7</version>
+ </dependency>
+ <dependency>
+ <groupId>httpunit</groupId>
+ <artifactId>httpunit</artifactId>
+ <version>1.6</version>
+ </dependency>

- <dependencies>
- <dependency>
- <groupId>servletapi</groupId>
- <artifactId>servletapi</artifactId>
- <version>2.3</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>jstl</groupId>
- <artifactId>jstl</artifactId>
- <version>1.0.2</version>
- <type>jar</type>
- <url>http://jakarta.apache.org/taglibs/doc/standard-1.0-doc/</url>
- </dependency>
</dependencies>

</project>
\ No newline at end of file

<x-tad-smaller>**********
<<Attachment: Extremely Witty Signature.doc>>
</x-tad-smaller>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

  • maven pom ir . ing . Jan Dockx

Reply via email to