Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-1582

Deploy to Nexus 3.15 caused "Provided url doesn't respond neither to Nexus 2 nor to Nexus 3 endpoints"

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • Bug
    • Status: Done
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.15
    • None
    • Hide

      run the following command to deploy to Nexus 3.15:

      java -jar tutorial-component-0.0.1-SNAPSHOT.car deploy-to-nexus --url http://localhost:8081/ --repo snapshots --user admin --pass Talend123

       

      Show
      run the following command to deploy to Nexus 3.15: java -jar tutorial-component-0.0.1-SNAPSHOT.car deploy-to-nexus --url http://localhost:8081/ --repo snapshots --user admin --pass Talend123  
    • All
    • 00152331
    • Small

    Description

      Deploying a .car to Nexus 3.15 (or above version) fails with the following error:

      Checking for V3 version...
      Sending GET request to /service/rest/beta/repositories
      Exception in thread "main" java.lang.UnsupportedOperationException: Provided url doesn't respond neither to Nexus 2 nor to Nexus 3 endpoints.
      at org.talend.sdk.component.tools.exec.CarMain.getNexusVersion(CarMain.java:697)
      at org.talend.sdk.component.tools.exec.CarMain.uploadEntries(CarMain.java:487)
      at org.talend.sdk.component.tools.exec.CarMain.deployToNexus(CarMain.java:454)
      at org.talend.sdk.component.tools.exec.CarMain.main(CarMain.java:134)

      Looks like this is caused by the hard-coded "service/rest/beta/repositories" added to url in following code:

      https://github.com/Talend/component-runtime/blob/master/component-tools/src/main/java/org/talend/sdk/component/tools/exec/CarMain.java

      Deployment to Nexus 3.9 works.

      Salesforce Properties

        Case
        Case Origin
        Case Type
        Case Age
        00152331 Web Problem 38

        Attachments

          Activity

            People

              rmannibucau Romain Manni-Bucau
              aparks Aouali Parks
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: