Skip to content

Conversation

@hgschmie
Copy link
Contributor

This matches the attach parameter from the source plugin

Setting this parameter to false will skip attaching the generated jar artifact to the build. It will not be picked up by the install and deploy goals.

Omitting or setting this parameter to true will attach the jar to the build. This is the default behavior.

The use case for this is generating test jars as part of a build to be used in integration tests while they should not actually be deployed to a repository.

This matches the `attach` parameter from the source plugin

Setting this parameter to `false` will skip attaching the generated jar
artifact to the build. It will not be picked up by the install and
deploy goals.

Omitting or setting this parameter to `true` will attach the jar to the
build. This is the default behavior.

The use case for this is generating test jars as part of a build to be
used in integration tests while they should not actually be deployed to
a repository.
@hgschmie hgschmie added enhancement New feature or request java Pull requests that update Java code labels Oct 15, 2025
@hgschmie hgschmie merged commit 49bb464 into apache:maven-jar-plugin-3.x Oct 27, 2025
26 checks passed
@hgschmie hgschmie deleted the skip-jar-attach-3.x branch October 27, 2025 20:44
@github-actions github-actions bot added this to the 3.4.3 milestone Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant