gpt4 book ai didi

java - 在 Windows 7 上构建 Apache Roller

转载 作者:行者123 更新时间:2023-12-01 06:13:29 25 4
gpt4 key购买 nike

当我尝试在 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 盒子上的当前 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

关于java - 在 Windows 7 上构建 Apache Roller,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30331110/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com