2010-07-28 5 views
5

में "ग्रहण प्रदर्शन":com.sun: उपकरण: जार: 1.4.2 लापता जब चल रहा है जब मैं चलाने "ग्रहण प्रदर्शन" रू में मैं रू

roo> perform eclipse 
[INFO] Scanning for projects... 
[INFO] ------------------------------------------------------------------------ 
[INFO] Building bugzter 
[INFO] task-segment: [eclipse:clean, eclipse:eclipse] 
[INFO] ------------------------------------------------------------------------ 
[INFO] [eclipse:clean {execution: default-cli}] 
[INFO] Deleting file: .project 
[INFO] Deleting file: .classpath 
[INFO] Deleting file: .wtpmodules 
[INFO] Deleting file: .component 
[INFO] Deleting file: org.eclipse.wst.common.component 
[INFO] Deleting file: org.eclipse.wst.common.project.facet.core.xml 
[INFO] Deleting file: org.eclipse.jdt.core.prefs 
[INFO] Deleting file: org.eclipse.ajdt.ui.prefs 
[INFO] Preparing eclipse:eclipse 
[INFO] ------------------------------------------------------------------------ 
[ERROR] BUILD ERROR 
[INFO] ------------------------------------------------------------------------ 
[INFO] Failed to resolve artifact. 

Missing: 
---------- 
1) com.sun:tools:jar:1.4.2 

    Try downloading the file manually from the project website. 

    Then, install it using the command: 
     mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file 

    Alternatively, if you host your own repository you can deploy the file there: 
     mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] 

    Path to dependency: 
     1) org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0 
     2) com.sun:tools:jar:1.4.2 

---------- 
1 required artifact is missing. 

for artifact: 
    org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0 

from the specified remote repositories: 
    com.springsource.repository.bundles.release (http://repository.springsource.com/maven/bundles/release), 
    com.springsource.repository.bundles.external (http://repository.springsource.com/maven/bundles/external), 
    central (http://repo1.maven.org/maven2), 
    codehaus.org (http://repository.codehaus.org), 
    com.springsource.repository.bundles.milestone (http://repository.springsource.com/maven/bundles/milestone), 
    com.springsource.repository.bundles.snapshot (http://repository.springsource.com/maven/bundles/snapshot), 
    snapshots (http://snapshots.repository.codehaus.org) 

[INFO] ------------------------------------------------------------------------ 
[INFO] For more information, run Maven with the -e switch 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 3 seconds 
[INFO] Finished at: Wed Jul 28 20:57:52 CEST 2010 
[INFO] Final Memory: 30M/298M 
[INFO] ------------------------------------------------------------------------ 

की कोशिश की उपकरण-1.4.2 डाउनलोड किया .jar और रन mvn इंस्टॉल करें: install-file -DgroupId = com.sun -DartifactId = tools -Dversion = 1.4.2 -Dpackaging = jar -Dfile =/path/to/file लेकिन यह समस्या का समाधान नहीं करता है।

ubuntu 10.04 चल रहा है और maven 2.2

कोई सुझाव?

उत्तर

4

Spring Source Roo and missing com.sun:tools:jar:1.4.2 के अनुसार:

आप SpringSource ROO के नवीनतम संस्करण एक 64 जावा JDK साथ काम करना, प्राप्त करने की कोशिश कर रहे हैं, इस तरह के नवीनतम JDK 1.6 अद्यतन 20 के रूप में, वहाँ है दुर्भाग्य से से एक अनुपलब्ध tools.jar जेडीके (टट टट टट सन/ओरेकल) की डिफ़ॉल्ट lib\ निर्देशिका। यह काम करने से रू को रोक देगा और इसलिए मैवेन संकलन को रोकें। आप शायद इस के समान एक त्रुटि दिखाई देगी

Error message: Missing: 
---------- 
1) com.sun:tools:jar:1.4.2 

Try downloading the file manually from the project website. 

Then, install it using the command: 
mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file 

Alternatively, if you host your own repository you can deploy the file there: 
mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] 

---------- 
1 required artifact is missing. 

इस त्रुटि को ठीक करने के लिए, एक अतिरिक्त 86 JDK स्थापित करें, repoint JAVA_HOME और नए JDK के लिए पथ और पुनः आरंभ mvn प्रक्रिया

+0

मुझे आश्चर्य है कि अगर यह 1.6 अद्यतन की जाँच के लायक हो जाएगा 21 यह देखने के लिए कि क्या उन्होंने इसे जोड़ा है। शायद ऩही। – Powerlord

+0

@ आर। बेमेरोज़: यह निश्चित रूप से जांचने योग्य है लेकिन मैं अपने 32-बिट प्लेटफॉर्म पर 64-बिट जेडीके स्थापित करने के लिए बहुत आलसी हूं। –

+0

मुझे याद रखना होगा कि जब मैं घर पर हूं ... मेरे पास 64-बिट जावा 6u21 जेडीके स्थापित है; हालांकि विंडोज के लिए। – Powerlord

5

जेआरई के बजाय जेडीके (1.5+) निर्देशिका में अपने सिस्टम पर्यावरण पैरामीटर JAVA_HOME को दोबारा दें।

1

मैंने सोचा कि मेरे पास java_home jdk पर सेट है, लेकिन मुझे लगता है कि slackware में दोनों jre और jdk उसी फ़ोल्डर में स्थापित हो। दोनों स्थापित होने के कारण इस समस्या का कारण बन गया। मैंने दोनों को अनइंस्टॉल किया, और जेडीके को पुनः स्थापित किया (सुरक्षित होने के लिए) और इसे ठीक कर दिया।

0

इस निर्भरता को pom.xml फ़ाइल में जोड़ें।

<systemPath> संपत्ति में आपको अपना जेडीके lib पथ लिखना होगा।

<dependency> 
      <groupId>com.sun</groupId> 
      <artifactId>tools</artifactId> 
     <version>1.4.2</version> 
     <scope>system</scope> 
     <systemPath>C:/Program Files/Java/jdk1.6.0_30/lib/tools.jar</systemPath> 
    </dependency> 
0

मुझे भी एक ही समस्या थी और निम्नलिखित तरीके से तय किया गया।

कमांड प्रॉम्प्ट में जेडीके स्थापित पथ की lib निर्देशिका पर जाएं। Tools.jar इंस्टॉल करने के लिए स्थापित करने के लिए नीचे दिए गए कमांड को निष्पादित करें। $ Mvn स्थापित: स्थापित फ़ाइल -DgroupId = sun.jdk -DartifactId = उपकरण -Dpackaging = जार -Dversion = 1.6 -Dfile = tools.jar

http://parameshk.blogspot.in

संबंधित मुद्दे