On Tue, 2016-06-14 at 21:26 +0100, David Legg wrote: > Is there a secret method of building Sling from the repository? :-) > > Over the last year I've tried on and off to build Sling from time to > time on an Ubuntu 14.10 system with Maven 3 and OpenJDK version > 1.8.0_91. > > Initially I could only succeed by skipping the tests but now the > Apache > License checker causes a fail. > > My technique for failing to build (revision 1748307) is as follows: - > > $ svn co http://svn.apache.org/repos/asf/sling/trunk sling > $ cd sling > $ export MAVEN_OPTS="-Xmx1024M -XX:MaxPermSize=512m" > $ mvn -DskipTests clean install
That works for me OOTB on my svn checkout. Can you attach the license errors that are reported in ~/projects/sling/sling/launchpad/builder/target/rat.txt ? Robert > > This then gives me the following output: - > > ... > [INFO] Apache Sling RepoInit Oak/JCR module ........ SUCCESS [ 5.419 > s] > [INFO] Apache Sling Filesystem Resource Provider ... SUCCESS [ 2.017 > s] > [INFO] Apache Sling Installer WebConsole Plugin .... SUCCESS [ 1.518 > s] > [INFO] Apache Sling Launchpad Application Builder .. FAILURE [21:16 > min] > [INFO] Apache Sling Scripting Sightly Integration Tests ... SKIPPED > ... > > ... > [INFO] -------------------------------------------------------------- > -- > [INFO] BUILD FAILURE > [INFO] -------------------------------------------------------------- > -- > [INFO] Total time: 26:56 min > [INFO] Finished at: 2016-06-13T21:55:34+01:00 > [INFO] Final Memory: 223M/793M > [INFO] -------------------------------------------------------------- > -- > [ERROR] Failed to execute goal > org.apache.rat:apache-rat-plugin:0.11:check (default) on project > org.apache.sling.launchpad: Too many files with unapproved license: > 304 > See RAT report in: > ~/projects/sling/sling/launchpad/builder/target/rat.txt -> [Help 1] > > Am I supposed to checkout a different branch or supply some > different > flags to mvn? > > Best Regards, > David Legg
