`

使用maven创建appfuse

 
阅读更多


1、主要参考http://appfuse.org/display/APF/AppFuse+QuickStart

2、问题处理:

  • 运行mvn appfuse:full-source,遇到错误:

报错:

[ERROR] Failed to execute goalorg.appfuse.plugins:appfuse-maven-plugin:2.1.0:full-source(default-cli) on project accountant: Execution default-cli of goalorg.appfuse.plugins:appfuse-maven-plugin:2.1.0:full-source failed: Arequired class was missing while executingorg.appfuse.plugins:appfuse-maven-plugin:2.1.0:full-source:org/codehaus/plexus/embed/Embedder[ERROR] -----------------------------------------------------[ERROR] realm = plugin>org.appfuse.plugins:appfuse-maven-plugin:2.1.0[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy[ERROR] urls[0] =file:/Users/dlwhitehurst/.m2/repository/org/appfuse/plugins/appfuse-maven-plugin/2.1.0/appfuse-maven-plugin-2.1.0.jar[ERROR] urls[1] =file:/Users/dlwhitehurst/.m2/repository/mysql/mysql-connector-java/5.1.14/mysql-connector-java-5.1.14.jar[ERROR] urls[2] =file:/Users/dlwhitehurst/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar[ERROR] urls[3] =file:/Users/dlwhitehurst/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar[ERROR] urls[4] =file:/Users/dlwhitehurst/.m2/repository/org/codehaus/mojo/hibernate3/maven-hibernate3-api/2.2/maven-hibernate3-api-2.2.jar[ERROR] urls[5] =file:/Users/dlwhitehurst/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar[ERROR] urls[6] =file:/Users/dlwhitehurst/.m2/repository/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA.jar[ERROR] urls[7] =file:/Users/dlwhitehurst/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar[ERROR] urls[8] =file:/Users/dlwhitehurst/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar[ERROR] urls[9] =file:/Users/dlwhitehurst/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar[ERROR] urls[10] =file:/Users/dlwhitehurst/.m2/repository/org/hibernate/hibernate-tools/3.2.3.GA/hibernate-tools-3.2.3.GA.jar[ERROR] urls[11] =file:/Users/dlwhitehurst/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar[ERROR] urls[12] =file:/Users/dlwhitehurst/.m2/repository/freemarker/freemarker/2.3.8/freemarker-2.3.8.jar[ERROR] urls[13] =file:/Users/dlwhitehurst/.m2/repository/org/hibernate/jtidy/r8-20060801/jtidy-r8-20060801.jar[ERROR] urls[14] =file:/Users/dlwhitehurst/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.0.1B_spec/1.1.1/geronimo-jta_1.0.1B_spec-1.1.1.jar... and more

原因:

使用了maven 3.x,而appfuse使用的2.0。

参见appfuse:full-source fails to work with Maven 3

有人找出了出错的代码段:(见 http://maven.40175.n5.nabble.com/Upgrading-maven-embedder-from-2-0-4-to-3-0-2-td3379984.html


解决:

使用maven 2.x。



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics