Note that there are some explanatory texts on larger screens.

plurals
  1. POGradle uploadArtifacts Fails When Specifying Group Property
    primarykey
    data
    text
    <p>I'm trying to do a gradle uploadArtifacts to upload to my nexus server and it works when my build.gradle is:</p> <pre><code>apply plugin: 'java' version = "1.0" uploadArchives { repositories { ivy { url "http://&lt;server&gt;/nexus/content/repositories/snapshots" } } } </code></pre> <p>However, if I specify a group to upload to, e.g. if I change my build.gradle to:</p> <pre><code>apply plugin: 'java' group = "test" // &lt;-- addition of group property version = "1.0" uploadArchives { repositories { ivy { url "http://&lt;server&gt;/nexus/content/repositories/snapshots" } } } </code></pre> <p>It fails saying:</p> <pre><code>Execution failed for task ':uploadArchives'. &gt; Could not publish configuration 'archives' &gt; java.io.IOException: Could not PUT 'http://&lt;server&gt;/nexus/content/repositories/snapshots/test/test-project/1.0/test-project-1.0.jar'. Received status code 400 from server: Bad Request </code></pre> <p>If I run with --debug the exception that I'm getting is:</p> <pre><code>Caused by: java.io.IOException: Could not PUT 'http://&lt;server&gt;/nexus/content/repositories/snapshots/test/test-project/1.0/test-project-1.0.jar'. Received status code 400 from server: Bad Request </code></pre> <p>I thought it might be a problem creating the directories on the server since this is a new artifact, but even if I manually create test/test-project/1.0, the upload still fails. (It doesn't fail without the group ID though which leads me to believe it's not a nexus problem).</p> <p>My Setup is:</p> <p>Gradle 1.5 Gradle build time: Wednesday, March 27, 2013 1:51:06 PM UTC Groovy: 1.8.6 Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012 Ivy: 2.2.0 JVM: 1.6.0_43 (Apple Inc. 20.14-b01-447) OS: Mac OS X 10.7.5 x86_64</p> <p>and</p> <p>Sonatype Nexus™ 2.3.0-04</p> <p>Has anyone seen this before or know what I might be doing wrong?</p> <p>Thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload