Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #11822 > unrolled thread
| Started by | Andreas Tille <andreas@an3as.eu> |
|---|---|
| First post | 2020-08-06 11:10 +0200 |
| Last post | 2020-08-10 21:20 +0200 |
| Articles | 6 — 3 participants |
Back to article view | Back to linux.debian.maint.java
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Bug#963396: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure Andreas Tille <andreas@an3as.eu> - 2020-08-06 11:10 +0200
Bug#963396: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure Thorsten Glaser <t.glaser@tarent.de> - 2020-08-07 18:10 +0200
Bug#963396: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure Thorsten Glaser <t.glaser@tarent.de> - 2020-08-08 00:10 +0200
Re: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure Andreas Tille <andreas@an3as.eu> - 2020-08-08 17:50 +0200
Re: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure Thorsten Glaser <t.glaser@tarent.de> - 2020-08-08 18:30 +0200
Re: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure Mechtilde Stehmann <mechtilde@debian.org> - 2020-08-10 21:20 +0200
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2020-08-06 11:10 +0200 |
| Subject | Bug#963396: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure |
| Message-ID | <AAK4p-ac-1@gated-at.bofh.it> |
Control: tags -1 help
Hi,
I was running routine-update on jimfs repository since it seems to lack
some love (not even Salsa URLs in VCS-fields) but the build error remains
(for sure since I did not changed the code). I've checked upstream[1]
which says:
1.1
@cgdecker released this on Feb 12, 2016 · 65 commits to master since this release
but my rough check did not found any commits that might be related to this
issue nor did I found any open issue that might fit here. So I wonder
whether someone from Java team might have some idea for this issue:
...
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 58 source files to /build/jimfs-1.1/jimfs/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /build/jimfs-1.1/jimfs/src/main/java/com/google/common/jimfs/PathService.java:[290,30] error: <anonymous com.google.common.jimfs.PathService$1> is not abstract and does not override abstract method test(Object) in Predicate
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Jimfs Parent
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Jimfs Parent 1.1:
[INFO]
[INFO] Jimfs Parent ....................................... SUCCESS [ 0.514 s]
[INFO] Jimfs .............................................. FAILURE [ 2.840 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.634 s
[INFO] Finished at: 2020-08-06T08:54:18Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure
[ERROR] /build/jimfs-1.1/jimfs/src/main/java/com/google/common/jimfs/PathService.java:[290,30] error: <anonymous com.google.common.jimfs.PathService$1> is not abstract and does not override abstract method test(Object) in Predicate
[ERROR]
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :jimfs
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/jimfs-1.1 -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/build/jimfs-1.1/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/build/jimfs-1.1/debian -Dmaven.repo.local=/build/jimfs-1.1/debian/maven-repo package javadoc:jar javadoc:aggregate -DskipTests -Dnotimestamp=true -Dlocale=e
Thanks for any help
Andreas.
[1] https://github.com/google/jimfs/releases
--
http://fam-tille.de
[toc] | [next] | [standalone]
| From | Thorsten Glaser <t.glaser@tarent.de> |
|---|---|
| Date | 2020-08-07 18:10 +0200 |
| Message-ID | <ABd6q-Zy-3@gated-at.bofh.it> |
| In reply to | #11822 |
On Fri, 7 Aug 2020, Andreas Tille wrote: > but this does not help much and the build issue remains. Erk… then I don’t know either. Sorry, //mirabilos -- tarent solutions GmbH Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/ Tel: +49 228 54881-393 • Fax: +49 228 54881-235 HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941 Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
[toc] | [prev] | [next] | [standalone]
| From | Thorsten Glaser <t.glaser@tarent.de> |
|---|---|
| Date | 2020-08-08 00:10 +0200 |
| Message-ID | <ABiIN-4p2-7@gated-at.bofh.it> |
| In reply to | #11822 |
On Fri, 7 Aug 2020, Pierre Gruet wrote:
> I suggest using the enclosed patch, which allows the build to succeed by
> overriding the ``test'' method of Predicate<T>. The ``apply'' method
> provided by upstream has to be kept as it is used by the ``test'' method.
But why? This amount of redundancy is… ridiculous.
private static final Predicate<Object> NOT_EMPTY =
new Predicate<Object>() {
@Override
public boolean apply(Object input) {
return !input.toString().isEmpty();
}
};
I was just suggesting replacing this with…
private static final Predicate<Object> NOT_EMPTY =
input -> !input.toString().isEmpty();
… but then I saw https://stackoverflow.com/q/41930727/2171120
and the code from jimfs seems to use Guava, not standard Java:
import com.google.common.collect.Iterables;
import com.google.common.base.Predicate;
Looking at guava/src/com/google/common/base/Predicate.java in
the Debian source package guava-libraries (29.0-5) I see:
* <p>As this interface extends {@code java.util.function.Predicate}, an instance of this type may
* be used as a {@code Predicate} directly. To use a {@code java.util.function.Predicate} where a
* {@code com.google.common.base.Predicate} is expected, use the method reference {@code
* predicate::test}.
*
* <p>This interface is now a legacy type. Use {@code java.util.function.Predicate} (or the
This means the correct patch is more like… ugh, this is more complicated.
Also, com.google.common.base.Predicate implements a default test method.
In addition, for some reason, jimfs still builds for Java 7.
Gimme a bit, I’ll build it locally, now I found the Debian packaging.
bye,
//mirabilos
--
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
[toc] | [prev] | [next] | [standalone]
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2020-08-08 17:50 +0200 |
| Subject | Re: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure |
| Message-ID | <ABzgB-5Rt-5@gated-at.bofh.it> |
| In reply to | #11824 |
On Sat, Aug 08, 2020 at 12:07:17AM +0200, Thorsten Glaser wrote:
> > Gimme a bit, I’ll build it locally, now I found the Debian packaging.
>
> Heh, it was as easy as build targetting Java 8… patch and log attached.
Ahhh, that was simple. :-)
Thanks a lot. BTW, I'd consider it more straightforward if you'd commit
such kind of fixes to Git since it would give you the credit in git log.
I'm also perfectly fine if someone else then me would do a team upload
once there was a successful build.
Thanks again for all your help
Andreas.
--
http://fam-tille.de
[toc] | [prev] | [next] | [standalone]
| From | Thorsten Glaser <t.glaser@tarent.de> |
|---|---|
| Date | 2020-08-08 18:30 +0200 |
| Subject | Re: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure |
| Message-ID | <ABzTk-6jx-5@gated-at.bofh.it> |
| In reply to | #11825 |
On Sat, 8 Aug 2020, Andreas Tille wrote: > Thanks a lot. BTW, I'd consider it more straightforward if you'd commit > such kind of fixes to Git since it would give you the credit in git log. > I'm also perfectly fine if someone else then me would do a team upload > once there was a successful build. I can do that now if you want. But for the patch, actually, mailing multiple of them to the list was what led to the final “better” one, so… perhaps this is still good? bye, //mirabilos -- tarent solutions GmbH Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/ Tel: +49 228 54881-393 • Fax: +49 228 54881-235 HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941 Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
[toc] | [prev] | [next] | [standalone]
| From | Mechtilde Stehmann <mechtilde@debian.org> |
|---|---|
| Date | 2020-08-10 21:20 +0200 |
| Subject | Re: jimfs: FTBFS: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jimfs: Compilation failure |
| Message-ID | <ACluV-1An-3@gated-at.bofh.it> |
| In reply to | #11822 |
[Multipart message — attachments visible in raw view] — view raw
Hello Emmanuel, Am 10.08.20 um 09:04 schrieb Emmanuel Bourg: > On 06/08/2020 11:05, Andreas Tille wrote: > >> [INFO] ------------------------------------------------------------- >> [ERROR] COMPILATION ERROR : >> [INFO] ------------------------------------------------------------- >> [ERROR] /build/jimfs-1.1/jimfs/src/main/java/com/google/common/jimfs/PathService.java:[290,30] error: <anonymous com.google.common.jimfs.PathService$1> is not abstract and does not override abstract method test(Object) in Predicate > > Have you tried setting the source/target level to Java 8? > Just add this to debian/maven.properties: > > maven.compiler.source=8 > maven.compiler.target=8 Is there a more detailed description about the possible entries in debian/mavenpropertiesß > > Emmanuel Bourg > Kind regards -- Mechtilde Stehmann ## Debian Developer ## PGP encryption welcome ## F0E3 7F3D C87A 4998 2899 39E7 F287 7BBA 141A AD7F
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.java
csiph-web