当我试图在我的windows 7 service pack 1 64位上构建apache滚筒时,我遇到了这样的错误。
[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干净安装“。
发布于 2015-05-25 11:55:21
我相信这个错误的发生是因为直接拉出了Github版本。一开始,我试着把它从吉突拔出来,我也面临着同样的问题。稍后,我尝试直接从SVN主干签出它,构建过程没有问题。
我相信这个错误之前在http://comments.gmane.org/gmane.comp.java.roller.devel/5895上也有描述过。有人说,Github版本可能会出现一些问题。
https://stackoverflow.com/questions/30331110
复制相似问题