mvn appfuse:由于颠覆,全源无法正常工作

时间:2014-10-10 11:10:25

标签: java maven svn

我是maven的新手。我有appfuse maven项目,它是嵌入式的。我想把它作为全源,但它给了我以下错误:

Failed to execute goal org.appfuse.plugins:appfuse-maven-plugin:3.0.0:full-source (default-cli) on project OOS: svn: PROPFIND request failed on '/svn/appfuse~svn/tags/APPFUSE_3.0.0/data/common/src'

我为此搜索了解决方案并找到了this信息,并应用了网站中提供的解决方案:添加

<trunk>https://svn.java.net/svn/appfuse~svn/</trunk>

在appfuse配置标记内。将此行添加到我的pom.xml文件后,我尝试运行mvn appfuse:full-source,但它给了我同样的错误。

完整堆栈在这里:

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.mycompany:OOS:war:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.exclusions.exclusion.artifactId' for org.springmodules:spring-modules-validation:jar with value '*' does not match a valid id pattern. @ line 363, column 33
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such    malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Spring MVC Application 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- appfuse-maven-plugin:3.0.0:full-source (default-cli) @ OOS ---
[INFO] [AppFuse] Installing source from data-common module...
[ERROR] 175002 : svn: PROPFIND request failed on   '/svn/appfuse~svn/tags/APPFUSE_3.0.0/data/common/src'
[ERROR] 175002 : svn: svn.java.net: Name or service not known
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.743s
[INFO] Finished at: Fri Oct 10 15:53:55 UZT 2014
[INFO] Final Memory: 10M/144M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.appfuse.plugins:appfuse-maven-plugin:3.0.0:full-source (default-cli) on project OOS: svn: PROPFIND request failed on  '/svn/appfuse~svn/tags/APPFUSE_3.0.0/data/common/src'
[ERROR] svn: svn.java.net: Name or service not known
[ERROR] -> [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/MojoExecutionException

我删除了.m2文件夹中的整个存储库目录,但没有帮助。

我想检查链接https://svn.java.net/svn/appfuse~svn/但是它要求输入用户名/密码。我想,这也可能是一个原因。我正在使用Ubuntu并试图安装subversion表单软件中心,但没有用:仍然是同样的问题。 我希望有人遇到过这类问题,并会分享。

1 个答案:

答案 0 :(得分:0)

最后,我已经弄明白了。问题出在mysql db上。我在我的项目的pom.xml中使用默认配置,默认情况下它使用mysql dbms。它已与db连接并在mysql中创建了所有表,但尚未启动该项目。但是,当我将db配置文件更改为postgresql时,它就像魅力一样。我不明白为什么,但appfuse maven项目与mysql dbms存在一些冲突。