[jbosstools-issues] [JBoss JIRA] (JBDS-3844) JBDS 9 with java 8 tries to download maven dependencies with version 2.0.7 in offline environment.

Chandra Shekhar Pandey (JIRA) issues at jboss.org
Wed Apr 20 04:02:01 EDT 2016


     [ https://issues.jboss.org/browse/JBDS-3844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chandra Shekhar Pandey updated JBDS-3844:
-----------------------------------------
    Steps to Reproduce: 
- 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:
{code}
 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
{code}
- I checked in a system with internet availability and found that it tries to download following maven dependency:
{code}
[root at dhcp3-200 maven]# cd /home/cpandey/.m2/repository/org/apache/maven/maven-project/2.0.7/
[root at 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 at 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 at 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 at 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

{code}
- When checked with JBDS 8.1 and java7, I don't see these jar getting download and build is successful.


  was:
- 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:
{code}
[root at dhcp3-200 maven]# cd /home/cpandey/.m2/repository/org/apache/maven/maven-project/2.0.7/
[root at 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 at 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 at 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 at 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

{code}
- When checked with JBDS 8.1 and java7, I don't see these jar getting download and build is successful.




> JBDS 9 with java 8 tries to download maven dependencies with version 2.0.7 in offline environment.
> --------------------------------------------------------------------------------------------------
>
>                 Key: JBDS-3844
>                 URL: https://issues.jboss.org/browse/JBDS-3844
>             Project: Developer Studio (JBoss Developer Studio)
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 9.0.0.GA
>         Environment: ALL
>            Reporter: Chandra Shekhar Pandey
>
> - 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 ?



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list