Sunday, December 3, 2017

How to fix following error: Failed to execute goal org.apache.rat:apache-rat-plugin on project org.apache.sling.samples.path-based.rtp: Too many files with unapproved license:

1. Run Maven build command:

mvn clean install -s /home/user/.m2/settings.xml

2. Getting the following Build Failure message:

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project org.apache.sling.samples.path-based.rtp: Too many files with unapproved license: 1677 See RAT report in: /home/scaunasu/path-based-rtp/target/rat.txt -> [Help 1]

3. To solve the above, run Maven command with the following additiona parameter:

mvn clean install -s /home/user/.m2/settings.xml  -Drat.numUnapprovedLicenses=2000

1 comment: