Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2743

karaf-maven-plugin can not create custom Karaf with Apache Camel

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.2, 4.0.0.M3
    • karaf
    • None
    • Fedora 20, Oracle JDK 1.7.0_51, Maven 3.0.4, karaf-maven-plugin 3.0.0

    Description

      This has already been posted to the mailing lists and seems like a fix is on the way. Just wanted to report it here as well so that people can find when this gets fixed easily. However, I am using more recent versions of camel for this.

      The following email in the mailing list addresses the same issue that I have been having:

      http://mail-archives.apache.org/mod_mbox/karaf-user/201401.mbox/%3C1389690368747-4030997.post@n3.nabble.com%3E

      I'll upload a sample project to reproduce this. When I do `mvn clean install`, I get the following stack trace in the maven output:

      [WARNING] could not resolve wrap:mvn:org.facebook4j/facebook4j-core/1.1.12
      org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find wrap:mvn:jar:org.facebook4j/facebook4j-core/1.1.12 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
              at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
              at org.apache.karaf.tooling.features.InstallKarsMojo.resolve(InstallKarsMojo.java:354)
              at org.apache.karaf.tooling.features.InstallKarsMojo.install(InstallKarsMojo.java:334)
              at org.apache.karaf.tooling.features.InstallKarsMojo.execute(InstallKarsMojo.java:278)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
              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:320)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
              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:290)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find wrap:mvn:jar:org.facebook4j/facebook4j-core/1.1.12 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
              at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
              at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
      

      Attachments

        1. karaf-camel-bug.tar.gz
          1 kB
          Partha Roy

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            partha.guha.roy Partha Roy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: