Version 4

    Status

    RESOLVED! The Nexus repository admins changed the configuration to support larger uploads, and then I was able to deploy snapshots successfully.

     

    Description of Problem

    When attempting to deploy ModeShape artifacts to the SNAPSHOT repository (per Maven Repository Test Plan - Deploying Snapshot Artifacts), Maven reported this error:

     

    [INFO] Error deploying artifact: Failed to transfer file: https://jbtest.sonatype.org/content/repositories/snapshots//org/modeshape/modeshape-graph/1.0.0-SNAPSHOT/modeshape-graph-1.0.0-SNAPSHOT.jar. Return code is: 413

     

    Steps to Reproduce

    1) Set up configuration per Maven Repository Test Plan - Test Configuration

    2) Download the ModeShape code (see http://www.jboss.org/modeshape/sourcecode.html)

    3) Perform the deploy:

     

    {noformat}mvn deploy -s ~/.m2/settings-jbtest.xml

        -DaltDeploymentRepository=jbtest::default::https://jbtest.sonatype.org/content/repositories/snapshots/{noformat}

     

    After uploading the POM for the parent project, Maven successfully deploys the artifacts (.pom, .jar, -sources.jar, -tests.jar, and -sources-tests.jar) for the first project (org.modeshape:modeshape-common:1.0.0-SNAPSHOT).  See https://jbtest.sonatype.org/content/repositories/snapshots/org/modeshape/modeshape-common/1.0.0-SNAPSHOT/

     

    However, as Maven continues to the second project (org.modeshape:modeshape-common:1.0.0-SNAPSHOT), it reports this error:

     

    {noformat}[INFO] [source:test-jar {execution: attach-sources}]

    [INFO] Building jar: /Users/rhauch/redhat/dev/java/modeshape/git-repo/modeshape-graph/target/modeshape-graph-1.0.0-SNAPSHOT-test-sources.jar

    [INFO] [install:install {execution: default-install}]

    [INFO] Installing /Users/rhauch/redhat/dev/java/modeshape/git-repo/modeshape-graph/target/modeshape-graph-1.0.0-SNAPSHOT.jar to /Users/rhauch/.m2/jbtest-repository/org/modeshape/modeshape-graph/1.0.0-SNAPSHOT/modeshape-graph-1.0.0-SNAPSHOT.jar

    [INFO] Installing /Users/rhauch/redhat/dev/java/modeshape/git-repo/modeshape-graph/target/modeshape-graph-1.0.0-SNAPSHOT-tests.jar to /Users/rhauch/.m2/jbtest-repository/org/modeshape/modeshape-graph/1.0.0-SNAPSHOT/modeshape-graph-1.0.0-SNAPSHOT-tests.jar

    [INFO] Installing /Users/rhauch/redhat/dev/java/modeshape/git-repo/modeshape-graph/target/modeshape-graph-1.0.0-SNAPSHOT-sources.jar to /Users/rhauch/.m2/jbtest-repository/org/modeshape/modeshape-graph/1.0.0-SNAPSHOT/modeshape-graph-1.0.0-SNAPSHOT-sources.jar

    [INFO] Installing /Users/rhauch/redhat/dev/java/modeshape/git-repo/modeshape-graph/target/modeshape-graph-1.0.0-SNAPSHOT-test-sources.jar to /Users/rhauch/.m2/jbtest-repository/org/modeshape/modeshape-graph/1.0.0-SNAPSHOT/modeshape-graph-1.0.0-SNAPSHOT-test-sources.jar

    [INFO] [deploy:deploy {execution: default-deploy}]

    [INFO] Using alternate deployment repository jbtest-snapshots::default::https://jbtest.sonatype.org/content/repositories/snapshots/

    [INFO] Retrieving previous build number from jbtest-snapshots

    [INFO] repository metadata for: 'snapshot org.modeshape:modeshape-graph:1.0.0-SNAPSHOT' could not be found on repository: jbtest-snapshots, so will be created

    Uploading: https://jbtest.sonatype.org/content/repositories/snapshots//org/modeshape/modeshape-graph/1.0.0-SNAPSHOT/modeshape-graph-1.0.0-SNAPSHOT.jar

    [INFO] ------------------------------------------------------------------------

    [ERROR] BUILD ERROR

    [INFO] ------------------------------------------------------------------------

    [INFO] Error deploying artifact: Failed to transfer file: https://jbtest.sonatype.org/content/repositories/snapshots//org/modeshape/modeshape-graph/1.0.0-SNAPSHOT/modeshape-graph-1.0.0-SNAPSHOT.jar. Return code is: 413

    {noformat}

     

    I even tried using a different HTTP client by running:

    {noformat}mvn deploy -s ~/.m2/settings-jbtest.xml -Dmaven.wagon.provider.http=httpclient -DaltDeploymentRepository=jbtest-snapshots::default::https://jbtest.sonatype.org/content/repositories/snapshots/{noformat}

     

    Also, there were these warnings in the output:

    {noformat}[INFO] [deploy:deploy {execution: default-deploy}]

    [INFO] Using alternate deployment repository jbtest-snapshots::default::https://jbtest.sonatype.org/content/repositories/snapshots/

    [INFO] Retrieving previous build number from jbtest-snapshots

    [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '61ec0b1d2186b45baaaee694903ea48f2433100f'; remote = '61d830b5aae44fa2a6919daee217af0ed1ebbaff' - RETRYING

    [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '61ec0b1d2186b45baaaee694903ea48f2433100f'; remote = '61d830b5aae44fa2a6919daee217af0ed1ebbaff' - IGNORING

    Uploading: https://jbtest.sonatype.org/content/repositories/snapshots//org/modeshape/modeshape-common/1.0.0-SNAPSHOT/modeshape-common-1.0.0-SNAPSHOT.jar

    174K uploaded  (modeshape-common-1.0.0-SNAPSHOT.jar)

    [INFO] Retrieving previous metadata from jbtest-snapshots

    [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'ef2d76057a33ddb51743e0ad02e7facf7c568788'; remote = 'f97443d1fe1a753763c20bcc8e2c412f024bce6a' - RETRYING

    [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'ef2d76057a33ddb51743e0ad02e7facf7c568788'; remote = 'f97443d1fe1a753763c20bcc8e2c412f024bce6a' - IGNORING

    [INFO] Uploading repository metadata for: 'artifact org.modeshape:modeshape-common'

    [INFO] Uploading project information for modeshape-common 1.0.0-SNAPSHOT

    [INFO] Retrieving previous metadata from jbtest-snapshots

    [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '61ec0b1d2186b45baaaee694903ea48f2433100f'; remote = '61d830b5aae44fa2a6919daee217af0ed1ebbaff' - RETRYING

    [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '61ec0b1d2186b45baaaee694903ea48f2433100f'; remote = '61d830b5aae44fa2a6919daee217af0ed1ebbaff' - IGNORING

    [INFO] Uploading repository metadata for: 'snapshot org.modeshape:modeshape-common:1.0.0-SNAPSHOT'

    [INFO] Retrieving previous build number from jbtest-snapshots

    [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '4cc74adb5a410529e035225db3025e36371d625a'; remote = 'ef28d341cd1c261a170379a37859572b0c516aa7' - RETRYING

    [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '4cc74adb5a410529e035225db3025e36371d625a'; remote = 'ef28d341cd1c261a170379a37859572b0c516aa7' - IGNORING

    Uploading: https://jbtest.sonatype.org/content/repositories/snapshots//org/modeshape/modeshape-common/1.0.0-SNAPSHOT/modeshape-common-1.0.0-SNAPSHOT-tests.jar

    122K uploaded  (modeshape-common-1.0.0-SNAPSHOT-tests.jar)

    [INFO] Retrieving previous build number from jbtest-snapshots

    [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '4cc74adb5a410529e035225db3025e36371d625a'; remote = 'ef28d341cd1c261a170379a37859572b0c516aa7' - RETRYING

    [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '4cc74adb5a410529e035225db3025e36371d625a'; remote = 'ef28d341cd1c261a170379a37859572b0c516aa7' - IGNORING

    Uploading: https://jbtest.sonatype.org/content/repositories/snapshots//org/modeshape/modeshape-common/1.0.0-SNAPSHOT/modeshape-common-1.0.0-SNAPSHOT-sources.jar

    179K uploaded  (modeshape-common-1.0.0-SNAPSHOT-sources.jar)

    [INFO] Retrieving previous build number from jbtest-snapshots

    [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '4cc74adb5a410529e035225db3025e36371d625a'; remote = 'ef28d341cd1c261a170379a37859572b0c516aa7' - RETRYING

    [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '4cc74adb5a410529e035225db3025e36371d625a'; remote = 'ef28d341cd1c261a170379a37859572b0c516aa7' - IGNORING

    Uploading: https://jbtest.sonatype.org/content/repositories/snapshots//org/modeshape/modeshape-common/1.0.0-SNAPSHOT/modeshape-common-1.0.0-SNAPSHOT-test-sources.jar

    89K uploaded  (modeshape-common-1.0.0-SNAPSHOT-test-sources.jar)

    {noformat}

     

    Suggested Solution

    Hopefully this requires just a simple configuration change.

     

    Other Notes

    None.