Re: Attempt to upgrade libjsonp-java - help needed
Hi Olivier, On Thu, Jan 24, 2019 at 10:59:33PM +0100, Olivier Sallou wrote: > > > > should be able to add in pom.xml > > > > > > > > > true > > > > > > > This works (Emmanuel, just leaving out the -doc package is not > > sufficient in this case). > > > > Unfortunately I'm running into the next issue now: > > > > ... > > [WARNING] Failed to retrieve plugin descriptor for > > org.codehaus.mojo:build-helper-maven-plugin:3.0.0: Plugin > > org.codehaus.mojo:build-helper-maven-plugin:3.0.0 > > > org.codehaus.mojo:build-helper-maven-plugin:3.0.0 is missing (i suppose, i > cannot read code for the moment) in the build deoendencies. Looks to be > https://packages.debian.org/source/jessie/build-helper-maven-plugin > > or one of its dependencies could not be resolved: Cannot access central > (https://repo.maven.apache.org/maven2) in offline mode and the artifact > org.codehaus.mojo:build-helper-maven-plugin:jar:3.0.0 has not been downloaded > from it before. I confirm this warning goes away with the following patch $ git diff diff --git a/debian/control b/debian/control index acd672c..b7e9449 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,8 @@ Build-Depends-Indep: libmaven-bundle-plugin-java, libmaven-dependency-plugin-java, libmaven-javadoc-plugin-java, libmaven-source-plugin-java, - default-jdk-doc + default-jdk-doc, + libbuild-helper-maven-plugin-java Standards-Version: 4.3.0 Vcs-Browser: https://salsa.debian.org/java-team/libjsonp-java Vcs-Git: https://salsa.debian.org/java-team/libjsonp-java.git ... but this does not lead to a successful build and most of the issues - specifically the remaining error - remain. Any further hints? Kind regards Andreas. > > [INFO] > > [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ json --- > > [INFO] > > [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ json --- > > [INFO] Installing /build/libjsonp-java-1.1.2/pom.xml to > > /build/libjsonp-java-1.1.2/debian/maven-repo/org/glassfish/json/1.1.2/json-1.1.2.pom > > [INFO] > > [INFO] --- maven-javadoc-plugin:3.0.1:jar (default-cli) @ json --- > > [INFO] Skipping javadoc generation > > [INFO] > > [INFO] -< javax.json:javax.json-api > > >-- > > [INFO] Building JSR 374 (JSON Processing) API 1.1.2 > > [2/4] > > [INFO] ---[ bundle > > ]--- > > [INFO] > > [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ > > javax.json-api --- > > [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy > > filtered resources, i.e. build is platform dependent! > > [INFO] skip non existing resourceDirectory > > /build/libjsonp-java-1.1.2/api/src/main/resources > > [INFO] > > [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ > > javax.json-api --- > > [INFO] Changes detected - recompiling the module! > > [WARNING] File encoding has not been set, using platform encoding > > ANSI_X3.4-1968, i.e. build is platform dependent! > > [INFO] Compiling 34 source files to > > /build/libjsonp-java-1.1.2/api/target/classes > > [WARNING] > > /build/libjsonp-java-1.1.2/api/src/main/java/javax/json/spi/JsonProvider.java:[97,40] > > newInstance() in java.lang.Class has been deprecated > > [INFO] > > [INFO] --- maven-resources-plugin:3.1.0:testResources > > (default-testResources) @ javax.json-api --- > > [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy > > filtered resources, i.e. build is platform dependent! > > [INFO] skip non existing resourceDirectory > > /build/libjsonp-java-1.1.2/api/src/test/resources > > [INFO] > > [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ > > javax.json-api --- > > [INFO] No sources to compile > > [INFO] > > [INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ > > javax.json-api --- > > [INFO] Tests are skipped. > > [INFO] > > [INFO] --- maven-bundle-plugin:3.5.1:bundle (default-bundle) @ > > javax.json-api --- > > [INFO] > > [INFO] --- maven-javadoc-plugin:3.0.1:jar (attach-javadocs) @ > > javax.json-api --- > > [INFO] Skipping javadoc generation > > [INFO] > > [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ > > javax.json-api --- > > [INFO] Building jar: > > /build/libjsonp-java-1.1.2/api/target/javax.json-api-1.1.2-sources.jar > > [INFO] > > [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ > > javax.json-api --- > > [INFO] Installing > > /build/libjsonp-java-1.1.2/api/target/javax.json-api-1.1.2.jar to > > /build/libjsonp-java-1.1.2/debian/maven-repo/javax/json/javax.json-api/1.1.2/javax.json-api-1.1.2.jar > > [INFO] Installing /build/libjsonp-java-1.1.2/api/pom.xml to > > /build/libjsonp-java-1.1.2/debian/maven-repo/javax/json/javax.
Re: Attempt to upgrade libjsonp-java - help needed
On 1/25/19 9:45 AM, Andreas Tille wrote: > Hi Olivier, > > On Thu, Jan 24, 2019 at 10:59:33PM +0100, Olivier Sallou wrote: should be able to add in pom.xml true >>> This works (Emmanuel, just leaving out the -doc package is not >>> sufficient in this case). >>> >>> Unfortunately I'm running into the next issue now: >>> >>> ... >>> [WARNING] Failed to retrieve plugin descriptor for >>> org.codehaus.mojo:build-helper-maven-plugin:3.0.0: Plugin >>> org.codehaus.mojo:build-helper-maven-plugin:3.0.0 >> >> org.codehaus.mojo:build-helper-maven-plugin:3.0.0 is missing (i suppose, i >> cannot read code for the moment) in the build deoendencies. Looks to be >> https://packages.debian.org/source/jessie/build-helper-maven-plugin >> >> or one of its dependencies could not be resolved: Cannot access central >> (https://repo.maven.apache.org/maven2) in offline mode and the artifact >> org.codehaus.mojo:build-helper-maven-plugin:jar:3.0.0 has not been >> downloaded from it before. > I confirm this warning goes away with the following patch > > $ git diff > diff --git a/debian/control b/debian/control > index acd672c..b7e9449 100644 > --- a/debian/control > +++ b/debian/control > @@ -10,7 +10,8 @@ Build-Depends-Indep: libmaven-bundle-plugin-java, > libmaven-dependency-plugin-java, > libmaven-javadoc-plugin-java, > libmaven-source-plugin-java, > - default-jdk-doc > + default-jdk-doc, > + libbuild-helper-maven-plugin-java > Standards-Version: 4.3.0 > Vcs-Browser: https://salsa.debian.org/java-team/libjsonp-java > Vcs-Git: https://salsa.debian.org/java-team/libjsonp-java.git > > > ... but this does not lead to a successful build and most of the > issues - specifically the remaining error - remain. > > Any further hints? > > Kind regards > > Andreas. > >>> [INFO] >>> [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ json --- >>> [INFO] >>> [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ json --- >>> [INFO] Installing /build/libjsonp-java-1.1.2/pom.xml to >>> /build/libjsonp-java-1.1.2/debian/maven-repo/org/glassfish/json/1.1.2/json-1.1.2.pom >>> [INFO] >>> [INFO] --- maven-javadoc-plugin:3.0.1:jar (default-cli) @ json --- >>> [INFO] Skipping javadoc generation >>> [INFO] >>> [INFO] -< javax.json:javax.json-api >>> >-- >>> [INFO] Building JSR 374 (JSON Processing) API 1.1.2 >>> [2/4] >>> [INFO] ---[ bundle >>> ]--- >>> [INFO] >>> [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ >>> javax.json-api --- >>> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy >>> filtered resources, i.e. build is platform dependent! >>> [INFO] skip non existing resourceDirectory >>> /build/libjsonp-java-1.1.2/api/src/main/resources >>> [INFO] >>> [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ >>> javax.json-api --- >>> [INFO] Changes detected - recompiling the module! >>> [WARNING] File encoding has not been set, using platform encoding >>> ANSI_X3.4-1968, i.e. build is platform dependent! >>> [INFO] Compiling 34 source files to >>> /build/libjsonp-java-1.1.2/api/target/classes >>> [WARNING] >>> /build/libjsonp-java-1.1.2/api/src/main/java/javax/json/spi/JsonProvider.java:[97,40] >>> newInstance() in java.lang.Class has been deprecated >>> [INFO] >>> [INFO] --- maven-resources-plugin:3.1.0:testResources >>> (default-testResources) @ javax.json-api --- >>> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy >>> filtered resources, i.e. build is platform dependent! >>> [INFO] skip non existing resourceDirectory >>> /build/libjsonp-java-1.1.2/api/src/test/resources >>> [INFO] >>> [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ >>> javax.json-api --- >>> [INFO] No sources to compile >>> [INFO] >>> [INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ >>> javax.json-api --- >>> [INFO] Tests are skipped. >>> [INFO] >>> [INFO] --- maven-bundle-plugin:3.5.1:bundle (default-bundle) @ >>> javax.json-api --- >>> [INFO] >>> [INFO] --- maven-javadoc-plugin:3.0.1:jar (attach-javadocs) @ >>> javax.json-api --- >>> [INFO] Skipping javadoc generation >>> [INFO] >>> [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ >>> javax.json-api --- >>> [INFO] Building jar: >>> /build/libjsonp-java-1.1.2/api/target/javax.json-api-1.1.2-sources.jar >>> [INFO] >>> [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ >>> javax.json-api --- >>> [INFO] Installing >>> /build/libjsonp-java-1.1.2/api/target/javax.json-api-1.1.2.jar to >>> /build/libjsonp-java-1.1.2/debian/maven-repo/javax/json/javax.json-api/1.1.2/javax.json-api-1.1.2.jar >>> [INFO] Installing /build/libjsonp-java-1.1.
Re: Javadoc -link makes broken links if module name matches package name
Hi Matthias, on a number of packages, javadoc now fails, which is reported by a number of bugs. Since you mentioned that this is not a bug in the JDK, could you give a hint what the problem is? The error message is a bit mystic, at least to me. And the openjdk commit also does not enlighten me. It a bug in the individual packages or one in javahelper? And what should be done to fix it? Best Ole On 25.01.19 09:26, Matthias Klose wrote: > so this is not an openjdk error, and should be fixed in the pacakges itself. > See > > 8211916: Javadoc -link makes broken links if module name matches package name > http://hg.openjdk.java.net/jdk-updates/jdk11u/rev/66a53d6047d1 > > see the -source 8 passed in the tests. > >
How to replace javax.xml.bind in milib
Hi, I intend to refresh milib[1] to its latest upstream version but I'm running into ... [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ milib --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 288 source files to /build/milib-1.9/target/classes [INFO] /build/milib-1.9/src/main/java/com/milaboratory/core/alignment/kaligner2/KMapper2.java: Some input files use or override a deprecated API. [INFO] /build/milib-1.9/src/main/java/com/milaboratory/core/alignment/kaligner2/KMapper2.java: Recompile with -Xlint:deprecation for details. [INFO] /build/milib-1.9/src/main/java/com/milaboratory/core/sequence/AbstractSeq.java: Some input files use unchecked or unsafe operations. [INFO] /build/milib-1.9/src/main/java/com/milaboratory/core/sequence/AbstractSeq.java: Recompile with -Xlint:unchecked for details. [INFO] - [ERROR] COMPILATION ERROR : [INFO] - [ERROR] /build/milib-1.9/src/main/java/com/milaboratory/util/LightFileDescriptor.java:[27,22] package javax.xml.bind does not exist [ERROR] /build/milib-1.9/src/main/java/com/milaboratory/util/LightFileDescriptor.java:[202,48] cannot find symbol symbol: variable DatatypeConverter location: class com.milaboratory.util.LightFileDescriptor [INFO] 2 errors [INFO] - [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 2.840 s [INFO] Finished at: 2019-01-25T20:37:59Z [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project milib: Compilation failure: Compilation failure: [ERROR] /build/milib-1.9/src/main/java/com/milaboratory/util/LightFileDescriptor.java:[27,22] package javax.xml.bind does not exist [ERROR] /build/milib-1.9/src/main/java/com/milaboratory/util/LightFileDescriptor.java:[202,48] cannot find symbol [ERROR] symbol: variable DatatypeConverter [ERROR] location: class com.milaboratory.util.LightFileDescriptor [ERROR] -> [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/MojoFailureException 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=/build... I remember I need to add libjaxb-java to Build-Depends but this alone is not the solution for this maven based package. Any hint how to fix this? Kind regards Andreas. [1] https://salsa.debian.org/java-team/milib -- http://fam-tille.de
Re: How to replace javax.xml.bind in milib
Le 25/01/2019 à 21:59, Andreas Tille a écrit : > I remember I need to add libjaxb-java to Build-Depends but this alone > is not the solution for this maven based package. Any hint how to > fix this? You have to patch the pom.xml file to declare the dependency on JAXB (the api, core and runtime artifacts). Maven doesn't pick magically the build dependencies declared in debian/control. Emmanuel Bourg
Re: How to replace javax.xml.bind in milib
Hi Emmanuel, On Fri, Jan 25, 2019 at 10:07:55PM +0100, Emmanuel Bourg wrote: > > I remember I need to add libjaxb-java to Build-Depends but this alone > > is not the solution for this maven based package. Any hint how to > > fix this? > > You have to patch the pom.xml file to declare the dependency on JAXB > (the api, core and runtime artifacts). Maven doesn't pick magically the > build dependencies declared in debian/control. Thanks a lot for the hint. Is there any example package you could recommend? Kind regards Andreas. -- http://fam-tille.de