Since I don't know much about maven and how it works, I;m not sure if this
is something I can handle from my side.

I create a new tapestry project\module using this command:

> mvn archetype:generate 
> -DarchetypeCatalog=http://tapestry.apache.org-DgroupId=com.mypackage 
> -DartifactId=Project-Directory
> -DarchetypeVersion=5.3.5 -Dversion=1.0


Then I convert the project to an eclipse project using this command:

> mvn eclipse:eclipse


But then I face this warning which indicates that I have to manually
reconfigure the project settings from using java5 to java6 !

> [WARNING] Workspace defines a VM that does not contain a valid
> jre/lib/rt.jar: C:\Java\jre6
> [INFO] Adding default classpath container:
> org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5


First I had one issue which was that eclipse is pointing to java's jre
instead of the jdk, and then I had to edit the pom to force maven to create
the .classpath file in way that it points to java6:

> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
>  <source>1.6</source>

 <target>1.6</target>
> </configuration>
> </plugin>


Would someone please add that to the archtype's pom ?

Reply via email to