You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Shawn McKinney <sm...@apache.org> on 2016/03/06 20:30:09 UTC

[Fortress] Need Karma to publish release artifacts

Got this error today while performing release on core.  How do I get the proper access?

[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 55.277s
[INFO] [INFO] Finished at: Sun Mar 06 13:26:59 CST 2016
[INFO] [INFO] Final Memory: 59M/621M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project fortress-core: Failed to deploy artifacts: Could not transfer artifact org.apache.directory.fortress:fortress-core:jar:1.0-RC42 from/to apache.releases.https (https://repository.apache.org/service/local/staging/deploy/maven2): Failed to transfer file: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/directory/fortress/fortress-core/1.0-RC42/fortress-core-1.0-RC42.jar. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
[INFO] [ERROR] 
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[INFO] [ERROR] 
[INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:27.893s
[INFO] Finished at: Sun Mar 06 13:26:59 CST 2016
[INFO] Final Memory: 17M/251M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.2:perform (default-cli) on project fortress-core: Maven execution failed, exit code: '1' -> [Help 1]



Shawn






Re: [Fortress] Need Karma to publish release artifacts

Posted by Shawn McKinney <sm...@apache.org>.
> On Mar 6, 2016, at 4:47 PM, Shawn McKinney <sm...@apache.org> wrote:
> 
>> 
>> On Mar 6, 2016, at 1:39 PM, Stefan Seelmann <ma...@stefan-seelmann.de> wrote:
>> 
>> Were you able to do an "mvn deploy" of the snapshots before starting the
>> release?
> 
> Negative.  Following instructions per Emmanuel on Friday:
> 
> 1) mvn -Papache-release -DdryRun=true release:prepare 
> 
> 2) mvn -Papache-release release:clean 
> 
> 3) mvn -Papache-release release:prepare
> 
> 4) mvn -Papache-release release:perform
> 
> I get the failure on step #4.

Update:

I deleted the 1.0-RC42 tag and ran through the sequence again.  This time step #4 worked so looks like I’m good. 

Thanks,

Shawn


Re: [Fortress] Need Karma to publish release artifacts

Posted by Shawn McKinney <sm...@apache.org>.
Hey Stefan, thanks for the quick response.

> On Mar 6, 2016, at 1:39 PM, Stefan Seelmann <ma...@stefan-seelmann.de> wrote:
> 
> can you login to https://repository.apache.org/ and do you see on the
> left-hand side the "Staging Repositories" link?

Yes

> On Mar 6, 2016, at 1:39 PM, Stefan Seelmann <ma...@stefan-seelmann.de> wrote:
> 
> Also check your ~/.m2/settings.xml, there you need an <server> entry for
> apache.snapshots.https and apache.releases.https

Here’s what’ve got:

    <!-- To publish a snapshot of some part of Maven -->
    <server>
      <id>apache.snapshots.https</id>
      <username>smckinney</username>
      <password>******</password>
    </server>
    <!-- To publish a website of some part of Maven -->
    <server>
      <id>apache.websites</id>
      <username>smckinney</username>
      <filePermissions>664</filePermissions>
      <directoryPermissions>775</directoryPermissions>
    </server>
    <!-- To stage a release of some part of Maven -->
    <server>
      <id>apache.releases.https</id>
      <username>smckinney</username>
      <password>******</password>
    </server>
    <!-- To stage a website of some part of Maven -->
    <server>
      <id>stagingSite</id> <!-- must match hard-coded repository identifier in site:stage-deploy -->
      <username>smckinney</username>
      <filePermissions>664</filePermissions>
      <directoryPermissions>775</directoryPermissions>
    </server>
  </servers>

> On Mar 6, 2016, at 1:39 PM, Stefan Seelmann <ma...@stefan-seelmann.de> wrote:
> 
> Were you able to do an "mvn deploy" of the snapshots before starting the
> release?

Negative.  Following instructions per Emmanuel on Friday:

1) mvn -Papache-release -DdryRun=true release:prepare 

2) mvn -Papache-release release:clean 

3) mvn -Papache-release release:prepare

4) mvn -Papache-release release:perform

I get the failure on step #4.

Regards,

Shawn


Re: [Fortress] Need Karma to publish release artifacts

Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
Hi Shawn,

can you login to https://repository.apache.org/ and do you see on the
left-hand side the "Staging Repositories" link?

Also check your ~/.m2/settings.xml, there you need an <server> entry for
apache.snapshots.https and apache.releases.https

Were you able to do an "mvn deploy" of the snapshots before starting the
release?

Kind Regards,
Stefan


On 03/06/2016 08:30 PM, Shawn McKinney wrote:
> Got this error today while performing release on core.  How do I get the proper access?
> 
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] BUILD FAILURE
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] Total time: 55.277s
> [INFO] [INFO] Finished at: Sun Mar 06 13:26:59 CST 2016
> [INFO] [INFO] Final Memory: 59M/621M
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project fortress-core: Failed to deploy artifacts: Could not transfer artifact org.apache.directory.fortress:fortress-core:jar:1.0-RC42 from/to apache.releases.https (https://repository.apache.org/service/local/staging/deploy/maven2): Failed to transfer file: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/directory/fortress/fortress-core/1.0-RC42/fortress-core-1.0-RC42.jar. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
> [INFO] [ERROR] 
> [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [INFO] [ERROR] 
> [INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1:27.893s
> [INFO] Finished at: Sun Mar 06 13:26:59 CST 2016
> [INFO] Final Memory: 17M/251M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.2:perform (default-cli) on project fortress-core: Maven execution failed, exit code: '1' -> [Help 1]
> 
> 
> 
> Shawn
> 
> 
> 
> 
>