`
xieye
  • 浏览: 832617 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

tapestry入门(翻译)3 导入项目到eclipse

    博客分类:
  • java
 
阅读更多

原文:

http://tapestry.apache.org/loading-the-project-into-eclipse.html

 

 

首先让maven为我们创建eclipse的项目文件(.classpath and .project)

 

$ 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: Tue Nov 22 11:52:57 PST 2011
[INFO] Final Memory: 9M/81M
[INFO] ------------------------------------------------------------------------
~/Documents/workspace/tutorial1
 

 

在这里,maven已经创建了eclipse的.project and .classpath文件,我们可以导入项目了。此外,由于我们指定了 -DdownloadSources=true,maven也下载了库的源代码jar包(如果有的话),这意味着我们能在eclipse里看到tapestry库的各种源代码,在调试时这可是很有用的

在这里,我们已经准备好把maven创建的项目导入到eclipse里,启动eclipse,然后切换视图到Java Perspective(java透视图).

右击Package Explorer下的空白地方,然后选择“import...”。


选择 "existing projects" 这一项:

 


现在选择用Maven创建的文件夹:

 


 

当你点击finish按钮时,项目将导入到eclipse的工作空间。

 


无论如何,有一些错误。maven预期你将配置一个classpath变量,M2_REPO,指向你的本地仓库。在你的家目录(译注:xp上通常是C:\Documents and Settings\Administrator)下的某个目录存储了所有的下载的jar包和别的文件。打开eclispe->preferences->java->Build Path->Classpath Variable


点击 New 按钮, 输入 the new variable新变量 (你要调整到适应你自己的操作系统的路径):


 

现在eclipse将执行一个干净的构建,错误会消失。

 

 

eclipse中运行应用程序

 

我们的工作是启动jetty来运行应用程序,在eclipse的路径之外,这是一种很好的开发web程序的方式,因为这样我们就不必再使用maven来编译和运行应用程序了。更糟糕的是,如果使用maven打包和部署程序,那么当我们想把程序部署到生产环境中就太慢了。对于开发,我们需要一个快速敏捷的环境来适应变化,这意味着我们不能等待重新部署和重新启动服务器。

 

选择run...这一菜单,弹出启动配置对话框。


 

(译注:先安装jetty的eclipse插件,URL是http://run-jetty-run.googlecode.com/svn/trunk/updatesite)

右击jetty webapp,然后点击New按钮,再填充一些数值如下:

 



你需要点击“Show advanced Options”复选框,然后反选(译注:即取消)"SSL" 和"Enable Scanner".

tapestry会运行的很好,你需要点击"Arguments" 标签页,输入下列VM参数:
-XX:MaxPermSize=256M -Xmx600m -Dtapestry.execution-mode=development

 


 

相对一个典型的应用程序,tapestry使用更多的PermGen空间(java内存的一部分,用于加载类),并且使用更多的堆内存。
这样的设置能更好的适应大中型tapestry应用程序,保证java良好运行即使垃圾收集比较频繁,而刚才的设置VM参数确保了开发时比较好,而且异常报告也比较详细。

用这样的设置,你可以点击run然后jetty将启动(只需要几秒钟)。

一旦你点击run,jetty将启动(一两秒)(译注:如果有提示不能启动,则先点击选中左边的项目tutorial1)

 


 

打开浏览器,输入 http://localhost:8080/tutorial1/   看效果

 

上一篇:

http://xieye.iteye.com/blog/1663554

下一篇:

http://xieye.iteye.com/blog/1664101

 

  • 大小: 77.1 KB
  • 大小: 34.4 KB
  • 大小: 50.1 KB
  • 大小: 137.8 KB
  • 大小: 81.8 KB
  • 大小: 14.3 KB
  • 大小: 57 KB
  • 大小: 94.9 KB
  • 大小: 70.1 KB
  • 大小: 138.6 KB
分享到:
评论
3 楼 xieye 2012-08-27  
jetty插件有好几个版本,1.6,1.7,1.8
我选的是用1.6

2 楼 xieye 2012-08-27  
还有,
注:第2部分时,需要先安装jetty,我自己在安装过程中发现插件给了两个选项,我自己选的是1.3那个,就是下面那个。(我没试过上面那个,应该也可以)

安装jetty需要点耐心,时间长。
1 楼 xieye 2012-08-27  
说明一下:
实际使用中,导入时我并没有错误。

2、我把eclipse里的maven配置中的download repository index updates on startup这一项反选,免得无休止的更新。

相关推荐

    Tapestry 5.0.18 环境搭建(eclipse)

    然后,将下载的Tapestry库添加到项目的类路径中,确保所有必需的JAR文件都包含在WEB-INF/lib目录下。 接下来,我们需要配置`web.xml`文件。这是一个关键步骤,因为它定义了应用的启动和运行方式。在给定的`web.xml`...

    Tapestry入门

    01-Tapestry入门开源框架,初学者的首选

    Tapestry简单入门.rar_java Tapestry_tapestry

    在"Tapestry入门.docx"中,你将了解到如何设置开发环境,包括安装必要的工具和库,配置IDE(如Eclipse或IntelliJ IDEA),以及创建第一个Tapestry应用。这通常涉及以下几个步骤: 1. **环境配置**:安装Java ...

    tapestry学习入门资料

    3. Tapestry 关注的是如何联系用户的动作和这些动作所引响到的对象。 Tapestry 的优点: 1. Tapestry 使得 Java 代码与 HTML 完全分离,利用这个框架开发大型应用变得轻而易举。 2. Tapestry 支持本地化,其错误...

    EnjoyWeb(tapestry入门)

    3. **内置组件与自定义组件**:Tapestry提供了诸如日历、树形结构和数据网格等强大的内置组件,同时支持开发者创建自己的组件,以满足特定项目需求,实现代码复用。 ### 本书如何帮助学习Tapestry? - **逐步教程*...

    Tapestry5开发环境搭建(Eclipse)

    ### Tapestry5 开发环境搭建(Eclipse) 在本文中,我们将详细介绍如何使用 Eclipse、Maven 和 Jetty 搭建 Tapestry5 的开发环境。这不仅有助于理解基本的搭建流程,还能帮助开发者掌握必要的配置步骤和技术细节。 ...

    tapestry3开发指南,带tapestry3所有jar包

    压缩包中的“tapestry3”包含了运行Tapestry 3应用所需的全部库文件。这些jar包通常包括以下几类: 1. **Tapestry核心库**:提供框架的基础功能,如组件模型、事件处理和页面生命周期管理。 2. **依赖的第三方库**...

    Tapestry4.1.2 入门-介绍

    【Tapestry4.1.2 入门-介绍】 Tapestry 是一个基于Java的Web应用程序框架,它提供了一种面向组件的开发方式,极大地简化了Web应用的构建过程。在Tapestry中,开发者无需关注HTTP请求的处理细节,如链接、请求流向和...

    Tapestry入门.ppt

    【Tapestry框架详解】 Tapestry是一款开源的基于Servlet的应用程序框架,它采用组件对象模型来构建动态、交互式的Web应用。这个框架的核心概念是Java Web Component(JWC),表现为HTML标记上的jwcid属性。JWC允许...

    Tapestry5最新中文入门实例教程

    - 使用提供的WAR文件导入到Eclipse或NetBeans等IDE中。 - 或者使用Maven创建一个新的Tapestry 5项目。 3. **项目结构** - 在项目的`source`文件夹中找到根包`t5demo`。 - 查看`web.xml`部署描述符,了解...

    Tapestry4开发指南

    这意味着,对于熟悉Tapestry3的开发者而言,过渡到Tapestry4将相对容易。本指南将着重于Tapestry4的快速入门和实践,对于理论部分,建议读者参考之前关于Tapestry3的资料,以获得更全面的理解。 #### 五、Tapestry4...

    Tapestry 5.1 实例教程(全部)

    总之,Tapestry 5.1实例教程全面覆盖了从入门到精通的各个环节,无论你是初学者还是有经验的开发者,都能从中受益匪浅。通过学习和实践,你将能够熟练掌握Tapestry 5.1,构建出高效、易于维护的Web应用程序。

    tapestry3文档

    《Tapestry3文档》深度解析与应用指南 在IT领域,Tapestry是一个历史悠久且功能强大的开源框架,专门用于构建复杂的企业级Web应用程序。它采用组件化编程模型,简化了MVC(Model-View-Controller)架构的实现,使得...

    Tapestry-3-Getting Started.doc

    ### Tapestry 3入门教程知识点概述 #### 一、项目背景与目标 - **项目名称**:Tapestry-3-Getting Started - **项目目标**:开发一个基于Web的货币转换器应用。 - **技术栈**:Tapestry 3、Eclipse IDE、Apache ...

    Tapestry开发指南

    Tapestry是一款强大的Java Web应用程序框架,由Apache软件基金会维护。它以其组件化、类型安全的模板和事件驱动模型著称,为开发者提供了一种高效、高性能的方式来构建动态、交互式的Web应用。对于初次接触Tapestry...

    tapestry5中文文档

    为了开始第一个Tapestry 5 应用,可以下载提供的WAR文件,并在Eclipse等IDE中导入。对于Eclipse用户,需要选择"文件"-&gt;"导入",然后选择"WAR文件",指定WAR文件的位置,如果需要,还可以选择一个服务器运行环境。...

    Tapestry4的入门资料

    3. **事件驱动**:Tapestry4中的用户交互通过事件来处理。当用户触发一个操作,如点击按钮,Tapestry会调用相应的事件处理方法。这种方法使得代码更清晰,更容易理解。 4. **状态管理**:Tapestry4自动管理组件的...

Global site tag (gtag.js) - Google Analytics