无法在Netbeans IDE上构建Firstcup项目

时间:2018-11-06 05:00:47

标签: java maven jar

我认真地遵循了有关FirstCup Java ee 8的教程。我无法成功构建该项目:

  

“ dukes-age-archetype ............................... FAILURE [10.826s]” ..

Netbeans IDE的红色突出显示了错误,我需要帮助。

Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:jar (default-jar) on project dukes-age-archetype: Execution default-jar of goal org.apache.maven.plugins:maven-archetype-plugin:2.2:jar failed: A required class was missing while executing org.apache.maven.plugins:maven-archetype-plugin:2.2:jar: org/jdom/JDOMException
-----------------------------------------------------
realm =    plugin>org.apache.maven.plugins:maven-archetype-plugin:2.2
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.2/maven-archetype-plugin-2.2.jar
urls[1] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/apache/maven/archetype/archetype-catalog/2.2/archetype-catalog-2.2.jar
urls[2] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/apache/maven/archetype/archetype-descriptor/2.2/archetype-descriptor-2.2.jar
urls[3] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/apache/maven/archetype/archetype-registry/2.2/archetype-registry-2.2.jar
urls[4] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/apache/maven/archetype/archetype-common/2.2/archetype-common-2.2.jar
urls[5] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/net/sourceforge/jchardet/jchardet/1.0/jchardet-1.0.jar
urls[6] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
urls[7] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
urls[8] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
urls[9] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar
urls[10] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar
urls[11] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.8/plexus-velocity-1.1.8.jar
urls[12] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
urls[13] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
urls[14] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
urls[15] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar
urls[16] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.8/maven-reporting-api-2.0.8.jar
urls[17] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-9/doxia-sink-api-1.0-alpha-9.jar
urls[18] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
urls[19] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-5/plexus-interactivity-api-1.0-alpha-5.jar
urls[20] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11.jar
urls[21] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
urls[22] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar
urls[23] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar
urls[24] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/asm/asm/3.2/asm-3.2.jar
urls[25] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/asm/asm-commons/3.2/asm-commons-3.2.jar
urls[26] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/asm/asm-util/3.2/asm-util-3.2.jar
urls[27] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/asm/asm-analysis/3.2/asm-analysis-3.2.jar
urls[28] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/asm/asm-tree/3.2/asm-tree-3.2.jar
urls[29] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
urls[30] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/apache/maven/shared/maven-script-interpreter/1.0/maven-script-interpreter-1.0.jar
urls[31] = file:/C:/Users/Olaniyi%20Adeoye/.m2/repository/org/apache/ant/ant/1.8.1/ant-1.8.1.jar
Number of foreign imports: 1
import: Entry[import  from realm ClassRealm[project>org.glassfish.docs:dukes-age-archetype:8.0, parent: ClassRealm[maven.api, parent: null]]]

-----------------------------------------------------: org.jdom.JDOMException
-> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

After correcting the problems, you can resume the build with the command
  mvn <goals> -rf :dukes-age-archetype

0 个答案:

没有答案