在Windows 7上构建Apache Roller

时间:2015-05-19 16:24:08

标签: java maven ant apache-roller

当我尝试在我的Windows 7 Service Pack 1 64位上构建apache roller时,我遇到了这种错误。

[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 clean install”。

3 个答案:

答案 0 :(得分:0)

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

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构建上述输出吗?

<强>更新

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

答案 1 :(得分:0)

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

我正在进行的工作正在进行的Github Roller of Roller,TightBlog已经有了这样的改变:https://github.com/gmazza/tightblog。但是TightBlog还没有为常规使用做好准备。

答案 2 :(得分:-1)

我相信这个错误是因为Github版本的直接拉动而发生的。起初,我试图从Github拉出它,我遇到了同样的问题。后来,我试图直接从SVN中继检查它,并且建设过程没有问题。

我认为之前在http://comments.gmane.org/gmane.comp.java.roller.devel/5895已经描述过此错误。据说Github版本可能存在一些问题。