-
Notifications
You must be signed in to change notification settings - Fork 79
MOSIP-37901 - Exclude MOSIP services from being published or released… #302
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
Open
NidhiKumari0201
wants to merge
1
commit into
mosip:release-1.3.x
Choose a base branch
from
NidhiKumari0201:MOSIP-37901-release-1.3x-nexus
base: release-1.3.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial
Verify
default-publishis the actual auto-injected execution id, and consider the documentedskipPublishingalternative.central-publishing-maven-pluginuses<extensions>true</extensions>and registers as a Maven lifecycle participant that dynamically injects itspublishgoal into thedeployphase. Overriding it with an execution id ofdefault-publishand<phase>none</phase>relies on Maven'sdefault-<goalId>naming convention for that injection. With this plugin that convention is not officially documented for the injected execution — if the plugin uses any other id, this override will silently do nothing and the goal will still run onmvn deploy.A cleaner, documented alternative is the plugin's own configuration switch
<skipPublishing>true</skipPublishing>(intended for "creating only the bundle but skipping uploading and publishing"). Even simpler, since the PR's stated goal is to exclude these services from Nexus/Central entirely, you could drop<extensions>true</extensions>(or remove the plugin block) so the plugin no longer auto-binds to the lifecycle at all.This block is duplicated verbatim in
commons-packet/pom.xml— please keep them in sync (or define it once in the aggregator and inherit, which is currently not possible since this POM does not declare a<parent>).♻️ Documented alternative using
skipPublishing<plugin> <groupId>org.sonatype.central</groupId> <artifactId>central-publishing-maven-plugin</artifactId> <version>${central.publishing.maven.plugin.version}</version> <extensions>true</extensions> - <executions> - <execution> - <id>default-publish</id> - <phase>none</phase> - <goals> - <goal>publish</goal> - </goals> - </execution> - </executions> <configuration> <publishingServerId>ossrh</publishingServerId> <autoPublish>false</autoPublish> + <skipPublishing>true</skipPublishing> </configuration> </plugin>Please run a quick
mvn -X deploy -DskipTests(or justmvn -X help:describe -Dplugin=org.sonatype.central:central-publishing-maven-plugin -Ddetail=true) and confirm that the execution id Maven prints for the auto-injectedpublishgoal is indeeddefault-publish— that is the linchpin assumption of this change.📝 Committable suggestion
🤖 Prompt for AI Agents