But there is no corresponding javax.servlet:servlet-api:2.2 in /usr/share/maven-repo. So if I try to build some Java library that depends on javax.servlet.jsp:jsp-api:2.2 with mvn-debian, I cannot do it due to wrong transitive dependency.
I've attached a test pom.xml to reproduce the bug:
ubuntu@build:~$ ls -la pom.xml
-rw-rw-r-- 1 ubuntu ubuntu 1185 Feb 13 10:12 pom.xml
ubuntu@build:~$
ubuntu@build:~$ mvn-debian -q generate-sources
find: ‘/usr/share/maven-repo/org/codehaus/plexus/plexus-compiler/*/*.jar’: No such file or directory
find: ‘/usr/share/maven-repo/org/codehaus/plexus/plexus-compilers/*/*.jar’: No such file or directory
find: ‘/usr/share/maven-repo/org/codehaus/plexus/plexus-containers/*/*.jar’: No such file or directory
[ERROR] Failed to execute goal on project yyy: Could not resolve dependencies for project xxx:yyy:pom:debian: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact javax.servlet:servlet-api:jar:2.2 has not been downloaded from it before. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
ubuntu@build:~$
I believe that javax.servlet.jsp:jsp-api:2.2 should list javax.servlet:servlet-api:3.0 as dependency, not 2.2
Hi,
Ubuntu 16.04.1 LTS, 0-java= 7.0.68- 1ubuntu0. 1
libservlet3.
In /usr/share/ maven-repo/ javax/servlet/ jsp/jsp- api/2.2/ jsp-api- 2.2.pom file that belongs to libservlet3.0-java there is the following dependency:
<dependency> javax.servlet< /groupId> servlet- api</artifactId > 2.2</version> compile< /scope>
<groupId>
<artifactId>
<version>
<scope>
</dependency>
But there is no corresponding javax.servlet: servlet- api:2.2 in /usr/share/ maven-repo. So if I try to build some Java library that depends on javax.servlet. jsp:jsp- api:2.2 with mvn-debian, I cannot do it due to wrong transitive dependency.
I've attached a test pom.xml to reproduce the bug:
ubuntu@build:~$ ls -la pom.xml maven-repo/ org/codehaus/ plexus/ plexus- compiler/ */*.jar’ : No such file or directory maven-repo/ org/codehaus/ plexus/ plexus- compilers/ */*.jar’ : No such file or directory maven-repo/ org/codehaus/ plexus/ plexus- containers/ */*.jar’ : No such file or directory /repo.maven. apache. org/maven2) in offline mode and the artifact javax.servlet: servlet- api:jar: 2.2 has not been downloaded from it before. -> [Help 1] cwiki.apache. org/confluence/ display/ MAVEN/Dependenc yResolutionExce ption
-rw-rw-r-- 1 ubuntu ubuntu 1185 Feb 13 10:12 pom.xml
ubuntu@build:~$
ubuntu@build:~$ mvn-debian -q generate-sources
find: ‘/usr/share/
find: ‘/usr/share/
find: ‘/usr/share/
[ERROR] Failed to execute goal on project yyy: Could not resolve dependencies for project xxx:yyy:pom:debian: Cannot access central (https:/
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://
ubuntu@build:~$
I believe that javax.servlet. jsp:jsp- api:2.2 should list javax.servlet: servlet- api:3.0 as dependency, not 2.2