[comixed-dev] Re: Maven repository deployment

  • From: João França <jmcrfp@xxxxxxxxx>
  • To: comixed-dev@xxxxxxxxxxxxx
  • Date: Thu, 15 Oct 2020 10:25:08 +0100

It ended with success :) So I don't see any issues

On Wed, Oct 14, 2020 at 3:28 PM Darryl L. Pierce <mcpierce@xxxxxxxxx> wrote:

I've updated the log with output from using -X.

On Tue, Oct 13, 2020 at 10:01 AM João França <jmcrfp@xxxxxxxxx> wrote:

Now I can see that the sign stage run:
...
[INFO] --- maven-gpg-plugin:1.5:sign (sign-artifacts) @ comixed-release
---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @
comixed-release ---
[INFO] Installing
/Users/mcpierce/Repositories/comixed/comixed-release/target/comixed-release-0.7.0-1.jar
to
/Users/mcpierce/.m2/repository/org/comixedproject/comixed-release/0.7.0-1/comixed-release-0.7.0-1.jar
[INFO] Installing
/Users/mcpierce/Repositories/comixed/comixed-release/pom.xml to
/Users/mcpierce/.m2/repository/org/comixedproject/comixed-release/0.7.0-1/comixed-release-0.7.0-1.pom
[INFO] Installing
/Users/mcpierce/Repositories/comixed/release/comixed-release-0.7.0-1-local.zip
to
/Users/mcpierce/.m2/repository/org/comixedproject/comixed-release/0.7.0-1/comixed-release-0.7.0-1-local.zip
[INFO] Installing
/Users/mcpierce/Repositories/comixed/comixed-release/target/comixed-release-0.7.0-1.jar.asc
to
/Users/mcpierce/.m2/repository/org/comixedproject/comixed-release/0.7.0-1/comixed-release-0.7.0-1.jar.asc
[INFO] Installing
/Users/mcpierce/Repositories/comixed/comixed-release/target/comixed-release-0.7.0-1.pom.asc
to
/Users/mcpierce/.m2/repository/org/comixedproject/comixed-release/0.7.0-1/comixed-release-0.7.0-1.pom.asc
[INFO] Installing
/Users/mcpierce/Repositories/comixed/comixed-release/target/gpg/Users/mcpierce/Repositories/comixed/release/comixed-release-0.7.0-1-local.zip.asc
to
/Users/mcpierce/.m2/repository/org/comixedproject/comixed-release/0.7.0-1/comixed-release-0.7.0-1-local.zip.asc
[INFO]
[INFO] --- nexus-staging-maven-plugin:1.6.8:deploy
(injected-nexus-deploy) @ comixed-release ---
[INFO] Performing local staging (local
stagingDirectory="/Users/mcpierce/Repositories/comixed/target/nexus-staging/staging")...
[INFO]  + Using server credentials "ossrh" from Maven settings.
....

But I don't see anything else, can you run with -X to have more logs?


On Tue, Oct 13, 2020 at 1:14 PM Darryl L. Pierce <mcpierce@xxxxxxxxx>
wrote:

I don't think so. Let me try again and make sure I use the release
profile.

(runs deploy)

Nope, same failure. I've updated the log on the issue in Github:
https://github.com/comixed/comixed/issues/60#issuecomment-706741525

On Tue, Oct 13, 2020 at 5:28 AM João França <jmcrfp@xxxxxxxxx> wrote:

Did you called the profile "release" I don't see it also in the log
as an active one

On Tue, Oct 13, 2020 at 10:24 AM João França <jmcrfp@xxxxxxxxx>
wrote:

I don't know if it's because the log is not in debug, but I can't
see the sign phase or the maven-gpg-plugin being called anywhere in the
logs.

I mean, anything to do with this part:

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-gpg-plugin</artifactId>
      <version>1.5</version>
      <executions>
        <execution>
          <id>sign-artifacts</id>
          <phase>verify</phase>
          <goals>
            <goal>sign</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>


On Sun, Oct 11, 2020 at 6:53 PM Darryl L. Pierce <mcpierce@xxxxxxxxx>
wrote:

I don't know if my previous email actually made it to the list since
it had a large attachment. I've uploaded the log here [1]. I was
away
camping the last few days which is why I didn't reply sooner.

[1]
https://github.com/comixed/comixed/issues/60#issuecomment-706741525

On Thu, Oct 8, 2020 at 11:38 AM João França <jmcrfp@xxxxxxxxx>
wrote:

If nothing is missing then it's strange.

Can you share the full log?

On Thu, Oct 8, 2020 at 3:44 PM Darryl L. Pierce <
mcpierce@xxxxxxxxx> wrote:

Yes, otherwise Maven wouldn't have been able to upload all of the
artifacts, right?

It's worked one time for me in past when I was testing the
configuration. But now that the release is out it's failing.

On Thu, Oct 8, 2020 at 10:20 AM João França <jmcrfp@xxxxxxxxx>
wrote:

And before that error, the configuration settings look ok?
(server url, password, etc)

On Thu, Oct 8, 2020 at 3:09 PM Darryl L. Pierce <
mcpierce@xxxxxxxxx> wrote:

The error appears to be a repository-side thing, not
something going
wrong on my end. The output says:

