• Help with libjsonp-java needed

    From Andreas Tille@21:1/5 to All on Sat Jan 16 20:40:02 2021
    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.

    Kind regards

    Andreas.


    [1] https://trends.debian.net/packages-with-smells-sorted-by-maintainer.txt
    [2] https://salsa.debian.org/java-team/libjsonp-java

    --
    http://fam-tille.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pierre Gruet@21:1/5 to All on Sat Jan 16 23:00:01 2021
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Tille@21:1/5 to Pierre Gruet on Sun Jan 17 09:20:02 2021
    On Sat, Jan 16, 2021 at 10:52:21PM +0100, Pierre Gruet wrote:

    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.

    Thanks a lot - this was one of my last packages featuring alioth in VCS
    fields. ;-)

    Kind regards

    Andreas.

    --
    http://fam-tille.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)