Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-17287

Maven REST API upload results in empty pom

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.12.0
    • Fix Version/s: 3.12.1
    • Component/s: REST

      Description

      Uploading a maven jar and pom via a the UI or REST API results in and empty pom being created in NXRM (when a POM is provided and not being auto-generated).

      The following results in an empty pom in 3.12.0 but not in 3.11.0:

      http -a admin:admin123 -f POST ':8081/service/rest/beta/components?repository=maven-releases' maven2.groupId=com.example maven2.artifactId=test-app maven2.version=1.1 maven2.asset1@pom.xml maven2.asset1.extension=pom maven2.asset2@target/test-app-1.1.jar maven2.asset2.extension=jar
      

      In 3.12.0 the following correctly identifies the groupId, artifactId, version and creates the assets in the correct location, but the pom is still empty:

      http -a admin:admin123 -f POST ':8081/service/rest/beta/components?repository=maven-releases' maven2.asset1@pom.xml maven2.asset1.extension=pom maven2.asset2@target/test-app-1.1.jar maven2.asset2.extension=jar
      

        Attachments

          Activity

            People

            Assignee:
            mmartz Michael Martz
            Reporter:
            bradbeck Brad Beck
            Last Updated By:
            Peter Lynch
            Team:
            Nexus - UX
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title