Expand my Community achievements bar.

SOLVED

AEM build failed with SSR approach with SPA

Avatar

Level 7

Hi team,

 

Im trying to build a sample ssr project into my cloud sdk I have followed the below link.

https://www.youtube.com/watch?v=wukNmebsZQo&t=3s

When I try to build the code into my cloud sdk it will give a build error saying 

"Too many files with unapproved licence: 23 RAT report"

How to get this fixed 

 

Thanks in advance!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hey there @JakeCham 

 

So, the error you're running into, "Too many files with unapproved licence: 23 RAT report," basically means there's an issue with the license headers in your source code files. To fix this:

  1. Take a look at your source files and make sure each one has a proper license header at the top. Double-check that the license info is correct and follows your project's licensing rules.

  2. If any files are missing license headers or have the wrong info, update them. You want all your files to have accurate and consistent license details.

  3. Consider using the Apache Rat Maven plugin in your project. Just pop this bit of code into your pom.xml file:

     
  4. <build> <plugins> <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <version>0.13</version> <executions> <execution> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> </plugins> </build>

    This plugin helps manage license headers during your project build.

  5. Dive into the RAT report to pinpoint which files are causing trouble. Fix up any licensing issues in those specific files.

     Or could you please share the detailed error report ! 

    Thanks

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hey there @JakeCham 

 

So, the error you're running into, "Too many files with unapproved licence: 23 RAT report," basically means there's an issue with the license headers in your source code files. To fix this:

  1. Take a look at your source files and make sure each one has a proper license header at the top. Double-check that the license info is correct and follows your project's licensing rules.

  2. If any files are missing license headers or have the wrong info, update them. You want all your files to have accurate and consistent license details.

  3. Consider using the Apache Rat Maven plugin in your project. Just pop this bit of code into your pom.xml file:

     
  4. <build> <plugins> <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <version>0.13</version> <executions> <execution> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> </plugins> </build>

    This plugin helps manage license headers during your project build.

  5. Dive into the RAT report to pinpoint which files are causing trouble. Fix up any licensing issues in those specific files.

     Or could you please share the detailed error report ! 

    Thanks