Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
5.1.2
-
None
Description
There's a mirror of Roller repository in GitHub ( https://github.com/apache/roller ) , But build fails for it because it doesn't have empty directories that need to build.
That are directories under app/target/dbscripts/(db2|derby|hsqldb|mssql|mysql|oracle|postgresql) . If any of one is missing the build will be failed as follows:
[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="/Users/kyle/tmp/tmptmp/roller/app/target/dbscripts" contextProperties="/Users/kyle/tmp/tmptmp/roller/app/src/main/resources/sql/dbscripts.properties" templatePath="/Users/kyle/tmp/tmptmp/roller/app/src/main/resources/sql"/>... @ 11:303 in /Users/kyle/tmp/tmptmp/roller/app/target/antrun/build-main.xml: /Users/kyle/tmp/tmptmp/roller/app/target/dbscripts/db2/createdb.sql (No such file or directory)
There are a pull request to solve it: https://github.com/apache/roller/pull/3 . I'm not sure what is proper solution for it but I think putting .gitignore in SVN repository looks bit strange. I think creating the missing directories in build process, Before executing texen would be a better solution.
Question on Stackoverflow that why build fails because of this: http://stackoverflow.com/questions/30331110/building-apache-roller-on-windows-7