Bug#1002284: jersey1: FTBFS: [ERROR] Failed to execute goal on project jersey-servlet: Could not resolve dependencies for project com.sun.jersey:jersey-servlet:jar:1.19.3: Cannot access repository.jboss.org (http://repository.jboss.org/nexus/content/groups/public/) in offline mode and the artifact javax.servlet:javax.servlet-api:jar:3.1 has not been downloaded from it before. -> [Help 1]

Lucas Nussbaum lucas at debian.org
Tue Dec 21 16:45:51 GMT 2021


Source: jersey1
Version: 1.19.3-6
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> # Generate the classes manually since the maven-jaxb-plugin isn't in Debian
> /usr/bin/xjc -p com.sun.research.ws.wadl -d jersey-server/src/main/java -catalog jersey-server/etc/catalog.xml jersey-server/etc/wadl.xsd
> Cannot find CatalogManager.properties
> parsing a schema...
> compiling a schema...
> com/sun/research/ws/wadl/Application.java
> com/sun/research/ws/wadl/Doc.java
> com/sun/research/ws/wadl/Grammars.java
> com/sun/research/ws/wadl/HTTPMethods.java
> com/sun/research/ws/wadl/Include.java
> com/sun/research/ws/wadl/Link.java
> com/sun/research/ws/wadl/Method.java
> com/sun/research/ws/wadl/ObjectFactory.java
> com/sun/research/ws/wadl/Option.java
> com/sun/research/ws/wadl/Param.java
> com/sun/research/ws/wadl/ParamStyle.java
> com/sun/research/ws/wadl/Representation.java
> com/sun/research/ws/wadl/Request.java
> com/sun/research/ws/wadl/Resource.java
> com/sun/research/ws/wadl/ResourceType.java
> com/sun/research/ws/wadl/Resources.java
> com/sun/research/ws/wadl/Response.java
> com/sun/research/ws/wadl/package-info.java
> dh_auto_build
> 	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode package -DskipTests -Dnotimestamp=true -Dlocale=en_US
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for com.sun.jersey.contribs:jersey-guice:jar:1.19.3
> [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 138, column 12
> [WARNING] 
> [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
> [WARNING] 
> [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
> [WARNING] 
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] jersey-project                                                     [pom]
> [INFO] jersey-core                                                        [jar]
> [INFO] jersey-server                                                      [jar]
> [INFO] jersey-servlet                                                     [jar]
> [INFO] jersey-client                                                      [jar]
> [INFO] jersey-guice                                                       [jar]
> [INFO] Contributions to Jersey                                            [pom]
> [INFO] jersey-atom                                                        [jar]
> [INFO] jersey-fastinfoset                                                 [jar]
> [INFO] jersey-json                                                        [jar]
> [INFO] 
> [INFO] -------------------< com.sun.jersey:jersey-project >--------------------
> [INFO] Building jersey-project 1.19.3                                    [1/10]
> [INFO] --------------------------------[ pom ]---------------------------------
> [INFO] 
> [INFO] --- maven-bundle-plugin:3.5.1:bundle (osgi-bundle) @ jersey-project ---
> [WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle]
> [INFO] 
> [INFO] ---------------------< com.sun.jersey:jersey-core >---------------------
> [INFO] Building jersey-core 1.19.3                                       [2/10]
> [INFO] --------------------------------[ jar ]---------------------------------
> [WARNING] The artifact org.osgi:org.osgi.core:jar:debian has been relocated to org.osgi:osgi.core:jar:debian
> [INFO] 
> [INFO] --- build-helper-maven-plugin:3.0.0:add-source (add-source) @ jersey-core ---
> [INFO] Source directory: /<<PKGBUILDDIR>>/jersey-core/target/generated-sources/rsrc-gen added.
> [INFO] 
> [INFO] --- istack-commons-maven-plugin:3.0.6:rs-gen (default) @ jersey-core ---
> [INFO] Resources:
> [INFO] com/sun/jersey/impl/api.properties
> [INFO] com/sun/jersey/impl/spi.properties
> [INFO] com/sun/jersey/impl/impl.properties
> [INFO] Processing /<<PKGBUILDDIR>>/jersey-core/src/main/resources/com/sun/jersey/impl/api.properties
> [INFO] Processing /<<PKGBUILDDIR>>/jersey-core/src/main/resources/com/sun/jersey/impl/spi.properties
> [INFO] Processing /<<PKGBUILDDIR>>/jersey-core/src/main/resources/com/sun/jersey/impl/impl.properties
> [INFO] 
> [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ jersey-core ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] Copying 5 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ jersey-core ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 179 source files to /<<PKGBUILDDIR>>/jersey-core/target/classes
> Use of target 1.6 is no longer supported, switching to 7
> Use of source 1.6 is no longer supported, switching to 7
> [INFO] /<<PKGBUILDDIR>>/jersey-core/src/main/java/com/sun/jersey/core/impl/provider/xml/SecureSAXParserFactory.java: Some input files use or override a deprecated API.
> [INFO] /<<PKGBUILDDIR>>/jersey-core/src/main/java/com/sun/jersey/core/impl/provider/xml/SecureSAXParserFactory.java: Recompile with -Xlint:deprecation for details.
> [INFO] /<<PKGBUILDDIR>>/jersey-core/src/main/java/com/sun/jersey/core/header/LinkHeader.java: Some input files use unchecked or unsafe operations.
> [INFO] /<<PKGBUILDDIR>>/jersey-core/src/main/java/com/sun/jersey/core/header/LinkHeader.java: Recompile with -Xlint:unchecked for details.
> [INFO] 
> [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ jersey-core ---
> [INFO] Not copying test resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ jersey-core ---
> [INFO] Not compiling test sources
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.22.3:test (default-test) @ jersey-core ---
> [INFO] Tests are skipped.
> [INFO] 
> [INFO] --- maven-jar-plugin:3.1.2:jar (default-jar) @ jersey-core ---
> [INFO] Building jar: /<<PKGBUILDDIR>>/jersey-core/target/jersey-core-1.19.3.jar
> [INFO] 
> [INFO] --- maven-bundle-plugin:3.5.1:bundle (osgi-bundle) @ jersey-core ---
> [WARNING] The artifact org.osgi:org.osgi.core:jar:debian has been relocated to org.osgi:osgi.core:jar:debian
> [INFO] 
> [INFO] --------------------< com.sun.jersey:jersey-server >--------------------
> [INFO] Building jersey-server 1.19.3                                     [3/10]
> [INFO] --------------------------------[ jar ]---------------------------------
> [WARNING] The artifact org.osgi:org.osgi.core:jar:debian has been relocated to org.osgi:osgi.core:jar:debian
> [INFO] 
> [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ jersey-server ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 9 resources
> [INFO] Copying 1 resource
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ jersey-server ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 306 source files to /<<PKGBUILDDIR>>/jersey-server/target/classes
> Use of target 1.6 is no longer supported, switching to 7
> Use of source 1.6 is no longer supported, switching to 7
> [INFO] /<<PKGBUILDDIR>>/jersey-server/src/main/java/com/sun/jersey/server/impl/application/WebApplicationImpl.java: Some input files use or override a deprecated API.
> [INFO] /<<PKGBUILDDIR>>/jersey-server/src/main/java/com/sun/jersey/server/impl/application/WebApplicationImpl.java: Recompile with -Xlint:deprecation for details.
> [INFO] /<<PKGBUILDDIR>>/jersey-server/src/main/java/com/sun/jersey/server/wadl/generators/AbstractWadlGeneratorGrammarGenerator.java: Some input files use unchecked or unsafe operations.
> [INFO] /<<PKGBUILDDIR>>/jersey-server/src/main/java/com/sun/jersey/server/wadl/generators/AbstractWadlGeneratorGrammarGenerator.java: Recompile with -Xlint:unchecked for details.
> [INFO] 
> [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ jersey-server ---
> [INFO] Not copying test resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ jersey-server ---
> [INFO] Not compiling test sources
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.22.3:test (default-test) @ jersey-server ---
> [INFO] Tests are skipped.
> [INFO] 
> [INFO] --- maven-jar-plugin:3.1.2:jar (default-jar) @ jersey-server ---
> [INFO] Building jar: /<<PKGBUILDDIR>>/jersey-server/target/jersey-server-1.19.3.jar
> [INFO] 
> [INFO] --- maven-bundle-plugin:3.5.1:bundle (osgi-bundle) @ jersey-server ---
> [WARNING] The artifact org.osgi:org.osgi.core:jar:debian has been relocated to org.osgi:osgi.core:jar:debian
> [WARNING] Bundle com.sun.jersey:jersey-server:jar:1.19.3 : Unused Import-Package instructions: [javax.inject.*, javax.mail.*] 
> [INFO] 
> [INFO] -------------------< com.sun.jersey:jersey-servlet >--------------------
> [INFO] Building jersey-servlet 1.19.3                                    [4/10]
> [INFO] --------------------------------[ jar ]---------------------------------
> [WARNING] The POM for javax.servlet:javax.servlet-api:jar:3.1 is missing, no dependency information available
> [WARNING] The artifact org.osgi:org.osgi.core:jar:debian has been relocated to org.osgi:osgi.core:jar:debian
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary for jersey-project 1.19.3:
> [INFO] 
> [INFO] jersey-project ..................................... SUCCESS [  0.030 s]
> [INFO] jersey-core ........................................ SUCCESS [  3.058 s]
> [INFO] jersey-server ...................................... SUCCESS [  1.858 s]
> [INFO] jersey-servlet ..................................... FAILURE [  0.016 s]
> [INFO] jersey-client ...................................... SKIPPED
> [INFO] jersey-guice ....................................... SKIPPED
> [INFO] Contributions to Jersey ............................ SKIPPED
> [INFO] jersey-atom ........................................ SKIPPED
> [INFO] jersey-fastinfoset ................................. SKIPPED
> [INFO] jersey-json ........................................ SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  5.485 s
> [INFO] Finished at: 2021-12-20T18:57:32Z
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project jersey-servlet: Could not resolve dependencies for project com.sun.jersey:jersey-servlet:jar:1.19.3: Cannot access repository.jboss.org (http://repository.jboss.org/nexus/content/groups/public/) in offline mode and the artifact javax.servlet:javax.servlet-api:jar:3.1 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
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <args> -rf :jersey-servlet
> dh_auto_build: error: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode package -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
> make[1]: *** [debian/rules:9: override_dh_auto_build] Error 25


The full build log is available from:
http://qa-logs.debian.net/2021/12/20/jersey1_1.19.3-6_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the pkg-java-maintainers mailing list