2012-08-07 10 views
6

मैंने playn के लिए प्रारंभ पृष्ठ पर निर्देशों का पालन करने और पहले प्रोग्राम जावा शोकेस चलाने पर समस्याओं में भाग लेने का प्रयास किया है। सही क्लिक करने और मेवेन परीक्षण चलाने पर मुझे निम्न त्रुटियां मिलती हैं। इसके अलावा, मैं (yyy से xxx हस्तांतरण करने के लिए विफलता) से संबंधित ग्रहण की समस्या टैब जहां xxx कुछ जार फ़ाइल है और yyy एक gwt या playn वेबसाइट है में कई त्रुटियाँ प्राप्तप्लेन नमूना प्रोजेक्ट चलाने में असमर्थ - संकलन त्रुटियों

[INFO] Scanning for projects... 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building PlayN Showcase Java 1.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
Downloading: http://snapshots.repository.codehaus.org/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plugin-2.10.pom 
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plugin-2.10.pom 
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plugin-2.10.pom (11 KB at 47.2 KB/sec) 
Downloading: http://snapshots.repository.codehaus.org/org/apache/maven/surefire/surefire/2.10/surefire-2.10.pom 
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.10/surefire-2.10.pom 
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.10/surefire-2.10.pom (12 KB at 118.8 KB/sec) 
Downloading: http://snapshots.repository.codehaus.org/org/apache/maven/maven-parent/20/maven-parent-20.pom 
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/20/maven-parent-20.pom 
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/20/maven-parent-20.pom (25 KB at 143.9 KB/sec) 
Downloading: http://snapshots.repository.codehaus.org/org/apache/maven/plugins/maven-antrun-plugin/1.6/maven-antrun-plugin-1.6.pom 
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.6/maven-antrun-plugin-1.6.pom 
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.6/maven-antrun-plugin-1.6.pom (5 KB at 52.2 KB/sec) 
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/playn/playn-showcase-core/1.0-SNAPSHOT/maven-metadata.xml 
Downloading: http://forplay.googlecode.com/svn/mavenrepo/com/googlecode/playn/playn-showcase-core/1.0-SNAPSHOT/maven-metadata.xml 
Downloading: http://forplay.googlecode.com/svn/mavenrepo/com/googlecode/playn/playn-showcase-core/1.0-SNAPSHOT/playn-showcase-core-1.0-SNAPSHOT.pom 
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/playn/playn-showcase-core/1.0-SNAPSHOT/playn-showcase-core-1.0-SNAPSHOT.pom 
[WARNING] The POM for com.googlecode.playn:playn-showcase-core:jar:1.0-SNAPSHOT is missing, no dependency information available 
Downloading: http://forplay.googlecode.com/svn/mavenrepo/jlayer/tritonus_share/1.0/tritonus_share-1.0.pom 
[WARNING] Checksum validation failed, no checksums available from the repository for http://forplay.googlecode.com/svn/mavenrepo/jlayer/tritonus_share/1.0/tritonus_share-1.0.pom 
Downloaded: http://forplay.googlecode.com/svn/mavenrepo/jlayer/tritonus_share/1.0/tritonus_share-1.0.pom (462 B at 0.7 KB/sec) 
Downloading: http://forplay.googlecode.com/svn/mavenrepo/com/googlecode/playn/playn-showcase-core/1.0-SNAPSHOT/playn-showcase-core-1.0-SNAPSHOT.jar 
Downloading: http://forplay.googlecode.com/svn/mavenrepo/jlayer/mp3spi/1.9.5/mp3spi-1.9.5.jar 
Downloading: http://forplay.googlecode.com/svn/mavenrepo/jlayer/tritonus_share/1.0/tritonus_share-1.0.jar 
[WARNING] Checksum validation failed, no checksums available from the repository for http://forplay.googlecode.com/svn/mavenrepo/jlayer/mp3spi/1.9.5/mp3spi-1.9.5.jar 
Downloaded: http://forplay.googlecode.com/svn/mavenrepo/jlayer/mp3spi/1.9.5/mp3spi-1.9.5.jar (25 KB at 40.9 KB/sec) 
[WARNING] Checksum validation failed, no checksums available from the repository for http://forplay.googlecode.com/svn/mavenrepo/jlayer/tritonus_share/1.0/tritonus_share-1.0.jar 
Downloaded: http://forplay.googlecode.com/svn/mavenrepo/jlayer/tritonus_share/1.0/tritonus_share-1.0.jar (101 KB at 102.4 KB/sec) 
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/playn/playn-showcase-core/1.0-SNAPSHOT/playn-showcase-core-1.0-SNAPSHOT.jar 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 6.155s 
[INFO] Finished at: Tue Aug 07 08:01:22 EDT 2012 
[INFO] Final Memory: 7M/112M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal on project playn-showcase-java: Could not resolve dependencies for project com.googlecode.playn:playn-showcase-java:jar:1.0-SNAPSHOT: Could not find artifact com.googlecode.playn:playn-showcase-core:jar:1.0-SNAPSHOT in forplay-legacy (http://forplay.googlecode.com/svn/mavenrepo) -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 

उत्तर

5

आप इस कोशिश कर सकते हैं:

फिर "playn-showcase" पर राइट क्लिक करें: के रूप में चलाएं -> मैवेन

इसे सभी निर्भरताओं को सही ढंग से पुनर्प्राप्त करना चाहिए। पर "playn-प्रदर्शन-जावा"

राइट क्लिक करें तो:

अगली बार जब आप नमूना लॉन्च करना चाहते हैं, तो आप ट्यूटोरियल प्रक्रिया का पालन कर सकते हैं के रूप में चलाने के लिए -> Maven टेस्ट

+1

धन्यवाद! मैं प्रोजेक्ट को काम करने में सक्षम था, 3 चीजें कर रहा था (सुनिश्चित नहीं है कि कौन सा आवश्यक बनाम बनाम है जो मैं इसे काम करने के तरीके पर करता हूं): 1. मैवेन टेस्ट के बजाय मेवेन इंस्टॉल करें 2. रन ऑन playn-showcase-java के बजाए playn-showcase 3. java_home निर्देशिका को उस स्थान पर सेट करें जहां मेरा एसडीके स्थापित किया गया था (एक jre निर्देशिका में डिफॉल्ट किया गया था जिसमें tools.jar नहीं था)। – sdparker