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

JBDS 9 with java 8 tries to download maven dependencies with version 2.0.7 in offline environment.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • jboss-fuse-6.2.1
    • Offline Repo, Prod
    • None
    • % %
    • Hide
      • Download offline repository from https://access.redhat.com/solutions/1599973.
      • Run attached simple project with JBDS9 and java8 in offline environment.
      • It try to download maven dependencies with version 2.0.7, ideally it should not as we are using offline repository.
      • In offline environment, following error is received while building project:
         Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.3.7 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-model:jar:2.0.7, org.apache.maven:maven-project:jar:2.0.7, org.apache.maven:maven-plugin-registry:jar:2.0.7, org.apache.maven:maven-plugin-api:jar:2.0.7: Could not transfer artifact org.apache.maven:maven-model:jar:2.0.7 from/to release.fusesource.org (http://repo.fusesource.com/nexus/content/repositories/releases): repo.fusesource.com: unknown error: Unknown host repo.fusesource.com: unknown error -> [Help 2]
        [ERROR]     Unknown packaging: bundle @ line 8, column 14
        
      • I checked in a system with internet availability and found that it tries to download following maven dependency:
        [root@dhcp3-200 maven]# cd /home/cpandey/.m2/repository/org/apache/maven/maven-project/2.0.7/
        [root@dhcp3-200 2.0.7]# ls -ltr
        total 132
        -rw-r--r--. 1 cpandey cpandey     40 Jun  4  2009 maven-project-2.0.7.pom.sha1
        -rw-r--r--. 1 cpandey cpandey   2637 Jun  4  2009 maven-project-2.0.7.pom
        -rw-rw-r--. 1 cpandey cpandey 116546 Apr 20 12:05 maven-project-2.0.7.jar
        -rw-rw-r--. 1 cpandey cpandey     40 Apr 20 12:05 maven-project-2.0.7.jar.sha1
        -rw-rw-r--. 1 cpandey cpandey    166 Apr 20 12:05 _remote.repositories
        
        [root@dhcp3-200 2.0.7]# ls -ltr
        total 104
        -rw-r--r--. 1 cpandey cpandey    40 Jun  8  2009 maven-model-2.0.7.pom.sha1
        -rw-r--r--. 1 cpandey cpandey  3047 Jun  8  2009 maven-model-2.0.7.pom
        -rw-rw-r--. 1 cpandey cpandey 86438 Apr 20 12:05 maven-model-2.0.7.jar
        -rw-rw-r--. 1 cpandey cpandey    40 Apr 20 12:05 maven-model-2.0.7.jar.sha1
        -rw-rw-r--. 1 cpandey cpandey   164 Apr 20 12:05 _remote.repositories
        
        [root@dhcp3-200 2.0.7]# ls -ltr
        total 48
        -rw-r--r--. 1 cpandey cpandey    40 Jun  8  2009 maven-plugin-registry-2.0.7.pom.sha1
        -rw-r--r--. 1 cpandey cpandey  1946 Jun  8  2009 maven-plugin-registry-2.0.7.pom
        -rw-rw-r--. 1 cpandey cpandey 28925 Apr 20 12:05 maven-plugin-registry-2.0.7.jar
        -rw-rw-r--. 1 cpandey cpandey    40 Apr 20 12:05 maven-plugin-registry-2.0.7.jar.sha1
        -rw-rw-r--. 1 cpandey cpandey   174 Apr 20 12:05 _remote.repositories
        
        [root@dhcp3-200 2.0.7]# ls -ltr
        total 32
        -rw-r--r--. 1 cpandey cpandey    40 Nov 16  2009 maven-plugin-api-2.0.7.pom.sha1
        -rw-r--r--. 1 cpandey cpandey  1455 Nov 16  2009 maven-plugin-api-2.0.7.pom
        -rw-rw-r--. 1 cpandey cpandey 12860 Apr 20 12:05 maven-plugin-api-2.0.7.jar
        -rw-rw-r--. 1 cpandey cpandey    40 Apr 20 12:05 maven-plugin-api-2.0.7.jar.sha1
        -rw-rw-r--. 1 cpandey cpandey   169 Apr 20 12:05 _remote.repositories
        
        
      • When checked with JBDS 8.1 and java7, I don't see these jar getting download and build is successful.
      Show
      Download offline repository from https://access.redhat.com/solutions/1599973 . Run attached simple project with JBDS9 and java8 in offline environment. It try to download maven dependencies with version 2.0.7, ideally it should not as we are using offline repository. In offline environment, following error is received while building project: Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.3.7 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-model:jar:2.0.7, org.apache.maven:maven-project:jar:2.0.7, org.apache.maven:maven-plugin-registry:jar:2.0.7, org.apache.maven:maven-plugin-api:jar:2.0.7: Could not transfer artifact org.apache.maven:maven-model:jar:2.0.7 from/to release.fusesource.org (http: //repo.fusesource.com/nexus/content/repositories/releases): repo.fusesource.com: unknown error: Unknown host repo.fusesource.com: unknown error -> [Help 2] [ERROR] Unknown packaging: bundle @ line 8, column 14 I checked in a system with internet availability and found that it tries to download following maven dependency: [root@dhcp3-200 maven]# cd /home/cpandey/.m2/repository/org/apache/maven/maven-project/2.0.7/ [root@dhcp3-200 2.0.7]# ls -ltr total 132 -rw-r--r--. 1 cpandey cpandey 40 Jun 4 2009 maven-project-2.0.7.pom.sha1 -rw-r--r--. 1 cpandey cpandey 2637 Jun 4 2009 maven-project-2.0.7.pom -rw-rw-r--. 1 cpandey cpandey 116546 Apr 20 12:05 maven-project-2.0.7.jar -rw-rw-r--. 1 cpandey cpandey 40 Apr 20 12:05 maven-project-2.0.7.jar.sha1 -rw-rw-r--. 1 cpandey cpandey 166 Apr 20 12:05 _remote.repositories [root@dhcp3-200 2.0.7]# ls -ltr total 104 -rw-r--r--. 1 cpandey cpandey 40 Jun 8 2009 maven-model-2.0.7.pom.sha1 -rw-r--r--. 1 cpandey cpandey 3047 Jun 8 2009 maven-model-2.0.7.pom -rw-rw-r--. 1 cpandey cpandey 86438 Apr 20 12:05 maven-model-2.0.7.jar -rw-rw-r--. 1 cpandey cpandey 40 Apr 20 12:05 maven-model-2.0.7.jar.sha1 -rw-rw-r--. 1 cpandey cpandey 164 Apr 20 12:05 _remote.repositories [root@dhcp3-200 2.0.7]# ls -ltr total 48 -rw-r--r--. 1 cpandey cpandey 40 Jun 8 2009 maven-plugin-registry-2.0.7.pom.sha1 -rw-r--r--. 1 cpandey cpandey 1946 Jun 8 2009 maven-plugin-registry-2.0.7.pom -rw-rw-r--. 1 cpandey cpandey 28925 Apr 20 12:05 maven-plugin-registry-2.0.7.jar -rw-rw-r--. 1 cpandey cpandey 40 Apr 20 12:05 maven-plugin-registry-2.0.7.jar.sha1 -rw-rw-r--. 1 cpandey cpandey 174 Apr 20 12:05 _remote.repositories [root@dhcp3-200 2.0.7]# ls -ltr total 32 -rw-r--r--. 1 cpandey cpandey 40 Nov 16 2009 maven-plugin-api-2.0.7.pom.sha1 -rw-r--r--. 1 cpandey cpandey 1455 Nov 16 2009 maven-plugin-api-2.0.7.pom -rw-rw-r--. 1 cpandey cpandey 12860 Apr 20 12:05 maven-plugin-api-2.0.7.jar -rw-rw-r--. 1 cpandey cpandey 40 Apr 20 12:05 maven-plugin-api-2.0.7.jar.sha1 -rw-rw-r--. 1 cpandey cpandey 169 Apr 20 12:05 _remote.repositories When checked with JBDS 8.1 and java7, I don't see these jar getting download and build is successful.

      • Testing in a offline environment with Fuse 6.2.1 offline repository from https://access.redhat.com/solutions/1599973.
      • A simple Fuse project when built within JBDS 9.0 GA with java8 in offline mode tries to download maven repository with version 2.0.7. Ultimately fails as 2.0.7 is not available in offline repository and internet is not available.
      • Same project when built with JBDS 8.1 and java7 in offline mode with offline repository as above, is able to build successfully as 2.0.6 maven dependencies are already available in offline repo, thus no need to download.
      • Why JBDS 9.0 is searching for maven dependencies with 2.0.7 version ?

            jochrist@redhat.com Jonathan Christison
            rhn-support-cpandey Chandra Shekhar Pandey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: