Closed romain-grecourt closed 6 years ago
@lukasj @bshannon @arjantijms FYI
I have the nexus-staging-maven-plugin included in the my main
Makes sense. The extension is only needed for their deploy magic, the rc-goal only require the plugin to be configured, and in this case the dependencyManagement section is enough.
@Tomas-Kraus FYI
Any idea why the ip-validation check fails ? The last few commits are signed-off.
@Tomas-Kraus Do you know why the ip check failed ?
@Tomas-Kraus Do you know why the ip check failed ? I don't know. But it happened to me too in the past. Maybe some temporary failure on eclipse side.
@m0mus Please check this in. We can make 1.0.5 in staging to test it.
I put this into staging as 1.0.5 and parent pom deployment revealed one issue:
I would set at least default value of maven.deploy.skip in this pom.
@Tomas-Kraus , the nexus-maven-plugin configures an extension and replaces the executions of the deploy plugin. You don't need to configure any execution of the plugin. (See the actual code here: https://github.com/sonatype/nexus-maven-plugins/blob/master/staging/maven-plugin/src/main/java/org/sonatype/nexus/maven/staging/deploy/DeployLifecycleParticipant.java)
I've been using this configuration for Helidon and it works. The only difference is that I'm not forcing the maven-deploy-plugin to be skipped, maybe that's the reason why you are seeing this behavior. I did add this based on what Bill had been using for javamail but I didn't think this would make the staging plugin not work. I.e skipping the deploy-plugin might actually turn off the staging-plugin too.
The right thing to do is probably to remove the hardcoded skip for the deploy plugin (or force do it only for the oss-release profile).
Also the snapshot deployments should be done by the regular deploy plugin, so skipping it with hardcoded configuration in the default profile is wrong.
Let's not release the parent pom to Maven Central until we get it right. I'll submit another PR and have you test it again ;)
This plugin requires to be declared with extension=true. It is relatively intrusive, thus isolating it inside the oss-release profile.
The plugin also has "rc" goals that can be used with mvn cli invokation to automate the nexus workflow. The plugin is configured in pluginManagement to enable that use-case.
Configure the maven-deploy-plugin to be skipped so that it does not interfere with the nexus-staging-maven-plugin. Also configure the nexus-staging-maven-plugin to skip its execution based on maven.deploy.skip which is a well known property.
Add comments to clarify what each profile does.