1

Windows 7 サービス パック 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 clean install」を実行しました。

4

3 に答える 3

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をご確認ください

于 2015-05-23T02:27:47.977 に答える
0

GitHub は、Roller がビルドを行うために必要な空のディレクトリを保存しません。このパッチが適用されていれば ( https://github.com/apache/roller/pull/3 )、問題は修正されます。

私の作業中の Roller の Github フォークである TightBlog には、既にこの変更が適用されています: https://github.com/gmazza/tightblog。しかし、TightBlog は通常の使用の準備が整っていません。

于 2015-06-05T23:44:27.223 に答える