2013-02-12 51 views
5

में परिवर्तित मैवेन प्रोजेक्ट में त्रुटि मैं m2e प्लगइन के साथ एक्लिप्स जूनो का उपयोग कर रहा हूं। मैंने अपने जावा प्रोजेक्ट को एक्लेप्सेग्रहण

प्रोजेक्ट> राइटो मेनू कॉन्फ़िगरेशन> मैवेन प्रोजेक्ट में कनवर्ट करें पर राइट क्लिक करें।

Multiple annotations found at this line: 
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler- 
plugin:2.3.2:compile (execution: default-compile, phase: compile) 
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler- 
plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile) 
- CoreException: Could not get the value for parameter compilerId for plugin execution default- 
compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of 
its dependencies could not be resolved: The following artifacts could not be resolved: 
org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1, org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1: 
Failure to transfer org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1 from http://repo.maven.apache.org/ 
maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central 
has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-compiler- 
manager:jar:1.8.1 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http:// 
repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler- 
manager-1.8.1.jar 
- CoreException: Could not get the value for parameter compilerId for plugin execution default- 
testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one 
of its dependencies could not be resolved: The following artifacts could not be resolved: 
org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1, org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1: 
Failure to transfer org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1 from http://repo.maven.apache.org/ 
maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central 
has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-compiler- 
manager:jar:1.8.1 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http:// 
repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler- 
manager-1.8.1.jar 

कैसे इस समस्या को हल करने के लिए:

thats my pom.xml file

और इन त्रुटियों कर रहे हैं? कृपया मदद करें।

+2

नेटवर्क समस्या की तरह लगता है क्योंकि आपके लॉग कहते हैं कि प्लेक्सस-कंपाइलर-मैनेजर-1.8.1.jar नेटवर्क टाइमआउट के कारण डाउनलोड करने में विफल रहा। एक वेनिला मेवेन प्रोजेक्ट सेटअप बनाने का प्रयास करें और यह सुनिश्चित करें कि काम करता है और फिर इस प्रोजेक्ट पर पुनः प्रयास करें। एक ग्रहण पुनरारंभ करें और वेनिला परियोजना काम करने के बाद पूर्ण परियोजना ताज़ा करें। –

+0

ग्रहण, मेवेन, एम 2 ई और जीडब्ल्यूटी के साथ शुरू होने वाले शुरुआती लोगों के लिए सभी चीजों पर रैंप करना मुश्किल होगा। आप इसके बजाय जीडब्ल्यूटी मेवेन नमूना प्रोजेक्ट से शुरू कर सकते हैं और इसे "आयात" -> "मौजूदा मेवेन प्रोजेक्ट" का उपयोग करके ग्रहण में आयात कर सकते हैं। यहां से डाउनलोड करने में जीडब्ल्यूटी के नमूने फ़ोल्डर -> http://google-web-toolkit.googlecode.com/files/gwt-2.5.0.zip – SSR

+1

मैंने देखा है कि आपके स्क्रीनशॉट में "सेलेनियम" है। क्या आप वाकई इसे जीडब्ल्यूटी के साथ टैग करने की ज़रूरत है? – SSR

उत्तर

1

ग्रहण जूनो को मेवेन प्रोजेक्ट बनाने में कुछ समस्या है, मैवेन प्रोजेक्ट बनाने, जावा बनाने और इसे परिवर्तित करने का सबसे अच्छा तरीका है।

जूनो को इमारत, संकलन, स्थापना में, मेवेन के जीवन चक्र विन्यास के साथ समस्या भी है। इसलिए कृपया अपना निर्माण स्वचालित रूप से बंद करें।

इस समस्या को हल करने के लिए नीचे दिए गए निर्देशों का पालन करें।

जांचें कि ग्रहण पर आपकी प्रॉक्सी सेटिंग्स आपकी कंपनी कॉर्पोरेट नेटवर्क के पीछे है या नहीं।

यह गोटो-> विंडो-> prefernces-> सामान्य-> नेटवर्क कनेक्शन बदलने और सक्रिय प्रदाताओं को बदलने के लिए।

यदि आपके पास कुछ प्रॉक्सी विवरण हैं, तो मैनोल को सक्रिय प्रदाता के रूप में चुनें और इसे संपादित करें। प्रॉक्सी विवरण, यानी, होस्ट नाम और पोर्ट जोड़ें, और सहेजें पर क्लिक करें।

अन्यथा इसे अपनी कंपनी नेटवर्क टीम से प्राप्त करने का प्रयास करें।

Goto-> विंडो> prefernces-> Maven-> उपयोगकर्ता सेटिंग

चेक द्वारा इस गोटो Maven सेटिंग करने के बाद अगर कोई xml फ़ाइल नहीं तो फाइल करने के लिए नीचे दिए गए कोड को जोड़ने और को बचाने के settings.xml कहा जाता है राह।

संदर्भ के लिए यह locatedon किया जाएगा: उपयोगकर्ताओं को अपने name.m2 \

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 
         http://maven.apache.org/xsd/settings-1.0.0.xsd"> 
    <localRepository/> 
    <interactiveMode/> 
    <usePluginRegistry/> 
    <offline/> 
    <pluginGroups/> 
    <servers/> 
    <mirrors/> 
    <proxies> 
    <proxy> 
     <id>myproxy</id> 
     <active>true</active> 
     <protocol>http</protocol> 
     <host>proxy name</host> 
     <port>number</port> 
     <username></username> 
     <password></password> 
     <nonProxyHosts>localhost,127.0.0.1</nonProxyHosts> 
    </proxy> 
    </proxies> 
    <profiles/> 
    <activeProfiles/> 
</settings> 

यहां तक ​​कि इस के बाद, अगर यह काम करता है, गोटो कमांड प्रॉम्प्ट नहीं करता है। परियोजना स्थान पर नेविगेट करें। दूसरे के बाद एक आदेश टाइप करें। - mvn स्वच्छ - mvn संकलन - mvn स्थापित

आशा है कि यह आप और अन्य लोगों के लिए काम करेंगे।