Loading the Project Into Eclipse

The first step is to ask Maven to generate the Eclipse control files (.classpath and .project) for us:

$ mvn eclipse:eclipse -DdownloadSources=true
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.pom (7 KB at 7.1 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.jar (76 KB at 83.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/maven-metadata.xml
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/maven-metadata.xml (680 B at 1.9 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.pom (12 KB at 22.9 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/17/maven-plugins-17.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/17/maven-plugins-17.pom (13 KB at 25.6 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.jar (202 KB at 237.8 KB/sec)
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building tutorial1 Tapestry 5 Application 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-eclipse-plugin:2.8:eclipse (default-cli) @ tutorial1 >>>
[INFO] 
[INFO] <<< maven-eclipse-plugin:2.8:eclipse (default-cli) @ tutorial1 <<<
[INFO] 
[INFO] --- maven-eclipse-plugin:2.8:eclipse (default-cli) @ tutorial1 ---
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.pom
Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.pom (2 KB at 2.3 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom
Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom (2 KB at 3.7 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.pom
Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.pom (767 B at 1.5 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.5/plexus-1.0.5.pom
Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.5/plexus-1.0.5.pom (6 KB at 11.6 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.6/plexus-utils-1.4.6.pom
Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.6/plexus-utils-1.4.6.pom (3 KB at 4.8 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactivity-jline/1.0-alpha-5/plexus-interactivity-jline-1.0-alpha-5.pom
Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactivity-jline/1.0-alpha-5/plexus-interactivity-jline-1.0-alpha-5.pom (772 B at 1.9 KB/sec)
Downloading: http://repo1.maven.org/maven2/jline/jline/0.9.1/jline-0.9.1.pom
Downloaded: http://repo1.maven.org/maven2/jline/jline/0.9.1/jline-0.9.1.pom (145 B at 0.3 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.pom (2 KB at 2.5 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-components/3/maven-shared-components-3.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-components/3/maven-shared-components-3.pom (2 KB at 4.1 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/4/maven-parent-4.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/4/maven-parent-4.pom (10 KB at 19.7 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom (0 B at 0.0 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-resources/1.0-alpha-7/plexus-resources-1.0-alpha-7.pom
Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-resources/1.0-alpha-7/plexus-resources-1.0-alpha-7.pom (2 KB at 2.8 KB/sec)
Downloading: http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.145/bndlib-0.0.145.pom
Downloaded: http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.145/bndlib-0.0.145.pom (886 B at 1.8 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-osgi/0.2.0/maven-osgi-0.2.0.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-osgi/0.2.0/maven-osgi-0.2.0.pom (2 KB at 4.0 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-components/8/maven-shared-components-8.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-components/8/maven-shared-components-8.pom (3 KB at 5.3 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/7/maven-parent-7.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/7/maven-parent-7.pom (21 KB at 41.9 KB/sec)
Downloading: http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.203/bndlib-0.0.203.pom
Downloaded: http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.203/bndlib-0.0.203.pom (886 B at 1.9 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.pom
Downloaded: http://repo1.maven.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.pom (2 KB at 2.3 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactivity-jline/1.0-alpha-5/plexus-interactivity-jline-1.0-alpha-5.jar
Downloading: http://repo1.maven.org/maven2/jline/jline/0.9.1/jline-0.9.1.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-resources/1.0-alpha-7/plexus-resources-1.0-alpha-7.jar
Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar (139 KB at 94.5 KB/sec)
Downloading: http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.145/bndlib-0.0.145.jar
Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactivity-jline/1.0-alpha-5/plexus-interactivity-jline-1.0-alpha-5.jar (6 KB at 3.0 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-osgi/0.2.0/maven-osgi-0.2.0.jar
Downloaded: http://repo1.maven.org/maven2/jline/jline/0.9.1/jline-0.9.1.jar (46 KB at 23.0 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.jar
Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-resources/1.0-alpha-7/plexus-resources-1.0-alpha-7.jar (23 KB at 10.3 KB/sec)
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar (10 KB at 4.0 KB/sec)
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-osgi/0.2.0/maven-osgi-0.2.0.jar (13 KB at 7.0 KB/sec)
Downloaded: http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.145/bndlib-0.0.145.jar (112 KB at 49.6 KB/sec)
Downloaded: http://repo1.maven.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.jar (663 KB at 258.9 KB/sec)
[INFO] Using Eclipse Workspace: /Users/hlship/Documents/workspace
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-core/5.3/tapestry-core-5.3-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-core/5.3/tapestry-core-5.3-sources.jar (2403 KB at 558.9 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/antlr/antlr/2.7.7/antlr-2.7.7-sources.jar
Downloading: http://repo1.maven.org/maven2/antlr/antlr/2.7.7/antlr-2.7.7-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-json/5.3/tapestry-json-5.3-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-json/5.3/tapestry-json-5.3-sources.jar (24 KB at 63.5 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-ioc/5.3/tapestry-ioc-5.3-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-ioc/5.3/tapestry-ioc-5.3-sources.jar (414 KB at 494.3 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-func/5.3/tapestry-func-5.3-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-func/5.3/tapestry-func-5.3-sources.jar (36 KB at 246.0 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry5-annotations/5.3/tapestry5-annotations-5.3-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry5-annotations/5.3/tapestry5-annotations-5.3-sources.jar (20 KB at 157.9 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tapestry/plastic/5.3/plastic-5.3-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/tapestry/plastic/5.3/plastic-5.3-sources.jar (720 KB at 633.5 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-javadoc/5.3/tapestry-javadoc-5.3-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-javadoc/5.3/tapestry-javadoc-5.3-sources.jar (10 KB at 33.8 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-test/5.3/tapestry-test-5.3-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-test/5.3/tapestry-test-5.3-sources.jar (454 KB at 698.4 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/bouncycastle/bcprov-jdk15/135/bcprov-jdk15-135-sources.jar
Downloading: http://repo1.maven.org/maven2/bouncycastle/bcprov-jdk15/135/bcprov-jdk15-135-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2-sources.jar (382 KB at 418.3 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1-sources.jar (286 KB at 542.9 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/xalan/serializer/2.7.1/serializer-2.7.1-sources.jar
Downloading: http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/org/apache/httpcomponents/httpmime/4.0.1/httpmime-4.0.1-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/httpcomponents/httpmime/4.0.1/httpmime-4.0.1-sources.jar (24 KB at 56.9 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/apache/james/apache-mime4j/0.6/apache-mime4j-0.6-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/james/apache-mime4j/0.6/apache-mime4j-0.6-sources.jar (314 KB at 574.1 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1-sources.jar
Downloading: http://repo1.maven.org/maven2/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1-sources.jar (22 KB at 66.0 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/eclipse/jetty/jetty-webapp/7.0.0.v20091005/jetty-webapp-7.0.0.v20091005-sources.jar
Downloading: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-webapp/7.0.0.v20091005/jetty-webapp-7.0.0.v20091005-sources.jar
Downloaded: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-webapp/7.0.0.v20091005/jetty-webapp-7.0.0.v20091005-sources.jar (40 KB at 63.9 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/eclipse/jetty/jetty-xml/7.0.0.v20091005/jetty-xml-7.0.0.v20091005-sources.jar
Downloading: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-xml/7.0.0.v20091005/jetty-xml-7.0.0.v20091005-sources.jar
Downloaded: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-xml/7.0.0.v20091005/jetty-xml-7.0.0.v20091005-sources.jar (16 KB at 44.6 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/eclipse/jetty/jetty-util/7.0.0.v20091005/jetty-util-7.0.0.v20091005-sources.jar
Downloading: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-util/7.0.0.v20091005/jetty-util-7.0.0.v20091005-sources.jar
Downloaded: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-util/7.0.0.v20091005/jetty-util-7.0.0.v20091005-sources.jar (117 KB at 228.4 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/eclipse/jetty/jetty-servlet/7.0.0.v20091005/jetty-servlet-7.0.0.v20091005-sources.jar
Downloading: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-servlet/7.0.0.v20091005/jetty-servlet-7.0.0.v20091005-sources.jar
Downloaded: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-servlet/7.0.0.v20091005/jetty-servlet-7.0.0.v20091005-sources.jar (40 KB at 110.2 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/eclipse/jetty/jetty-security/7.0.0.v20091005/jetty-security-7.0.0.v20091005-sources.jar
Downloading: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-security/7.0.0.v20091005/jetty-security-7.0.0.v20091005-sources.jar
Downloaded: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-security/7.0.0.v20091005/jetty-security-7.0.0.v20091005-sources.jar (45 KB at 128.6 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/eclipse/jetty/jetty-server/7.0.0.v20091005/jetty-server-7.0.0.v20091005-sources.jar
Downloading: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-server/7.0.0.v20091005/jetty-server-7.0.0.v20091005-sources.jar
Downloaded: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-server/7.0.0.v20091005/jetty-server-7.0.0.v20091005-sources.jar (163 KB at 296.6 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/eclipse/jetty/jetty-continuation/7.0.0.v20091005/jetty-continuation-7.0.0.v20091005-sources.jar
Downloading: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-continuation/7.0.0.v20091005/jetty-continuation-7.0.0.v20091005-sources.jar
Downloaded: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-continuation/7.0.0.v20091005/jetty-continuation-7.0.0.v20091005-sources.jar (16 KB at 42.0 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/eclipse/jetty/jetty-http/7.0.0.v20091005/jetty-http-7.0.0.v20091005-sources.jar
Downloading: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-http/7.0.0.v20091005/jetty-http-7.0.0.v20091005-sources.jar
Downloaded: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-http/7.0.0.v20091005/jetty-http-7.0.0.v20091005-sources.jar (75 KB at 215.9 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/org/eclipse/jetty/jetty-io/7.0.0.v20091005/jetty-io-7.0.0.v20091005-sources.jar
Downloading: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-io/7.0.0.v20091005/jetty-io-7.0.0.v20091005-sources.jar
Downloaded: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-io/7.0.0.v20091005/jetty-io-7.0.0.v20091005-sources.jar (48 KB at 135.9 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/jetty/org.mortbay.jetty/5.1.12/org.mortbay.jetty-5.1.12-sources.jar
Downloading: http://repo1.maven.org/maven2/jetty/org.mortbay.jetty/5.1.12/org.mortbay.jetty-5.1.12-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tomcat/dbcp/6.0.30/dbcp-6.0.30-sources.jar
Downloading: http://repo1.maven.org/maven2/org/apache/tomcat/dbcp/6.0.30/dbcp-6.0.30-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tomcat/coyote/6.0.30/coyote-6.0.30-sources.jar
Downloading: http://repo1.maven.org/maven2/org/apache/tomcat/coyote/6.0.30/coyote-6.0.30-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tomcat/catalina/6.0.30/catalina-6.0.30-sources.jar
Downloading: http://repo1.maven.org/maven2/org/apache/tomcat/catalina/6.0.30/catalina-6.0.30-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tomcat/servlet-api/6.0.30/servlet-api-6.0.30-sources.jar
Downloading: http://repo1.maven.org/maven2/org/apache/tomcat/servlet-api/6.0.30/servlet-api-6.0.30-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tomcat/juli/6.0.30/juli-6.0.30-sources.jar
Downloading: http://repo1.maven.org/maven2/org/apache/tomcat/juli/6.0.30/juli-6.0.30-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tomcat/annotations-api/6.0.30/annotations-api-6.0.30-sources.jar
Downloading: http://repo1.maven.org/maven2/org/apache/tomcat/annotations-api/6.0.30/annotations-api-6.0.30-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/org/beanshell/bsh/2.0b4/bsh-2.0b4-sources.jar
Downloading: http://repo1.maven.org/maven2/org/beanshell/bsh/2.0b4/bsh-2.0b4-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/com/google/inject/guice/2.0/guice-2.0-sources.jar
Downloading: http://repo1.maven.org/maven2/com/google/inject/guice/2.0/guice-2.0-sources.jar
Downloading: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-yuicompressor/5.3/tapestry-yuicompressor-5.3-sources.jar
Downloaded: https://repository.apache.org/content/groups/staging/org/apache/tapestry/tapestry-yuicompressor/5.3/tapestry-yuicompressor-5.3-sources.jar (7 KB at 25.8 KB/sec)
Downloading: https://repository.apache.org/content/groups/staging/rhino/js/1.6R7/js-1.6R7-sources.jar
Downloading: http://repo1.maven.org/maven2/rhino/js/1.6R7/js-1.6R7-sources.jar
[INFO] Wrote settings to /Users/hlship/Documents/workspace/tutorial1/.settings/org.eclipse.jdt.core.prefs
[INFO] Wrote Eclipse project for "tutorial1" to /Users/hlship/Documents/workspace/tutorial1.
[INFO] 
       Sources for some artifacts are not available.
       List of artifacts without a source archive:
         o antlr:antlr:2.7.7
         o bouncycastle:bcprov-jdk15:135
         o xalan:serializer:2.7.1
         o xerces:xercesImpl:2.9.1
         o jetty:org.mortbay.jetty:5.1.12
         o org.apache.tomcat:dbcp:6.0.30
         o org.apache.tomcat:coyote:6.0.30
         o org.apache.tomcat:catalina:6.0.30
         o org.apache.tomcat:servlet-api:6.0.30
         o org.apache.tomcat:juli:6.0.30
         o org.apache.tomcat:annotations-api:6.0.30
         o org.beanshell:bsh:2.0b4
         o com.google.inject:guice:2.0
         o rhino:js:1.6R7

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39.526s
[INFO] Finished at: Fri Mar 1 11:52:57 PST 2013
[INFO] Final Memory: 9M/81M
[INFO] ------------------------------------------------------------------------
~/Documents/workspace/tutorial1

At this point, Maven has created the Eclipse .project and .classpath files, and we can import the project. In addition, since we specified -DdownloadSources=true, Maven has also downloaded the sources of each library and linked to the source JAR (where available); that means we can see the sources for any Tapestry classes right inside Eclipse, which is very useful when debugging or exploring.

At this point, we are ready to import the project created by Maven into Eclipse so we can start working with it. Launch Eclipse and switch over to the Java Perspective.

Right click inside the Package Explorer view and select Import ...

Choose the "existing projects" option:

Now select the folder created by Maven:

When you click the Finish button, the project will be imported into the Eclipse workspace.

However; there are many errors. Maven expects that you will configure a classpath variable, M2_REPO, that points at your local repository; a directory in your home directory that stores all those downloaded JARs and other files. Open Eclipse's preferences panel and navigate to Java > Build Path > Classpath Variables:

Click the New button, and enter the new variable (you'll have to adjust this for your operating system and local paths):

Eclipse will ask to perform a clean build, and the errors will be gone once it has done so.

Running the Application inside Eclipse

The task is to set up Jetty to run our application directly out of our Eclipse workspace. This is a great way to develop web applications, since we don't want to have to use Maven to compile and run the application ... or worse yet, use Maven to package and deploy the application. That's for later, when we want to put the application into production. For development, we want a fast, agile environment that can keep up with our changes, and that means we can't wait for redeploys and restarts.

Choose the Run ... item from the Eclipse Run menu to get the launch configuration dialog:

Select Jetty Webapp and click the New button, then fill in a few values:

You will need to click the "Show advanced Options" checkbox, then uncheck "SSL" and "Enable Scanner".

Tapestry runs best with a couple of additional options; click the "Arguments" tab and enter the following VM Arguments: -XX:MaxPermSize=256M -Xmx600m -Dtapestry.execution-mode=development

Tapestry uses more PermGen space (the part of Java memory used for loading classes) than a typical application, and uses more heap memory than the default; the above settings are good for a medium-to-large size Tapestry application, and will keep Java from running the Garbage Collector too often. The setting of tapestry.execution mode tells Tapestry to run in development mode, where runtime exceptions are reported more exhaustively.

With those settings in place, you can then click Run and Jetty will launch (it takes only a few seconds):

Once you click Run, Jetty will start up and launch (it should take a second or two).

You may now start the application with the URL http://localhost:8080/tutorial1/