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

fabric8-maven-plugin 'branch' goal does not accept secure git repo connections

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.2
    • jboss-fuse-6.2
    • None
    • None
    • % %

    Description

      Trying to use the "branch" goal to merge profiles into a fuse git repo. However, when I pass it a gitUrl to clone from (e.g., an existing fuse fabric git repo), it complains about not being able to connect correctly because of authentication. Eg, here's how I pass the command:

      mvn compile -Dfabric8.branch.gitUrl=http://admin:admin@postamac.local:8181/git/fabric

      But jgit doesn't like passing in the un/pw into the URL like that.. i get this issue:
      [ERROR] Failed to command remote repo http://admin:admin@postamac.local:8181/git/fabric due: http://admin@postamac.local:8181/git/fabric: Authentication is required but no CredentialsProvider has been registered
      org.eclipse.jgit.api.errors.TransportException: http://admin@postamac.local:8181/git/fabric: Authentication is required but no CredentialsProvider has been registered
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
      at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
      at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
      at io.fabric8.maven.CreateBranchMojo.initGitRepo(CreateBranchMojo.java:169)
      at io.fabric8.maven.CreateBranchMojo.execute(CreateBranchMojo.java:107)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.eclipse.jgit.errors.TransportException: http://admin@postamac.local:8181/git/fabric: Authentication is required but no CredentialsProvider has been registered
      at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:498)
      at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309)
      at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
      at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
      at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1115)
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
      ... 25 more

      Attachments

        Activity

          People

            hchirino Hiram Chirino
            ceposta_jira christian posta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: