You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Richard Sand <rs...@idfconnect.com> on 2013/07/19 14:25:26 UTC

bad request return code from Sonatype doing release:perform

Hi all - trying to get my first plugin released into Maven Central. The
snapshot is there, and release:prepare executed fine.

When I run release:perform, I'm getting a 400-Bad Request error when maven
tries to download something from the Sonatype parent when I do the release.
Has anyone seen this error? Since all of the reports/site plugin ran
successfully on the snapshot, does it matter if I just disable them for the
release goal? I've got a ticket open with Sonatype but thought someone on
the list may have encountered this before.

  [INFO] <<< maven-plugin-plugin:3.2:report (report:report) @
idfc-proguard-maven-plugin <<<
    [INFO] Parent project loaded from repository:
org.sonatype.oss:oss-parent:pom:7
    Downloading:
https://oss.sonatype.org/service/local/staging/deploy/maven2/org/sonatype/os
s/oss-parent/7/oss-parent-7-site_en.xml
    [INFO]
------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO]
------------------------------------------------------------------------
    [INFO] Total time: 31.175s
    [INFO] Finished at: Thu Jul 18 10:16:19 EDT 2013
    [INFO] Final Memory: 31M/75M
    [INFO]
------------------------------------------------------------------------
    [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on
project idfc-proguard-maven-plugin: SiteToolException: The site descriptor
cannot be resolved from the repository: ArtifactResolutionException: Unable
to locate site descriptor: Could not transfer artifact
org.sonatype.oss:oss-parent:xml:site_en:7 from/to oss.sonatype.org
(https://oss.sonatype.org/service/local/staging/deploy/maven2/): Failed to
transfer file:
https://oss.sonatype.org/service/local/staging/deploy/maven2/org/sonatype/os
s/oss-parent/7/oss-parent-7-site_en.xml. Return code is: 400 ,
ReasonPhrase:Bad Request.
    [ERROR] org.sonatype.oss:oss-parent:xml:7
    [ERROR] 
    [ERROR] from the specified remote repositories:
    [ERROR] oss.sonatype.org
(https://oss.sonatype.org/service/local/staging/deploy/maven2/,
releases=true, snapshots=true),
    [ERROR] sonatype-nexus-snapshots
(https://oss.sonatype.org/content/repositories/snapshots, releases=false,
snapshots=true),
    [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
snapshots=false)
    [ERROR] -> [Help 1]


Thanks for any help!

Best regards,

Richard



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: bad request return code from Sonatype doing release:perform

Posted by Brian Fox <br...@infinity.nu>.
Looking at the logs, it appears that you are trying to actually stage
the parent, not your project. You don't have permissions to stage the
oss parent, hence the error.

On Fri, Jul 19, 2013 at 8:25 AM, Richard Sand <rs...@idfconnect.com> wrote:
> Hi all - trying to get my first plugin released into Maven Central. The
> snapshot is there, and release:prepare executed fine.
>
> When I run release:perform, I'm getting a 400-Bad Request error when maven
> tries to download something from the Sonatype parent when I do the release.
> Has anyone seen this error? Since all of the reports/site plugin ran
> successfully on the snapshot, does it matter if I just disable them for the
> release goal? I've got a ticket open with Sonatype but thought someone on
> the list may have encountered this before.
>
>   [INFO] <<< maven-plugin-plugin:3.2:report (report:report) @
> idfc-proguard-maven-plugin <<<
>     [INFO] Parent project loaded from repository:
> org.sonatype.oss:oss-parent:pom:7
>     Downloading:
> https://oss.sonatype.org/service/local/staging/deploy/maven2/org/sonatype/os
> s/oss-parent/7/oss-parent-7-site_en.xml
>     [INFO]
> ------------------------------------------------------------------------
>     [INFO] BUILD FAILURE
>     [INFO]
> ------------------------------------------------------------------------
>     [INFO] Total time: 31.175s
>     [INFO] Finished at: Thu Jul 18 10:16:19 EDT 2013
>     [INFO] Final Memory: 31M/75M
>     [INFO]
> ------------------------------------------------------------------------
>     [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on
> project idfc-proguard-maven-plugin: SiteToolException: The site descriptor
> cannot be resolved from the repository: ArtifactResolutionException: Unable
> to locate site descriptor: Could not transfer artifact
> org.sonatype.oss:oss-parent:xml:site_en:7 from/to oss.sonatype.org
> (https://oss.sonatype.org/service/local/staging/deploy/maven2/): Failed to
> transfer file:
> https://oss.sonatype.org/service/local/staging/deploy/maven2/org/sonatype/os
> s/oss-parent/7/oss-parent-7-site_en.xml. Return code is: 400 ,
> ReasonPhrase:Bad Request.
>     [ERROR] org.sonatype.oss:oss-parent:xml:7
>     [ERROR]
>     [ERROR] from the specified remote repositories:
>     [ERROR] oss.sonatype.org
> (https://oss.sonatype.org/service/local/staging/deploy/maven2/,
> releases=true, snapshots=true),
>     [ERROR] sonatype-nexus-snapshots
> (https://oss.sonatype.org/content/repositories/snapshots, releases=false,
> snapshots=true),
>     [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
> snapshots=false)
>     [ERROR] -> [Help 1]
>
>
> Thanks for any help!
>
> Best regards,
>
> Richard
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: bad request return code from Sonatype doing release:perform

Posted by Aliaksei Lahachou <al...@gmail.com>.
Hi,

I don't know if this is your case. You may receive bad request, if you
deploy release version of artifact to Nexus, but this version already
exists in the target repository (you may not release the same version
twice). This may happen, if the previous release attempt failed. Check your
remote repository to see if the version you're trying to deploy is already
there, and remove it if it does. Or try releasing newer version.

Regards,
htfv (Aliaksei Lahachou)



On Fri, Jul 19, 2013 at 2:25 PM, Richard Sand <rs...@idfconnect.com> wrote:

> Hi all - trying to get my first plugin released into Maven Central. The
> snapshot is there, and release:prepare executed fine.
>
> When I run release:perform, I'm getting a 400-Bad Request error when maven
> tries to download something from the Sonatype parent when I do the release.
> Has anyone seen this error? Since all of the reports/site plugin ran
> successfully on the snapshot, does it matter if I just disable them for the
> release goal? I've got a ticket open with Sonatype but thought someone on
> the list may have encountered this before.
>
>   [INFO] <<< maven-plugin-plugin:3.2:report (report:report) @
> idfc-proguard-maven-plugin <<<
>     [INFO] Parent project loaded from repository:
> org.sonatype.oss:oss-parent:pom:7
>     Downloading:
>
> https://oss.sonatype.org/service/local/staging/deploy/maven2/org/sonatype/os
> s/oss-parent/7/oss-parent-7-site_en.xml
>     [INFO]
> ------------------------------------------------------------------------
>     [INFO] BUILD FAILURE
>     [INFO]
> ------------------------------------------------------------------------
>     [INFO] Total time: 31.175s
>     [INFO] Finished at: Thu Jul 18 10:16:19 EDT 2013
>     [INFO] Final Memory: 31M/75M
>     [INFO]
> ------------------------------------------------------------------------
>     [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on
> project idfc-proguard-maven-plugin: SiteToolException: The site descriptor
> cannot be resolved from the repository: ArtifactResolutionException: Unable
> to locate site descriptor: Could not transfer artifact
> org.sonatype.oss:oss-parent:xml:site_en:7 from/to oss.sonatype.org
> (https://oss.sonatype.org/service/local/staging/deploy/maven2/): Failed to
> transfer file:
>
> https://oss.sonatype.org/service/local/staging/deploy/maven2/org/sonatype/os
> s/oss-parent/7/oss-parent-7-site_en.xml. Return code is: 400 ,
> ReasonPhrase:Bad Request.
>     [ERROR] org.sonatype.oss:oss-parent:xml:7
>     [ERROR]
>     [ERROR] from the specified remote repositories:
>     [ERROR] oss.sonatype.org
> (https://oss.sonatype.org/service/local/staging/deploy/maven2/,
> releases=true, snapshots=true),
>     [ERROR] sonatype-nexus-snapshots
> (https://oss.sonatype.org/content/repositories/snapshots, releases=false,
> snapshots=true),
>     [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
> snapshots=false)
>     [ERROR] -> [Help 1]
>
>
> Thanks for any help!
>
> Best regards,
>
> Richard
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>