简体   繁体   English

在Windows 7上构建Apache Roller

[英]Building Apache Roller on Windows 7

I am getting this kind of error when i tried to build apache roller on my windows 7 service pack 1 64 bit. 当我尝试在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

i suspect this outputDirectory="F:\\roller-trunk\\app/target/dbscripts" templatePath="F:\\roller-trunk\\app/src/main/resources/sql" ` is the problem but i have no idea how to fix it. 我怀疑这个outputDirectory =“ F:\\ roller-trunk \\ app / target / dbscripts” templatePath =“ F:\\ roller-trunk \\ app / src / main / resources / sql” `是问题,但我不知道如何修理它。 I ran the "mvn clean install" from my command prompt. 我从命令提示符处运行了“ mvn全新安装”。

I succeeded building Roller source code in current SVN trunk (5.2.0-SNAPSHOT) on Windows 7 box without errors. 我成功地在Windows 7机器上的当前SVN中继(5.2.0-SNAPSHOT)中构建了Roller源代码,没有错误。 output of mvn -version is following: 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"

Could you try building with same version of JDK/Maven to the above output? 您可以尝试使用与上述输出相同版本的JDK / Maven进行构建吗?

UPDATE 更新

Now GitHub distribution of Roller can be built without this error. 现在可以构建没有Roller的GitHub发行版。 For detail check https://issues.apache.org/jira/browse/ROL-2086 有关详细信息,请检查https://issues.apache.org/jira/browse/ROL-2086

GitHub doesn't store the empty directories that Roller needs to do the build, if this patch were applied ( https://github.com/apache/roller/pull/3 ) the problem would be fixed. GitHub不会存储Roller进行构建所需的空目录,如果应用了此补丁( https://github.com/apache/roller/pull/3 ),该问题将得到解决。

My work-in-progress Github fork of Roller, TightBlog, already has this change in place: https://github.com/gmazza/tightblog . 我正在开发的Roller的Github分支TightBlog已经进行了此更改: https : //github.com/gmazza/tightblog But TightBlog is not ready for regular use. 但是TightBlog还没有准备好常规使用。

I believe this error happens because of direct pull from the Github version. 我相信发生此错误是由于从Github版本直接拉出。 At first, I've tried to pull it from Github and I faced the same problem. 起初,我尝试将其从Github中拉出,但我遇到了同样的问题。 Later on, I've tried to checkout it directly from the SVN trunk and there's no problem with the building process. 稍后,我尝试直接从SVN中继中检出它,并且构建过程没有问题。

I believe this error has also been described previously at http://comments.gmane.org/gmane.comp.java.roller.devel/5895 . 我相信以前在http://comments.gmane.org/gmane.comp.java.roller.devel/5895中也描述了此错误。 It is stated that there might be some problems with the Github version. 据说Github版本可能存在一些问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM