Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-2086

Build fails for source code that obtained from GitHub

    XMLWordPrintableJSON

Details

    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

      Attachments

        1. ROL-2086.patch
          2 kB
          Kohei Nozaki

        Activity

          People

            roller_unassigned Roller Unassigned
            xkylex Kohei Nozaki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: