在 Windows 7 上构建 Apache Roller
Building Apache Roller on Windows 7
当我试图在我的 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"。
我在 Windows 7 box 上成功地在当前 SVN trunk (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 构建上述输出吗?
更新
现在 GitHub 可以构建 Roller 发行版而不会出现此错误。详细检查 https://issues.apache.org/jira/browse/ROL-2086
我相信这个错误的发生是因为从 Github 版本直接拉取。起初,我试图从 Github 中提取它,但我遇到了同样的问题。后来尝试直接从SVN trunk上checkout,构建过程没有问题
我相信这个错误也曾在 http://comments.gmane.org/gmane.comp.java.roller.devel/5895 中描述过。据称Github版本可能存在一些问题。
GitHub 不存储 Roller 构建所需的空目录,如果应用此补丁 (https://github.com/apache/roller/pull/3),问题将得到解决。
我正在进行的工作 Github Roller 的分支 TightBlog 已经有了这个变化:https://github.com/gmazza/tightblog。但是 TightBlog 还不能正常使用。
当我试图在我的 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"。
我在 Windows 7 box 上成功地在当前 SVN trunk (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 构建上述输出吗?
更新
现在 GitHub 可以构建 Roller 发行版而不会出现此错误。详细检查 https://issues.apache.org/jira/browse/ROL-2086
我相信这个错误的发生是因为从 Github 版本直接拉取。起初,我试图从 Github 中提取它,但我遇到了同样的问题。后来尝试直接从SVN trunk上checkout,构建过程没有问题
我相信这个错误也曾在 http://comments.gmane.org/gmane.comp.java.roller.devel/5895 中描述过。据称Github版本可能存在一些问题。
GitHub 不存储 Roller 构建所需的空目录,如果应用此补丁 (https://github.com/apache/roller/pull/3),问题将得到解决。
我正在进行的工作 Github Roller 的分支 TightBlog 已经有了这个变化:https://github.com/gmazza/tightblog。但是 TightBlog 还不能正常使用。