gnodet commented on code in PR #413:
URL: https://github.com/apache/maven-archiver/pull/413#discussion_r4108654560


##########
src/main/java/org/apache/maven/shared/archiver/BuildHelper.java:
##########
@@ -109,12 +116,94 @@ public static String getPluginParameter(Model model, 
Plugin plugin, String param
         return value;
     }
 
+    /**
+     * Determines whether a Maven module will be deployed to a remote 
repository.
+     * <p>
+     * This method analyses the model's plugin configuration to detect if 
deployment will be skipped,
+     * taking into account the three known deployment mechanisms:
+     * <ol>
+     * <li>{@code central-publishing-maven-plugin} — the new Sonatype Central 
Portal publisher; when
+     *     present it replaces {@code maven-deploy-plugin}. The module is 
considered deployable if the
+     *     plugin has at least one execution of the {@code publish} goal that 
is not skipped (via the
+     *     {@code skipPublishing} parameter or property).</li>
+     * <li>{@code nexus-staging-maven-plugin} — the legacy Sonatype OSS 
publisher; when present it
+     *     replaces standard deploy. The module is considered deployable if it 
has at least one execution
+     *     of the {@code deploy} goal that is not skipped (via the {@code 
skipNexusStagingDeployMojo}
+     *     parameter or property).</li>
+     * <li>{@code maven-deploy-plugin} — the standard deploy plugin. The 
module is deployable if it has
+     *     at least one execution of the {@code deploy} goal that is not 
skipped (via the {@code skip}
+     *     parameter or the {@code maven.deploy.skip} property).</li>
+     * </ol>
+     * The extension plugins are checked first. If neither is present, the 
standard deploy plugin is
+     * checked. A module with none of these plugins configured is considered 
deployable by default.
+     *
+     * @param model not null
+     * @return {@code true} if the module will be deployed to a remote 
repository, {@code false} otherwise

Review Comment:
   Fixed in 49ac8c8.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to