Brijesh619 opened a new pull request, #718:
URL: https://github.com/apache/atlas/pull/718

   ## What changes were proposed in this pull request?
   
   This patch resolves the Apache RAT plugin license check failures that occur 
during the dashboard build process. The following changes were made:
   1. **`dashboard/vite.config.ts`**: Added a custom Vite plugin that 
dynamically reads the Apache License header and automatically injects it into 
all generated minified `.js`, `.css`, and `index.html` assets in the `dist/n3` 
output directory.
   2. **`dashboard/pom.xml`**: Added an exclusion for the 
`.frontend-toolchain/**` directory in the `apache-rat-plugin` configuration. 
This prevents the checker from scanning 3rd-party node/npm binaries downloaded 
by the frontend-maven-plugin.
   
   
   ## How was this patch tested?
   
   - Manually verified by running `npm run build` in the `dashboard/` 
directory. Confirmed that all generated `.js`, `.css`, and `.html` assets 
inside `dist/n3/assets/` correctly contain the Apache License at the top of the 
files.
   - Executed a successful full local Maven build (`mvn clean package 
-DskipTests -Pdist,embedded-hbase-solr`) to confirm that the 
`apache-rat-plugin` check passes without throwing any license missing errors.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to