[ERROR] Failed to execute goal
org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy
(injected-nexus-deploy) on project comixed-release: Remote
staging
failed: Staging rules failure! -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException:
Failed to
execute goal
org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy
(injected-nexus-deploy) on project comixed-release: Remote
staging
failed: Staging rules failure!
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:213)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
    at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:51)
    at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute
(DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute
(MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain
(MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
    at
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:567)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:289)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:229)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException:
Remote
staging failed: Staging rules failure!
    at
org.sonatype.nexus.maven.staging.deploy.DeployMojo.execute
(DeployMojo.java:216)
    at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:134)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
    at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:51)
    at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute
(DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute
(MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain
(MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
    at
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:567)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:289)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:229)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:356)
Caused by:
org.apache.maven.artifact.deployer.ArtifactDeploymentException:
Remote staging failed: Staging rules failure!
    at
org.sonatype.nexus.maven.staging.deploy.strategy.StagingDeployStrategy.finalizeDeploy
(StagingDeployStrategy.java:155)
    at
org.sonatype.nexus.maven.staging.deploy.DeployMojo.execute
(DeployMojo.java:213)
    at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:134)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
    at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:51)
    at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute
(DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute
(MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain
(MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
    at
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:567)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:289)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:229)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:356)
Caused by:
com.sonatype.nexus.staging.client.StagingRuleFailuresException:
Staging rules failure!
    at
com.sonatype.nexus.staging.client.internal.StagingWorkflowV3ServiceImpl.monitorRepositoryTransition
(StagingWorkflowV3ServiceImpl.java:272)
    at
com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl$7.perform
(StagingWorkflowV2ServiceImpl.java:205)
    at
com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl$7.perform
(StagingWorkflowV2ServiceImpl.java:200)
    at
com.sonatype.nexus.staging.client.internal.ExceptionConverter.runAndReturn
(ExceptionConverter.java:38)
    at
com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl.finishStaging
(StagingWorkflowV2ServiceImpl.java:209)
    at
org.sonatype.nexus.maven.staging.deploy.strategy.AbstractStagingDeployStrategy.afterUpload
(AbstractStagingDeployStrategy.java:202)
    at
org.sonatype.nexus.maven.staging.deploy.strategy.StagingDeployStrategy.finalizeDeploy
(StagingDeployStrategy.java:129)
    at
org.sonatype.nexus.maven.staging.deploy.DeployMojo.execute
(DeployMojo.java:213)
    at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:134)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
    at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:51)
    at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute
(DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute
(MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain
(MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
    at
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:567)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:289)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:229)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:356)

On Thu, Oct 8, 2020 at 4:58 AM João França <jmcrfp@xxxxxxxxx>
wrote:

Try maven with "-X" to get the debug log and see if we get
a better message of the problem

On Wed, Oct 7, 2020 at 7:21 PM Darryl L. Pierce <
mcpierce@xxxxxxxxx> wrote:

I believe I do. The pom.xml files are all in the
repository, and my
(scrubbed) settings.xml form ~/.m2 is:

<settings>
  <servers>
    <server>
      <id>ossrh</id>
      <username>[username]</username>
      <password>[password]</password>
    </server>
  </servers>
</settings>

The username and password values above are the tokenized
values given
to me by the Sonatype website. Everything works just until
that last
piece, so I'm pretty sure my configuration's okay.

On Wed, Oct 7, 2020 at 11:30 AM João França <
jmcrfp@xxxxxxxxx> wrote:

I never tried with signed components, but did you follow
this guide
https://central.sonatype.org/pages/working-with-pgp-signatures.html and
do you have your settings.xml correctly configure like they say here
https://central.sonatype.org/pages/apache-maven.html#gpg-signed-components
?

On Wed, Oct 7, 2020 at 3:37 PM Darryl L. Pierce <
mcpierce@xxxxxxxxx> wrote:

Is anybody on the list experienced in deployment to
Maven's
repository? I've got what I thought was everything but
am hitting the
same issue each time:

[ERROR] Rule failure while trying to close staging
repository with ID
"orgcomixedproject-1018".
[ERROR]
[ERROR] Nexus Staging Rules Failure Report
[ERROR] ==================================
[ERROR]
[ERROR] Repository "orgcomixedproject-1018" failures
[ERROR]   Rule "signature-staging" failures
[ERROR]     * Missing Signature:

'/org/comixedproject/comixed-services/0.7.0-1/comixed-services-0.7.0-1.pom.asc'
does not exist for 'comixed-services-0.7.0-1.pom'.
[ERROR]     * Missing Signature:

'/org/comixedproject/comixed-services/0.7.0-1/comixed-services-0.7.0-1.jar.asc'
does not exist for 'comixed-services-0.7.0-1.jar'.

I've published my public GPG key but the publishing of
the artifacts
is failing. Anybody have experience or an idea of what
I'm doing wrong
and can give me an assist?

--
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and
leap together." -
Gord Downie



--
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap
together." -
Gord Downie



--
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap
together." -
Gord Downie



--
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap
together." -
Gord Downie



--
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap together."
-
Gord Downie



--
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap together." -
Gord Downie



--
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap together." -
Gord Downie


Other related posts: