Dev profile to update modules without building the whole GlassFish distribution #24985
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.
Note: This depends on a new release of the
glassfish-build-maven-plugin
with this: eclipse-ee4j/glassfish-build-maven-plugin#204. That's why it's in draft.This will allow to build a single module and quickly update the GlassFish distribution in
appserver/distributions/glassfish/target/stage/glassfish7/glassfish
so that GlassFish can be started quickly with the code changes applied.To apply changes in a specific module that suppots the
dev
profile:mvn -Pdev install
appserver/distributions/glassfish/target/stage/glassfish7/glassfish
GlassFish distribution module must be first built by building the GlassFish project as usual.
To add support for the
dev
profile in other modules:copy.modules.to.distribution.skip
property tofalse
(if the module is 3 nested directories below root, i.e. the root directory is at../../..
)copy.modules.to.distribution.path.to.root
property to the root directory (e.g.copy.modules.to.distribution.path.to.root=../../../..
). An example is in thenucleus/admin/rest/rest-service/pom.xml
file.modules/${project.build.finalName}.jar
, then setcopy.modules.to.distribution.destFile
to point to the destination file, e.g.copy.modules.to.distribution.destFile=${basedir}/../../..//${glassfish.distribution.dir}/lib/somefileinlib.jar
. You can use the${glassfish.distribution.dir}
property which points to theglassfish7/glassfish
folder relative to the project root. An example is in theappserver/admingui/core/pom.xml
file