Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3655

Deployment fails when a fabric project is deployed using fabric8-maven-plugin with fabric8.jolokiaUrl parameter for passing credentials.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.2.1
    • jboss-fuse-6.2
    • Fabric8 v1
    • None
    • % %
    • Hide
      • Due to security concern, user does not want to set fabric credentials in settings.xml.
      • Instead user want to pass them as parameters.
      • Extract the attached zip.
      • Setup a Fabric environment with following steps
        #Update ${karaf.home}/etc/user.properties with
        1. admin=admin,admin,manager,viewer,Monitor, Operator, Maintainer, Deployer, Auditor, Administrator, SuperUser
        2. fabric:create --wait-for-provisioning
        3. Once fabric environment is ready, open a new command prompt with directory location set to example attached. Execute below command
        4. mvn fabric8:deploy -Dfabric8.jolokiaUrl=http://admin:admin@localhost:8181/jolokia
        
      • In console following exception is received.
        [INFO] Using username: admin and password from provided jolokiaUrl option
        [INFO] Adding needed remote repository: http://repository.jboss.org/nexus/content/groups/fs-public/
        [INFO] Uploading file /path/to/conf-dummy/pom.xml
        Uploading: http://hostname:8181/maven/upload/sg/conf/dummy/1.2.0/dummy-1.2.0.pom
        [INFO] ------------------------------------------------------------------------
        [INFO] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] Total time: 01:23 min
        [INFO] Finished at: 2015-07-20T09:52:35+05:30
        [INFO] Final Memory: 30M/426M
        [INFO] ------------------------------------------------------------------------
        [ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:1.2.0.redhat-133:deploy (default-cli) on project dummy: Failed to deploy artifacts: Could not transfer artifact sg.conf:dummy:pom:1.2.0 from/to fabric8.upload.repo (http://dhcp193-124.pnq.redhat.com:8181/maven/upload/): Failed to transfer file: http://hostname:8181/maven/upload/sg/conf/dummy/1.2.0/dummy-1.2.0.pom. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
        
      Show
      Due to security concern, user does not want to set fabric credentials in settings.xml. Instead user want to pass them as parameters. Extract the attached zip. Setup a Fabric environment with following steps #Update ${karaf.home}/etc/user.properties with 1. admin=admin,admin,manager,viewer,Monitor, Operator, Maintainer, Deployer, Auditor, Administrator, SuperUser 2. fabric:create --wait- for -provisioning 3. Once fabric environment is ready, open a new command prompt with directory location set to example attached. Execute below command 4. mvn fabric8:deploy -Dfabric8.jolokiaUrl=http: //admin:admin@localhost:8181/jolokia In console following exception is received. [INFO] Using username: admin and password from provided jolokiaUrl option [INFO] Adding needed remote repository: http: //repository.jboss.org/nexus/content/groups/fs- public / [INFO] Uploading file /path/to/conf-dummy/pom.xml Uploading: http: //hostname:8181/maven/upload/sg/conf/dummy/1.2.0/dummy-1.2.0.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:23 min [INFO] Finished at: 2015-07-20T09:52:35+05:30 [INFO] Final Memory: 30M/426M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:1.2.0.redhat-133:deploy ( default -cli) on project dummy: Failed to deploy artifacts: Could not transfer artifact sg.conf:dummy:pom:1.2.0 from/to fabric8.upload.repo (http: //dhcp193-124.pnq.redhat.com:8181/maven/upload/): Failed to transfer file: http://hostname:8181/maven/upload/sg/conf/dummy/1.2.0/dummy-1.2.0.pom. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]

            hchirino Hiram Chirino
            rhn-support-cpandey Chandra Shekhar Pandey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: