首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在Windows 7上构建Apache

在Windows 7上构建Apache
EN

Stack Overflow用户
提问于 2015-05-19 16:24:08
回答 3查看 219关注 0票数 1

当我试图在我的windows 7 service pack 1 64位上构建apache滚筒时,我遇到了这样的错误。

代码语言:javascript
复制
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (gen-db-scripts) on project roller-webapp: An Ant BuildException has occured: Exception thrown by 'generator.parse'. For more information consult the velocity log, or invoke ant with the -debug flag.
[ERROR] around Ant part ...<texen outputFile="README.txt" controlTemplate="control.vm" outputDirectory="F:\roller-trunk\app/target/dbscripts" templatePath="F:\roller-trunk\app/src/main/resources/sql" contextProperties="F:\roller-trunk\app/src/main/resources/sql/dbscripts.properties"/>... @ 5:261 in F:\roller-trunk\app\target\antrun\build-main.xml: F:\roller-trunk\app\target\dbscripts\db2\createdb.sql (The system cannot find the path specified)
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (gen-db-scripts) on project roller-webapp: An Ant BuildException has occured: Exception thrown by 'generator.parse'. For more information consult the velocity log, or invoke ant with the -debug flag.
around Ant part ...<texen outputFile="README.txt" controlTemplate="control.vm" outputDirectory="F:\roller-trunk\app/target/dbscripts" templatePath="F:\roller-trunk\app/src/main/resources/sql" contextProperties="F:\roller-trunk\app/src/main/resources/sql/dbscripts.properties"/>... @ 5:261 in F:\roller-trunk\app\target\antrun\build-main.xml

我怀疑这个outputDirectory="F:\roller-trunk\app/target/dbscripts“templatePath="F:\roller-trunk\app/src/main/resources/sql"`是问题所在,但我不知道如何解决它。我从命令提示符中运行了"mvn干净安装“。

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2015-05-23 02:27:47

我成功地在Windows 7框上构建了当前SVN主干(5.2.0-快照)中的Roller源代码,没有错误。mvn -version的输出如下:

代码语言:javascript
复制
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T20:57:37+09:00)
Maven home: c:\apache-maven-3.3.3
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_45\jre
Default locale: ja_JP, platform encoding: MS932
OS name: "windows 7", version: "6.1", arch: "x86", family: "dos"

您能尝试使用相同版本的JDK/Maven来构建上面的输出吗?

更新

现在可以在没有此错误的情况下建立滚轮的GitHub分布。有关详细信息,请检查https://issues.apache.org/jira/browse/ROL-2086

票数 0
EN

Stack Overflow用户

发布于 2015-06-05 23:44:27

GitHub不存储Roller需要进行构建的空目录,如果应用了此修补程序(https://github.com/apache/roller/pull/3),问题将得到解决。

我的工作正在进行中,罗勒的叉,TightBlog,已经有了这个改变:https://github.com/gmazza/tightblog。但是TightBlog还没有做好常规使用的准备。

票数 0
EN

Stack Overflow用户

发布于 2015-05-25 11:55:21

我相信这个错误的发生是因为直接拉出了Github版本。一开始,我试着把它从吉突拔出来,我也面临着同样的问题。稍后,我尝试直接从SVN主干签出它,构建过程没有问题。

我相信这个错误之前在http://comments.gmane.org/gmane.comp.java.roller.devel/5895上也有描述过。有人说,Github版本可能会出现一些问题。

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30331110

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档