I used to build it nightly on my dev server automatically. When a build worked 
I would stick with that build for awhile while developing. When it didn’t work 
I would report it and usually within a few days the problem would be fixed. The 
developers were responsive.

But yeah, there were times when there was a long stretch of the build not 
working.

Here’s my build arguments from jenkins:
mvn clean install -Dsling.java.version=6 -e
(this is old - so not sure if you can still build to java 6)

maven opts:
-Djava.awt.headless=true -Xmx512M -XX:MaxPermSize=512m

So no secrets. Launch arguments are where all of the secrets are.

Rob

> On 14 Jun 2016, at 22:26, David Legg <[email protected]> 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
> 
> 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

Reply via email to