Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds Maven config templates that can be used in
.mvn/maven.config
(see https://maven.apache.org/configure.html).The idea is that people can copy and modify these templates in their
.mvn/maven.config
file, which wouldn't be versioned. Then it's easy to speed up the build by selecting the target artifact (uncomment that artifact in themaven.config
file), as an alternative to #24534.For example, instead of executing
mvn clean install -Pfastest -pl 'org.glassfish.main.distributions:glassfish' -am -T4C
on command line to build only the GlassFish Server distribution with the fasted profile, it's possible to copy.mvn/maven.config.template
into.mvn/maven.config
and uncomment the following:Then just execute
mvn clean install
to clean and build the GlassFish Server distribution. Or justmvn
to build it without clean.I think this is simpler and cleaner solution than which I proposed earlier in #24534. If this PR as merged, I'm going to close #24534.
In this PR, I also added the
-Dcyclonedx.skip=true
property to thefastest
profile. The CycloneDX SBOM check, which is not necessary and slows down the build by a few seconds: https://cyclonedx.org/.