Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #12040

Re: Help with libjsonp-java needed

From Pierre Gruet <pgtdebian@free.fr>
Newsgroups linux.debian.maint.java
Subject Re: Help with libjsonp-java needed
Date 2021-01-16 23:00 +0100
Message-ID <By1LX-7BV-5@gated-at.bofh.it> (permalink)
References <BxZAu-6pp-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Andreas,

Le 16/01/2021 à 20:31, Andreas Tille a écrit :
> Hi,
> 
> I'm not sure whether this is the right moment to update libjsonp-java but
> I just stumbled upon it on the "stinks" page[1] and I'd love to make those
> packages I'm responsible for non-stinky. ;-)  Thus I refreshed the packaging
> in Git[2] but the build time test issue I observed some time ago remains
> and I simply have no idea how to fix it:
> 
> 
> ...
> [INFO] JSR 374 (JSON Processing) Default Provider ......... FAILURE [  0.012 s]
> [INFO] JSR 374 (JSON Processing) Media for JAX-RS 1.1 ..... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  5.806 s
> [INFO] Finished at: 2021-01-16T17:36:28Z
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project javax.json: Could not resolve dependencies for project org.glassfish:javax.json:bundle:1.1.2: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact javax.json:javax.json-api:jar:debian 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 :javax.json
> 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=/build/libjsonp-java-1.1.2 -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/build/libjsonp-java-1.1.2/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/build/libjsonp-java-1.1.2/debian -Dmaven.repo.local=/build/libjsonp-java-1.1.2/debian/maven-repo install javadoc:jar javadoc:aggregate -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
> 
> 
> I wonder whether somebody might have some clue.

Yes, the issue is the version number of the dependency javax.json-api 
was hardcoded in the patch 03-bundle-dependencies -- this thus broke 
when the last upstream version was adopted. I have pushed a correction 
to Salsa.

To have the package build, I also ignored the module jaxrs-1x in 
d/libjsonp-java.poms (pushed to Salsa as well). I think this is safe 
because you already ignored the jaxrs module, which is very close. If 
you need it, just revert my last commit, but then you will need to add a 
dependency on libjsr311-api-java and to modify some lines in 
jaxrs-1x/pom.xml.

> 
> Kind regards
> 
>        Andreas.
> 

All the best,
Pierre

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Help with libjsonp-java needed Andreas Tille <andreas@an3as.eu> - 2021-01-16 20:40 +0100
  Re: Help with libjsonp-java needed Pierre Gruet <pgtdebian@free.fr> - 2021-01-16 23:00 +0100
    Re: Help with libjsonp-java needed Andreas Tille <andreas@an3as.eu> - 2021-01-17 09:20 +0100

csiph-web