From unknown Thu Aug 14 21:49:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#31943 <31943@debbugs.gnu.org> To: bug#31943 <31943@debbugs.gnu.org> Subject: Status: Some Maven bugs Reply-To: bug#31943 <31943@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:49:13 +0000 retitle 31943 Some Maven bugs reassign 31943 guix submitter 31943 Bj=C3=B6rn H=C3=B6fling severity 31943 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 22 18:39:58 2018 Received: (at submit) by debbugs.gnu.org; 22 Jun 2018 22:39:58 +0000 Received: from localhost ([127.0.0.1]:60658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWUii-0005i3-4E for submit@debbugs.gnu.org; Fri, 22 Jun 2018 18:39:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWUig-0005hq-EG for submit@debbugs.gnu.org; Fri, 22 Jun 2018 18:39:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWUiY-0001ie-9H for submit@debbugs.gnu.org; Fri, 22 Jun 2018 18:39:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FROM_EXCESS_BASE64 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41086) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fWUiY-0001ia-5g for submit@debbugs.gnu.org; Fri, 22 Jun 2018 18:39:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWUiV-00026y-Gi for bug-guix@gnu.org; Fri, 22 Jun 2018 18:39:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWUiS-0001ga-Ax for bug-guix@gnu.org; Fri, 22 Jun 2018 18:39:43 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:38018 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWUiR-0001gD-VZ for bug-guix@gnu.org; Fri, 22 Jun 2018 18:39:40 -0400 Received: from alma-ubu (p57B52973.dip0.t-ipconnect.de [87.181.41.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 3A7E441FA7 for ; Sat, 23 Jun 2018 00:39:37 +0200 (CEST) Date: Sat, 23 Jun 2018 00:39:35 +0200 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= To: Subject: Some Maven bugs Message-ID: <20180623003935.21f7da0b@alma-ubu> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/28N8eH4E2kr=Z0E7diLHJza"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.9 (-----) --Sig_/28N8eH4E2kr=Z0E7diLHJza Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Maven is now part of Guix, yeah! I gave it a try and found some bugs which I post collectively here. I don't know yet where exactly they come from and if they are trivial or not to fix. So if you think they should better go each into a separate bug report, please separate them. For reference, I'm on Ubuntu with: $> guix pull --list-generations | tail --lines=3D6 guile: warning: failed to install locale warning: failed to install locale: Invalid argument Generation 2 Jun 22 2018 21:53:40 (current) guix 18ab54d repository URL: https://git.savannah.gnu.org/git/guix.git commit: 18ab54d4a2aaf932b14e69c30650c1d2c4db33c7 1) The following propagated inputs are used from bash scripts and are missing: which, coreutils $> guix environment -C --ad-hoc maven icedtea@3:jdk -- mvn=20 /gnu/store/sk23y72hma8x6n5ch6xqgql1q93dg7if-profile/bin/mvn: line 46: uname= : command not found /gnu/store/sk23y72hma8x6n5ch6xqgql1q93dg7if-profile/bin/mvn: line 56: ls: c= ommand not found /gnu/store/sk23y72hma8x6n5ch6xqgql1q93dg7if-profile/bin/mvn: line 57: expr:= command not found /gnu/store/sk23y72hma8x6n5ch6xqgql1q93dg7if-profile/bin/mvn: line 58: expr:= command not found /gnu/store/sk23y72hma8x6n5ch6xqgql1q93dg7if-profile/bin/mvn: line 61: dirna= me: command not found /gnu/store/sk23y72hma8x6n5ch6xqgql1q93dg7if-profile/bin/mvn: line 67: dirna= me: command not found /gnu/store/sk23y72hma8x6n5ch6xqgql1q93dg7if-profile/bin/mvn: line 94: which= : command not found The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE 2) There is something wrong with the version output: $> guix environment -C --ad-hoc maven icedtea@3:jdk coreutils which -- mvn -version null ${distributionShortName} home: /gnu/store/a19m087lz9fg4c2aplvdlm1y2iiibjdb-= maven-3.5.3 Java version: 1.8.0_161, vendor: Oracle Corporation Java home: /gnu/store/7dah2ha88f4sxakpgdlbfn6mvs842j6w-icedtea-3.7.0-jdk/jre Default locale: en_US, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "4.4.0-128-generic", arch: "amd64", family: "uni= x" Compare this to my "native" Ubuntu maven: $> /usr/bin/mvn -version Apache Maven 3.3.9 Maven home: /usr/share/maven Java version: 1.8.0_161, vendor: Oracle Corporation Java home: /gnu/store/8yfdmh7hsnfq87ddcyjz5nxk5f208pmc-icedtea-3.7.0-jdk/jre Default locale: en_US, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "4.4.0-128-generic", arch: "amd64", family: "uni= x" 3) The -version part is already handled by Java code. So I tried to debug Maven remotely from Eclipse, but it failed with a message saying that debug symbols were missing. I want to verify this again, but could this be a problem of the ant-build-system removing debug symbols? 4) I cannot use icedteaX (x \in {1,2}) (i.e. X=3D2 means JDK 1.7) with Maven. Is this a bug or a fact? $> guix environment -C --ad-hoc maven icedtea@2:jdk coreutils which -- mvn -version Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apac= he/maven/cli/MavenCli : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:803) at java.security.SecureClassLoader.defineClass(SecureClassLoader.ja= va:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:442) at java.net.URLClassLoader.access$100(URLClassLoader.java:64) at java.net.URLClassLoader$1.run(URLClassLoader.java:354) at java.net.URLClassLoader$1.run(URLClassLoader.java:348) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:347) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312) at java.lang.ClassLoader.loadClass(ClassLoader.java:412) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedL= oadClass(Unknown Source) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(Unkno= wn Source) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(Unkno= wn Source) at org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass(U= nknown Source) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced= (Unknown Source) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Unknown= Source) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCo= de(Unknown Source) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Unknown S= ource) Version 52.0 means Java 1.8. I think this is because we are now building all Java packages with ant-build-system with Icedtea@3 and letting it output Java8 code. Right? If this is the case anyway, we don't have any chance to choose a JDK to run maven with (if we choose from Guix, not from other locations). Should we then add icedtea@3 as a propagated input to maven? Then a user can directly use Maven and doesn't have to think of installing a JDK first. Mhm, maybe too strict and too heavy in size? =46rom now on I'm in a container with a fresh .m2 directory, assuming "mvn-home" is an empty directory: guix environment -C -N --share=3Dmvn-home/=3D/home/bjoern/.m2 --ad-hoc mave= n coreutils which icedtea@3:jdk 5) Maven complains about the logger output: $ENV> mvn clean install [WARNING] The SLF4J binding actually used is not supported by Maven: org.sl= f4j.impl.SimpleLoggerFactory [WARNING] Maven supported bindings are: [INFO] Scanning for projects... [...] When looking at the package definition of maven, I find in the inputs: ;; TODO: replace with maven-slf4j-provider ("java-slf4j-simple" ,java-slf4j-simple))) Is this comment related to the WARNING? Will it go away with maven-slf4j-provider? 6) Maven does not compile Java 1.8 code. To reproduce this, build any Maven project that has either source or target language version set to 1.8: 1.8 1.8 As our Maven mostly works, you can just use: $ENV> mvn archetype:generate to create a new Maven project. Edit the pom.xml to set the versions. Then [I head some problems with tests, so skipping them here]: $ENV> mvn clean install -Dmvn.tests.skip=3Dtrue -X -e [..] [INFO] --------------------------------------------------------------------= ---- [INFO] BUILD FAILURE [INFO] --------------------------------------------------------------------= ---- [INFO] Total time: 1.171 s [INFO] Finished at: 2018-06-22T22:17:21Z [INFO] --------------------------------------------------------------------= ---- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plug= in:3.7.0:compile (default-compile) on project tst2: Fatal error compiling: = invalid source release: 1.8 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute g= oal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-c= ompile) on project tst2: Fatal error compiling at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Unknown Source) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Unknown Source) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Unknown Source) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject= (Unknown Source) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject= (Unknown Source) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThread= edBuilder.build(Unknown Source) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Unknown So= urce) at org.apache.maven.DefaultMaven.doExecute(Unknown Source) at org.apache.maven.DefaultMaven.doExecute(Unknown Source) at org.apache.maven.DefaultMaven.execute(Unknown Source) at org.apache.maven.cli.MavenCli.execute(Unknown Source) at org.apache.maven.cli.MavenCli.doMain(Unknown Source) at org.apache.maven.cli.MavenCli.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja= va:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso= rImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Unknow= n Source) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Unknown Source) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Unkn= own Source) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Unknown Source) Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error comp= iling at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractC= ompilerMojo.java:1086) at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java= :168) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Unknown S= ource) ... 21 more Caused by: org.codehaus.plexus.compiler.CompilerException: invalid source r= elease: 1.8 at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(= JavaxToolsCompiler.java:173) at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCo= mpiler.java:174) at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractC= ompilerMojo.java:1075) ... 23 more Caused by: java.lang.IllegalArgumentException: invalid source release: 1.8 at com.sun.tools.javac.main.RecognizedOptions$GrumpyHelper.error(Recognize= dOptions.java:88) at com.sun.tools.javac.main.RecognizedOptions$9.process(RecognizedOptions.= java:348) at com.sun.tools.javac.api.JavacTool.processOptions(JavacTool.java:242) at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:199) at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:68) at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(= JavaxToolsCompiler.java:125) ... 25 more [ERROR]=20 [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR]=20 [ERROR] For more information about the errors and possible solutions, pleas= e read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecu= tionException 7) I have some trouble executing the tests. This is indeterministic (!), sometimes is is successful, sometimes I get an error: $ENV> mvn clean install -X -e -B>stacktrace.log 2>&1; echo $? [..] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running de.xxx.AppTest [INFO]=20 [INFO] Results: [INFO]=20 [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO]=20 [INFO] --------------------------------------------------------------------= ---- [INFO] BUILD FAILURE [INFO] --------------------------------------------------------------------= ---- [INFO] Total time: 2.981 s [INFO] Finished at: 2018-06-22T22:27:49Z [INFO] --------------------------------------------------------------------= ---- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plug= in:2.20.1:test (default-test) on project tst2: There are test failures. [ERROR]=20 [ERROR] Please refer to /home/bjoern/x/z/tst2/target/surefire-reports for t= he individual test results. [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [d= ate].dumpstream and [date]-jvmRun[N].dumpstream. [ERROR] The forked VM terminated without properly saying goodbye. VM crash = or System.exit called? [ERROR] Command was /bin/sh -c cd /home/bjoern/x/z/tst2 && /gnu/store/7dah2= ha88f4sxakpgdlbfn6mvs842j6w-icedtea-3.7.0-jdk/jre/bin/java -jar /home/bjoer= n/x/z/tst2/target/surefire/surefirebooter4025948542605868366.jar /home/bjoe= rn/x/z/tst2/target/surefire 2018-06-22T22-27-48_542-jvmRun1 surefire4165566= 371678934740tmp surefire_02394075698289798736tmp [ERROR] Error occurred in starting fork, check output in log [ERROR] Process Exit Code: 1 [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The f= orked VM terminated without properly saying goodbye. VM crash or System.exi= t called? [ERROR] Command was /bin/sh -c cd /home/bjoern/x/z/tst2 && /gnu/store/7dah2= ha88f4sxakpgdlbfn6mvs842j6w-icedtea-3.7.0-jdk/jre/bin/java -jar /home/bjoer= n/x/z/tst2/target/surefire/surefirebooter4025948542605868366.jar /home/bjoe= rn/x/z/tst2/target/surefire 2018-06-22T22-27-48_542-jvmRun1 surefire4165566= 371678934740tmp surefire_02394075698289798736tmp [ERROR] Error occurred in starting fork, check output in log [ERROR] Process Exit Code: 1 [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(= ForkStarter.java:686) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(= ForkStarter.java:535) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(F= orkStarter.java:280) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(F= orkStarter.java:245) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executePr= ovider(AbstractSurefireMojo.java:1124) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAf= terPreconditionsChecked(AbstractSurefireMojo.java:954) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(A= bstractSurefireMojo.java:832) [ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(U= nknown Source) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Unknow= n Source) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Unknow= n Source) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Unknow= n Source) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buil= dProject(Unknown Source) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buil= dProject(Unknown Source) [ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.Sing= leThreadedBuilder.build(Unknown Source) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Un= known Source) [ERROR] at org.apache.maven.DefaultMaven.doExecute(Unknown Source) [ERROR] at org.apache.maven.DefaultMaven.doExecute(Unknown Source) [ERROR] at org.apache.maven.DefaultMaven.execute(Unknown Source) [ERROR] at org.apache.maven.cli.MavenCli.execute(Unknown Source) [ERROR] at org.apache.maven.cli.MavenCli.doMain(Unknown Source) [ERROR] at org.apache.maven.cli.MavenCli.main(Unknown Source) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso= rImpl.java:62) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho= dAccessorImpl.java:43) [ERROR] at java.lang.reflect.Method.invoke(Method.java:498) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhance= d(Unknown Source) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Unknow= n Source) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitC= ode(Unknown Source) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Unknown = Source) [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute g= oal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-tes= t) on project tst2: There are test failures. [..] 8) BTW maven is NOT creating a reproducible output. That's important if you want to use it to as a build tool for Guix: $ENV> jar tvvf ~/.m2/repository/de/xxx/tst2/1.0-SNAPSHOT/tst2-1.0-SNAPSHOT.jar 110 Fri Jun 22 22:29:26 GMT 2018 META-INF/MANIFEST.MF 0 Fri Jun 22 22:29:26 GMT 2018 META-INF/ That's it for now.=20 Bj=C3=B6rn --Sig_/28N8eH4E2kr=Z0E7diLHJza Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlsteqgACgkQvyhstlk+X/2VRwCgpGxGOgxqRw+6GvjDR5xogEbW 2LsAmwfPJ1AkRMl2iB/WHAIlyJjoFOIJ =duSi -----END PGP SIGNATURE----- --Sig_/28N8eH4E2kr=Z0E7diLHJza-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 23 06:20:55 2018 Received: (at submit) by debbugs.gnu.org; 23 Jun 2018 10:20:55 +0000 Received: from localhost ([127.0.0.1]:60811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWff4-0005Bo-Nf for submit@debbugs.gnu.org; Sat, 23 Jun 2018 06:20:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWff2-0005BZ-Iz for submit@debbugs.gnu.org; Sat, 23 Jun 2018 06:20:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWfew-00006z-AP for submit@debbugs.gnu.org; Sat, 23 Jun 2018 06:20:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37501) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fWfew-00006v-77 for submit@debbugs.gnu.org; Sat, 23 Jun 2018 06:20:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWfev-0003is-2q for bug-guix@gnu.org; Sat, 23 Jun 2018 06:20:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWfeq-000050-8F for bug-guix@gnu.org; Sat, 23 Jun 2018 06:20:45 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:48148) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fWfep-0008WU-TK for bug-guix@gnu.org; Sat, 23 Jun 2018 06:20:40 -0400 Received: from localhost (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 3888e26c (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for ; Sat, 23 Jun 2018 10:20:53 +0000 (UTC) Date: Sat, 23 Jun 2018 12:20:33 +0200 From: Julien Lepiller To: bug-guix@gnu.org Subject: Re: bug#31943: Some Maven bugs Message-ID: <20180623122033.31edf218@lepiller.eu> In-Reply-To: <20180623003935.21f7da0b@alma-ubu> References: <20180623003935.21f7da0b@alma-ubu> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/MUB//N9oPu7o_05DSe.uiS8"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) --Sig_/MUB//N9oPu7o_05DSe.uiS8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le Sat, 23 Jun 2018 00:39:35 +0200, Bj=C3=B6rn H=C3=B6fling a =C3=A9crit : > Maven is now part of Guix, yeah! I gave it a try and found some bugs > which I post collectively here. I don't know yet where exactly they > come from and if they are trivial or not to fix. So if you think they > should better go each into a separate bug report, please separate > them. >=20 > For reference, I'm on Ubuntu with: >=20 > $> guix pull --list-generations | tail --lines=3D6 =20 > guile: warning: failed to install locale > warning: failed to install locale: Invalid argument >=20 > Generation 2 Jun 22 2018 21:53:40 (current) > guix 18ab54d > repository URL: https://git.savannah.gnu.org/git/guix.git > commit: 18ab54d4a2aaf932b14e69c30650c1d2c4db33c7 >=20 >=20 > 1) The following propagated inputs are used from bash scripts > and are missing: which, coreutils >=20 > 2) There is something wrong with the version output: Fixed with 7504f3c3d3a2fbd0f901757a9bd3175e424c11ca and e27c43d94e23daf6b114b03688a51c924890a286 :) > [...] >=20 > 3) The -version part is already handled by Java code. So I tried to > debug Maven remotely from Eclipse, but it failed with a message saying > that debug symbols were missing. I want to verify this again, but > could this be a problem of the ant-build-system removing debug > symbols? I think our ant-build-system doesn't add debugging symbols to our java packages. That's where it should be fixed (if we want to fix it?) >=20 > 4) I cannot use icedteaX (x \in {1,2}) (i.e. X=3D2 means JDK 1.7) with > Maven. Is this a bug or a fact? >=20 This is because some of the dependencies cannot be built without java8. I think there is an option in ant to build with a new jdk but stay compatible with older jdks. Our ant-build-system should probably use that. > [...] >=20 > 5) Maven complains about the logger output: >=20 > Is this comment related to the WARNING? Will it go away with > maven-slf4j-provider? Exactly. >=20 >=20 > 6) Maven does not compile Java 1.8 code. >=20 Ok, this is unexpected, and that's what I'll be working on next. >=20 >=20 > 7) I have some trouble executing the tests. This is indeterministic > (!), sometimes is is successful, sometimes I get an error: >=20 Weird too. >=20 >=20 > 8) BTW maven is NOT creating a reproducible output. That's important > if you want to use it to as a build tool for Guix: >=20 I think this is expected. I've seen a bug report about that, but can't find it anymore. We could reuse the repack-jar phase from the ant-build-system though. >=20 > Bj=C3=B6rn Thank you for your reports! --Sig_/MUB//N9oPu7o_05DSe.uiS8 Content-Type: application/pgp-signature Content-Description: Signature digitale OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEtfrmKFtBNyiyoPrtQxEfRSAIagwFAlsuHvEACgkQQxEfRSAI agwWqg//aYllfmeSD3t3ey834naXN2nuI7uGtYoMmOcfWM7vOiFoONh/nkCZIDP/ hBPNpo+K6uKG8DDE+gXxhSBJMYcAJj2lcWdPWrB/DkMDQvKIf6WQx7E4/IBk3D78 WiGrDLuu+5TWDf2agT/rxSs3txjHKbAxIKRl+K9BWamOLOjWMTTQ2X0DNTzKOAcb KuLnbDQ1IDjdBJl3NH/Yf5dZP0W+fdIsO1Z1L0ri3aJHQAG8jb9wRt5X65Mjk+nA wyHpeGdw1YY9buGGPYHBw0X6Nunnvsp7DmRmBLIQVuXnETdDsaR2p+XFz5myGYz9 G0RTavdcAbya+BKzni/mg9bCiUTP062s2+APXbVan5zx4WDit4uKMxaPvVc//4QB AV0ETHzOZNxN8/vF86oaKzpbL0vzwGp0hsAssON46bGhThfE9IQaSyeCEJKcLlnv JycHsYgI9yKUSaqtt9h0+PEeTHtHaiWbF+6xS73dIu0Bvou8Vz4cKicrT8CrXYIy 0C/H94g7ONPYwL127GPxiaq+oaPYqt5B8BcmrLcVW3TWQjoRAzziriL0rjjH8CKv l9o+v1nUENqu6Fl14sKm7KN5XryqoCZdbaR4GM7gDpP8DADbB7mcSLBJ8p5h4Xcl 09gBwRD/BZaTrAONvOsZk2bIsSji+GHRmXT98Zxh2ocL2rwtuNc= =OysK -----END PGP SIGNATURE----- --Sig_/MUB//N9oPu7o_05DSe.uiS8-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 25 06:13:56 2018 Received: (at 31943) by debbugs.gnu.org; 25 Jun 2018 10:13:56 +0000 Received: from localhost ([127.0.0.1]:34284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXOVP-0002WX-ND for submit@debbugs.gnu.org; Mon, 25 Jun 2018 06:13:55 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:60492 helo=bjoernhoefling.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXOVO-0002WP-4o for 31943@debbugs.gnu.org; Mon, 25 Jun 2018 06:13:54 -0400 Received: from alma-ubu (p57B52973.dip0.t-ipconnect.de [87.181.41.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id A7A774010C; Mon, 25 Jun 2018 12:13:52 +0200 (CEST) Date: Mon, 25 Jun 2018 12:13:45 +0200 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= To: Julien Lepiller Subject: Re: bug#31943: Some Maven bugs Message-ID: <20180625121345.72e0349b@alma-ubu> In-Reply-To: <20180623122033.31edf218@lepiller.eu> References: <20180623003935.21f7da0b@alma-ubu> <20180623122033.31edf218@lepiller.eu> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/rDrMSEasX4M+IdASTka1Q8r"; protocol="application/pgp-signature" X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 31943 Cc: 31943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) --Sig_/rDrMSEasX4M+IdASTka1Q8r Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 23 Jun 2018 12:20:33 +0200 Julien Lepiller wrote: > Le Sat, 23 Jun 2018 00:39:35 +0200, > Bj=C3=B6rn H=C3=B6fling a =C3=A9crit : >=20 > > 1) The following propagated inputs are used from bash scripts > > and are missing: which, coreutils > >=20 > > 2) There is something wrong with the version output: =20 >=20 > Fixed with 7504f3c3d3a2fbd0f901757a9bd3175e424c11ca and > e27c43d94e23daf6b114b03688a51c924890a286 :) That was quick :-) Thanks. > > 4) I cannot use icedteaX (x \in {1,2}) (i.e. X=3D2 means JDK 1.7) with > > Maven. Is this a bug or a fact? > > =20 >=20 > This is because some of the dependencies cannot be built without > java8. I think there is an option in ant to build with a new jdk but > stay compatible with older jdks. Our ant-build-system should probably > use that. Maven requires JDK 1.7 or above to run (https://maven.apache.org/download.cgi). So support for JDK7 should work, JDK6 not. Forget icedtea@1. I see that some of the dependencies like maven-resolver-util are explicitly setting the #jdk to icedtea-8. So no wonder they produce JDK 1.8 code. For the task, there is target property, see docs here: https://ant.apache.org/manual/Tasks/javac.html You can also set the option ant.build.javac.target: https://ant.apache.org/manual/javacprops.html#target We could introduce the latter one in the ant-build-system, with nothing set being the default (i.e. the output of the used JDK). Bj=C3=B6rn --Sig_/rDrMSEasX4M+IdASTka1Q8r Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlswwFoACgkQvyhstlk+X/26kgCfZtMAldywfeTvVNwiGwagg+BL 920AoJF67B/u+AqqtEL+A+jV3jIG5Ytp =j72S -----END PGP SIGNATURE----- --Sig_/rDrMSEasX4M+IdASTka1Q8r-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 04 16:06:15 2018 Received: (at 31943) by debbugs.gnu.org; 4 Jul 2018 20:06:15 +0000 Received: from localhost ([127.0.0.1]:47017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fao2Z-0000IB-ES for submit@debbugs.gnu.org; Wed, 04 Jul 2018 16:06:15 -0400 Received: from lepiller.eu ([89.234.186.109]:37716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fao2Y-0000I3-1r for 31943@debbugs.gnu.org; Wed, 04 Jul 2018 16:06:14 -0400 Received: from localhost (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id ff425ac3 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for <31943@debbugs.gnu.org>; Wed, 4 Jul 2018 20:06:50 +0000 (UTC) Date: Wed, 4 Jul 2018 22:06:08 +0200 From: Julien Lepiller To: 31943@debbugs.gnu.org Subject: Re: bug#31943: Some Maven bugs Message-ID: <20180704220558.0efc9e0f@lepiller.eu> In-Reply-To: <20180623003935.21f7da0b@alma-ubu> References: <20180623003935.21f7da0b@alma-ubu> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31943 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Le Sat, 23 Jun 2018 00:39:35 +0200, Bj=C3=B6rn H=C3=B6fling a =C3=A9crit : > Maven is now part of Guix, yeah! I gave it a try and found some bugs > which I post collectively here. I don't know yet where exactly they > come from and if they are trivial or not to fix. So if you think they > should better go each into a separate bug report, please separate > them. >=20 > [...] >=20 > 6) Maven does not compile Java 1.8 code. >=20 This should be fixed in 892a5647debc7fe8eafac4f725c46134eb085b63. I was cramming the whole set of dependencies for maven in the classpath, but it seems it doesn't play well with downloaded plugins. Now I generated a m2.conf file with multiple "load" lines to tell plexus-classworlds where to find the required jar files. >=20 >=20 > 7) I have some trouble executing the tests. This is indeterministic > (!), sometimes is is successful, sometimes I get an error: >=20 So I've tested this, and it turns out it's not our package's fault: it fails undeterministically also when using the system's maven. I fixed it by downgrading maven-surefire-plugin version to 2.20 instead of 2.20.1. Thank you for your reports! Do you think we can close this report now? From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 05 00:43:07 2018 Received: (at 31943-done) by debbugs.gnu.org; 5 Jul 2018 04:43:07 +0000 Received: from localhost ([127.0.0.1]:47154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1faw6l-0003fH-5Z for submit@debbugs.gnu.org; Thu, 05 Jul 2018 00:43:07 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:56936 helo=bjoernhoefling.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1faw6g-0003es-PC for 31943-done@debbugs.gnu.org; Thu, 05 Jul 2018 00:43:04 -0400 Received: from alma-ubu (p57B52973.dip0.t-ipconnect.de [87.181.41.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id D058940D93; Thu, 5 Jul 2018 06:43:00 +0200 (CEST) Date: Thu, 5 Jul 2018 06:42:49 +0200 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= To: Julien Lepiller Subject: Re: bug#31943: Some Maven bugs Message-ID: <20180705064249.1a0df152@alma-ubu> In-Reply-To: <20180704220558.0efc9e0f@lepiller.eu> References: <20180623003935.21f7da0b@alma-ubu> <20180704220558.0efc9e0f@lepiller.eu> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/Kt05_g40stHmI=msZLu0q8z"; protocol="application/pgp-signature" X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 31943-done Cc: 31943-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) --Sig_/Kt05_g40stHmI=msZLu0q8z Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Julien, On Wed, 4 Jul 2018 22:06:08 +0200 Julien Lepiller wrote: > Le Sat, 23 Jun 2018 00:39:35 +0200, > Bj=C3=B6rn H=C3=B6fling a =C3=A9crit : >=20 > > Maven is now part of Guix, yeah! I gave it a try and found some bugs > > which I post collectively here. I don't know yet where exactly they > > come from and if they are trivial or not to fix. So if you think > > they should better go each into a separate bug report, please > > separate them. > >=20 > > [...] > >=20 > > 6) Maven does not compile Java 1.8 code. > > =20 >=20 > This should be fixed in 892a5647debc7fe8eafac4f725c46134eb085b63. >=20 > I was cramming the whole set of dependencies for maven in the > classpath, but it seems it doesn't play well with downloaded plugins. > Now I generated a m2.conf file with multiple "load" lines to tell > plexus-classworlds where to find the required jar files. Great, works! > > 7) I have some trouble executing the tests. This is indeterministic > > (!), sometimes is is successful, sometimes I get an error: > > =20 >=20 > So I've tested this, and it turns out it's not our package's fault: it > fails undeterministically also when using the system's maven. I fixed > it by downgrading maven-surefire-plugin version to 2.20 instead of > 2.20.1. I wondered that there is no commit for this an then realized that I have to do that on my own in the pom.xml for each project, because Maven will download its plugins: =20 maven-surefire-plugin 2.20 ... =20 > Thank you for your reports! Do you think we can close this report now? Thanks for fixing so quickly. Yes, closing with this message. Bj=C3=B6rn --Sig_/Kt05_g40stHmI=msZLu0q8z Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEUEARECAAYFAls9ocoACgkQvyhstlk+X/12ogCSAyidfiyi5NY5Me6xDil6d/82 ZwCfeCkhRmUOgsubbyOn6Ein9zc695w= =Mk58 -----END PGP SIGNATURE----- --Sig_/Kt05_g40stHmI=msZLu0q8z-- From unknown Thu Aug 14 21:49:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 02 Aug 2018 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator