AEM build failed with SSR approach with SPA | Community
Skip to main content
JakeCham
Level 6
December 3, 2023
Solved

AEM build failed with SSR approach with SPA

  • December 3, 2023
  • 1 reply
  • 987 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by partyush

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

1 reply

partyush
Community Advisor
partyushCommunity AdvisorAccepted solution
Community Advisor
December 4, 2023

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