0 Replies Latest reply on Oct 8, 2013 5:03 PM by chinthudas chandradas

    Parent POM resolution failing while using FAB install in offline mode

    chinthudas chandradas Newbie

      Hi,

       

      I am trying to install my fab bundle using the following command "install fab:mvn:org.apache.chemistry.opencmis/chemistry-opencmis-osgi-client/0.7.0" in jboss fuse 6.0. I have configured an offline repository (all bundles and its dependencies are available inside the offline repo) inside fuse installation at '/local_repo/common_repo'. This is how my org.ops4j.pax.url.mvn.cfg looks like -

       

      org.ops4j.pax.url.mvn.useFallbackRepositories=false

      org.ops4j.pax.url.mvn.defaultRepositories=file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository},file:${karaf.home}/local-repo@snapshots@id=karaf.local-repo,\

              file:${karaf.home}/local-repos/common-repo@snapshots@id=common-repo,\

              file:${karaf.home}/local-repos/sample-repo@snapshots@id=sample-repo

      org.ops4j.pax.url.mvn.disableAether=true

       

      However while doing the fab install the fab resolver correctly picks up the bundle to install from the offline repository, but while trying to resolve the parent POM it is not looking into the offline repository and instead tries to find the parent pom from the {user.home}/.m2/repository and again from maven remote repository. Below is the stack trace- My question is why fab cant resolve the parent POM dependency from the offline repo where it is available?

       

      2013-10-08 14:43:51,374 | ERROR | Thread-11        | FabResolver                      | ?                                   ? | 63 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Failed to read artifact descriptor for org.apache.chemistry.opencmis:chemistry-opencmis-osgi-client:pom:0.7.0

      2013-10-08 14:43:51,375 | ERROR | Thread-11        | FabResolver                      | ?                                   ? | 63 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.chemistry.opencmis:chemistry-opencmis-osgi-client:pom:0.7.0

      org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.chemistry.opencmis:chemistry-opencmis-osgi-client:pom:0.7.0

              at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:317)

              at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:172)

              at org.sonatype.aether.impl.internal.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:316)

              at org.fusesource.fabric.fab.MavenResolverImpl.collectDependencies(MavenResolverImpl.java:309)

              at org.fusesource.fabric.fab.MavenResolverImpl.collectDependenciesFromPom(MavenResolverImpl.java:291)

              at org.fusesource.fabric.fab.MavenResolverImpl.collectDependencies(MavenResolverImpl.java:263)

              at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.collectDependencyTree(FabResolverFactoryImpl.java:149)

              at org.fusesource.fabric.fab.osgi.internal.FabClassPathResolver.resolve(FabClassPathResolver.java:136)

              at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.configureInstructions(FabResolverFactoryImpl.java:283)

              at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.createInstructions(FabResolverFactoryImpl.java:275)

              at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.getInfo(FabResolverFactoryImpl.java:245)

              at org.fusesource.fabric.fab.osgi.internal.FabConnection.getInputStream(FabConnection.java:93)

              at org.apache.felix.framework.util.SecureAction.getURLConnectionInputStream(SecureAction.java:524)

              at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:165)

              at org.apache.felix.framework.cache.JarRevision.(Unknown Source)[:1.7.0]

              at sun.net.www.http.HttpClient.New(Unknown Source)[:1.7.0]

              at sun.net.www.http.HttpClient.New(Unknown Source)[:1.7.0]

              at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)[:1.7.0]

              at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)[:1.7.0]

              at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)[:1.7.0]

              at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)[:1.7.0]

              at java.net.HttpURLConnection.getResponseCode(Unknown Source)[:1.7.0]

              at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)[63:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

              ... 8 more

       

      thanks,

      Chinthu