Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven config templates #24997

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.mvn/maven.config
*.ipr
*.iml
*.iws
Expand Down
81 changes: 81 additions & 0 deletions .mvn/maven.config.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
############################################
# Build GlassFish Server Full Distribution #
############################################

#-Pfastest
#-T4C
#-am
#-pl
#org.glassfish.main.distributions:glassfish

###########################################
# Build GlassFish Server Web Distribution #
###########################################

#-Pfastest
#-T4C
#-am
#-pl
#org.glassfish.main.distributions:web

##############################################
# Build GlassFish Embedded Full Distribution #
##############################################

#-Pfastest
#-T4C
#-am
#-pl
#org.glassfish.main.extras:glassfish-embedded-all

##############################################
# Build GlassFish Embedded Full Distribution #
##############################################

#-Pfastest
#-T4C
#-am
#-pl
#org.glassfish.main.extras:glassfish-embedded-web

###########################################################################
# Repackage GlassFish Server (not for Embedded). #
# Assembles already built GlassFish modules into GlassFish distributions. #
# Suitable if modules are already built in an IDE. #
###########################################################################

#-Pfastest
#-T4C
#-rf
#appserver/featuresets

################################################################################
# Building all distribution artifacts, running QA and all maven managed tests. #
# Excludes Ant, TCK and documentation. #
# Typical time: 10 minutes. #
################################################################################

#-Pqa

################################################################################
# Building all distribution artifacts, running just unit tests. #
# Excludes QA, integration tests, Ant, TCK and documentation. #
# Typical time: 7 minutes. #
################################################################################

#-Pfast

############################################################
# Building all distribution artifacts as fast as possible. #
# Excludes everything not serving this purpose. #
# Typical time: 1.5 minutes. #
############################################################

#-Pfastest
#-T4C

#################################
# Configure log level for tests #
#################################

#-Dtest.logLevel=FINEST
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ The Zip distributions can be found on following paths:
You can use also some maven optimizations, see [Maven documentation](https://maven.apache.org/ref/3.9.5/maven-embedder/cli.html).
Especially `-am`, `-amd`, `-f`, `-pl`, `-rf` and their combinations are useful.

If you use Maven 3.9+, we recommend that you copy the `.mvn/maven.config.template` file into `.mvn/maven.config` and uncomment one of the options there or customize the options as you need. Then you can just run `mvn clean install` and the options in `maven.config` will be applied automatically. Or with just `mvn`, the default goal will be run with those options. See [Configuring Maven Documentation](https://maven.apache.org/configure.html)

If you want to see more logs you can use the `-Dtest.logLevel=FINEST` option set to an appropriate log level.
Note that this applies just for tests which are executed by Maven and which use the **GlassFish Java Util Logging Extension (GJULE)**.

Expand Down
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@
-->
<profile>
<id>fastest</id>
<properties>
<cyclonedx.skip>true</cyclonedx.skip>
pzygielo marked this conversation as resolved.
Show resolved Hide resolved
</properties>
<modules>
<module>qa</module>
<module>nucleus</module>
Expand Down