Package Details: maptool 1.16.2-1

Git Clone URL: https://aur.archlinux.org/maptool.git (read-only, click to copy)
Package Base: maptool
Description: An open source virtual tabletop program
Upstream URL: https://rptools.net/tools/maptool
Keywords: maptool role-playing roleplaying roleplaying-game roleplaying-games rpg tabletop virtual-tabletop vtt
Licenses: AGPL-3.0-or-later
Submitter: waltersm
Maintainer: patlefort
Last Packager: patlefort
Votes: 4
Popularity: 0.013370
First Submitted: 2019-03-18 16:15 (UTC)
Last Updated: 2025-03-27 07:40 (UTC)

Dependencies (8)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

patlefort commented on 2022-09-30 04:30 (UTC)

It work fine for me on java 18 on any machine I tested, I do not have jre17-openjdk or jdk17-openjdk installed, so the problem must be something else.

sgowie commented on 2022-09-30 03:43 (UTC)

I hit the same issue, with the stack trace starting with :

> Configure project :
Project : => no module-info.java found
Configuring for MapTool 1.12.1 by RPTools
AppVersion: 1.12.1
OS Detected: linux
Setting Linux installer options

> Task :spotlessJava FAILED
Step 'google-java-format' found problem in 'src/main/java/net/rptools/lib/FileUtil.java':
null
java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
        at com.diffplug.spotless.java.GoogleJavaFormatStep$State.lambda$constructRemoveUnusedFunction$3(GoogleJavaFormatStep.java:190)
        at com.diffplug.spotless.java.GoogleJavaFormatStep$State.lambda$createFormat$0(GoogleJavaFormatStep.java:158)
        at com.diffplug.spotless.FormatterFunc.apply(FormatterFunc.java:32)
        at com.diffplug.spotless.FormatterStepImpl$Standard.format(FormatterStepImpl.java:78)
        at com.diffplug.spotless.FormatterStep$Strict.format(FormatterStep.java:76)
        at com.diffplug.spotless.Formatter.compute(Formatter.java:230)
        at com.diffplug.spotless.PaddedCell.calculateDirtyState(PaddedCell.java:201)
        at com.diffplug.spotless.PaddedCell.calculateDirtyState(PaddedCell.java:188)
        at com.diffplug.gradle.spotless.SpotlessTaskImpl.processInputFile(SpotlessTaskImpl.java:71)
        at com.diffplug.gradle.spotless.SpotlessTaskImpl.performAction(SpotlessTaskImpl.java:57)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
        at org.gradle.api.internal.project.taskfactory.IncrementalInputsTaskAction.doExecute(IncrementalInputsTaskAction.java:32)

and ends with:

        at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:119)
        at jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:203)
        at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:860)
        at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:86)
        at com.google.googlejavaformat.java.RemoveUnusedImports$UnusedImportScanner.scan(RemoveUnusedImports.java:124)
        at com.google.googlejavaformat.java.RemoveUnusedImports$UnusedImportScanner.scan(RemoveUnusedImports.java:91)
        at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:111)
        at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:119)
        at jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:152)
        at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:614)
        at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:86)
        at com.google.googlejavaformat.java.RemoveUnusedImports$UnusedImportScanner.scan(RemoveUnusedImports.java:124)
        at com.google.googlejavaformat.java.RemoveUnusedImports.removeUnusedImports(RemoveUnusedImports.java:195)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        ... 125 more

So spotlessJava is a dependency of the google-java-fomat step. The only change to the FileUtil in the last 2 years is https://github.com/RPTools/maptool/commit/4a8d396145fae1fa623d7a6feea4c2c978f30043, but I don't know enough Java to figure out anything more.

I tried to tackle this from another angle. I noticed in July an update to CHANGE_LOG.md (https://github.com/RPTools/maptool/commit/10c6b3d7703603737fc63f52b8d707a00d44d433) referenced the move from OpenJDK 16 to 17. In April, Arch's OpenJDK package updated to 18. So I installed jre17-openjdk and jdk17-openjdk, then set the environment to 17 (sudo archlinux-java set java-17-openjdk), then ran the build with the JAVA_HOME env set (JAVA_HOME=/usr/lib/jvm/java-17-openjdk makepkg).

BUILD SUCCESSFUL in 10s
17 actionable tasks: 10 executed, 7 up-to-date
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "maptool"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: maptool 1.12.1-1 (Thu 29 Sep 2022 09:40:46 PM)

TLDR; Install openjdk17 and build with THAT version of Java.

1 Install JDK17

$ sudo pacman -S jre17-openjdk jdk17-openjdk

2 Set the version of java

$ sudo archlinux-java set java-17-openjdk

3 Build

$ JAVA_HOME=/usr/lib/jvm/java-17-openjdk makepkg

mozzribo commented on 2022-09-21 16:00 (UTC)

I tried it, even removing the package and cleaning everything, but now I can't even install it. It might be on my end, so for now I'll just download MapTool from the website.

patlefort commented on 2022-09-19 23:53 (UTC)

Can you try cleaning and redownloading the sources? I don't see anything about a :spotlessJava task in the sources.

mozzribo commented on 2022-09-19 23:13 (UTC) (edited on 2022-09-19 23:14 (UTC) by mozzribo)

@patlefort, it seems to be the same (only my kernel is older, but that shouldn't create such issues?):

openjdk 18.0.2 2022-07-19
OpenJDK Runtime Environment (build 18.0.2+0)
OpenJDK 64-Bit Server VM (build 18.0.2+0, mixed mode)
------------------------------------------------------------
Gradle 7.5.1
------------------------------------------------------------

Build time:   2022-08-06 13:53:45 UTC
Revision:     <unknown>

Kotlin:       1.6.21
Groovy:       3.0.10
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          18.0.2 (Oracle Corporation 18.0.2+0)
OS:           Linux 5.10.141-1-MANJARO amd64

What else could be causing the issue?

patlefort commented on 2022-09-19 20:02 (UTC)

@mozzribo: Builds fine for me. What is your java and gradle version? For me:

openjdk 18.0.2 2022-07-19
OpenJDK Runtime Environment (build 18.0.2+0)
OpenJDK 64-Bit Server VM (build 18.0.2+0, mixed mode)
------------------------------------------------------------
Gradle 7.5.1
------------------------------------------------------------

Build time:   2022-08-06 13:53:45 UTC
Revision:     <unknown>

Kotlin:       1.6.21
Groovy:       3.0.10
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          18.0.2 (Oracle Corporation 18.0.2+0)
OS:           Linux 5.19.9-269-tkg-bmq amd6

mozzribo commented on 2022-09-19 15:48 (UTC) (edited on 2022-09-19 15:56 (UTC) by mozzribo)

Hi. It also fails to build for me. I get the following error:

* What went wrong:
Execution failed for task ':spotlessJava'.
> java.lang.reflect.InvocationTargetException

KrisAphalon commented on 2022-04-17 04:58 (UTC) (edited on 2022-04-17 05:00 (UTC) by KrisAphalon)

I tried clearing cache and building, it failed. Then I tried removing the package and installing again, it still failed. (both times with maptool_1.11.5-1_amd64.deb created)

Maybe it has something to do with dependencies, as I'm a minor version or two behind on them. Sorry for the trouble. I'll post an update if it still doesn't work (or simply a comment edit if it does) when I get to update them.

patlefort commented on 2022-04-16 04:15 (UTC)

Builds fine for me, can you try a clean build? Upstream changed something and I had to remove that -1 but they kept the same tag.