slachiewicz opened a new pull request, #662:
URL: https://github.com/apache/maven-project-info-reports-plugin/pull/662

   Second step for #586, after the User-Agent in #659.
   
   The `licenses` report downloads the project's `<licenses><license><url>` 
text to inline it, once per module, so a reactor whose modules inherit one 
`<licenses>` section makes one request per module per `mvn site`, and once the 
host starts blocking the build waits out one 5 s connect timeout per module. 
The text, or the failure, is now kept in the repository session data 
(`SessionData`, so it lives exactly as long as the build and is shared under 
`-T` and mvnd; no static, no cache on disk) and reused by every later module, 
so each URL is requested once per build. Parallel modules block on one download 
through `computeIfAbsent`.
   
   `linkOnly` gains the user property `licenses.linkOnly`, so a build farm can 
stop downloading license texts with `-Dlicenses.linkOnly=true` and no POM edit. 
Rendered output is unchanged otherwise. The default flip to link-only for 
remote URLs is a separate, later change.
   
   Verified: `mvn verify -Dtest=LicensesReportTest` under JDK 21 → 4 tests 
pass; the two new ones seed the session cache and assert the page renders the 
seeded text, and render a local license file and assert the cache holds it 
under the key later modules compute.


-- 
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