Package Details: freeplane-git 1.11.x.6dbb149f9-1

Git Clone URL: https://aur.archlinux.org/freeplane-git.git (read-only, click to copy)
Package Base: freeplane-git
Description: A Java mindmapping tool
Upstream URL: https://github.com/freeplane/freeplane.git
Licenses: GPL
Conflicts: freeplane
Provides: freeplane
Submitter: artafinde
Maintainer: artafinde
Last Packager: artafinde
Votes: 2
Popularity: 0.000000
First Submitted: 2013-11-07 11:29 (UTC)
Last Updated: 2023-02-02 13:22 (UTC)

Dependencies (7)

Required by (0)

Sources (3)

Pinned Comments

jose1711 commented on 2019-06-07 21:33 (UTC)

it would be nice if it says somewhere that archlinux-java should be set to openjdk (won't compile with oracle java)

Latest Comments

1 2 Next › Last »

mkoloberdin commented on 2026-04-10 21:58 (UTC)

Here is a patch to build the current version:

diff --git a/PKGBUILD b/PKGBUILD
index 2911d42..672a618 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
 # Contributor: scrawler@gmail.com

 pkgname=freeplane-git
-_NEXT_VERSION=1.11.x
-pkgver=1.11.x.6dbb149f9
+_NEXT_VERSION=1.13.x
+pkgver=1.13.x.7932847860
 pkgrel=1
 pkgdesc="A Java mindmapping tool"
 arch=('any')
 url="https://github.com/freeplane/freeplane.git"
 license=('GPL')
-makedepends=('git' 'gradle' 'ttf-opensans' 'fontconfig' 'jdk17-openjdk')
+makedepends=('git' 'gradle' 'ttf-opensans' 'fontconfig' 'jdk21-openjdk')
 conflicts=('freeplane')
 provides=('freeplane')
 depends=('java-environment' 'desktop-file-utils')
@@ -27,9 +27,17 @@ pkgver() {
   printf "%s" "${_NEXT_VERSION}.${commit}"
 }

+prepare() {
+  # Pin runtime Java to 21 (latest LTS with Security Manager intact). Freeplane's sandbox protects
+  # user-provided Groovy scripts and formulas from filesystem/network access; Java 24+ removed the
+  # Security Manager (JEP 486) and upstream has no replacement planned.
+  # See https://github.com/freeplane/freeplane/discussions/2124
+  sed -i '/^#!\/bin\/sh$/a export FREEPLANE_JAVA_HOME=/usr/lib/jvm/java-21-openjdk' freeplane.run
+}
+
 build() {
   cd "${pkgname%-*}"
-  export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
+  export JAVA_HOME=/usr/lib/jvm/java-21-openjdk
   export PATH="${JAVA_HOME}/bin:${PATH}"
   gradle -Dorg.gradle.daemon=false build
 }

siegfried42 commented on 2021-01-11 13:57 (UTC)

The build just failed for me. With the --stacktrace option to gradle, I got the following error:

Task :freeplane_mac:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':freeplane_mac:compileJava'.
> Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.

I already have had openjdk 11 installed, and the following command made the build go through:

sudo archlinux-java set java-11-openjdk

artafinde commented on 2020-04-08 07:40 (UTC)

@siegfried42: fixed upsteam.

siegfried42 commented on 2020-04-05 15:06 (UTC)

Currently, a test is failing.

org.freeplane.core.ui.menubuilders.menu.JMenuItemBuilderTest > whenPopupMenuBecomesInvisible_popupListenerIsCalled FAILED
    org.mockito.exceptions.verification.WantedButNotInvoked at JMenuItemBuilderTest.java:257

artafinde commented on 2019-06-07 22:53 (UTC)

@jose1711 hmm I don't use oracle jdk hence I didn't know about it. I'll pin your comment.

jose1711 commented on 2019-06-07 21:33 (UTC)

it would be nice if it says somewhere that archlinux-java should be set to openjdk (won't compile with oracle java)

fnatter commented on 2016-08-27 18:33 (UTC)

@electriprism: for the Debian package I also needed to set org.freeplane.basedirectory: https://anonscm.debian.org/cgit/pkg-java/freeplane.git/tree/debian/patches/20_freeplane_sh.patch but it looks like you're already doing that. Best Regards, Felix

fnatter commented on 2016-08-27 18:10 (UTC)

@electriprism: indeed the policy file needs to be changed for linux packages _if_ it references jars outside of /usr/share/freeplane [1] Not sure if that is your problem though. [1] https://anonscm.debian.org/cgit/pkg-java/freeplane.git/tree/debian/patches/40_allow_usj_codebase.patch Best Regards, Felix

artafinde commented on 2016-06-28 06:38 (UTC) (edited on 2016-06-28 07:13 (UTC) by artafinde)

@electricprism: I just pushed an update. I initially thought that was an upstream issue but confirmed it's package related. Please test and let me know.

electricprism commented on 2016-06-28 01:42 (UTC)

Looks like the policy needs to be adapted ➜ ~ freeplane org.knopflerfish.framework.readonly=true org.knopflerfish.gosg.jars=reference:file:/usr/share/freeplane/core/ org.freeplane.basedirectory=/usr/share/freeplane java.security.policy=/usr/share/freeplane/freeplane.policy org.osgi.framework.storage=/usr/share/freeplane/fwdir Exception in thread "main" java.security.AccessControlException: access denied ("java.util.PropertyPermission" "*" "read,write") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:474) at java.security.AccessController.checkPermission(AccessController.java:685) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1265) at java.lang.System.getProperties(System.java:624) at org.knopflerfish.framework.Main.populateSysProps(Main.java:1125) at org.knopflerfish.framework.Main.<init>(Main.java:163) at org.knopflerfish.framework.Main.main(Main.java:152) at org.freeplane.launcher.Launcher.run(Launcher.java:108) at org.freeplane.launcher.Launcher.launch(Launcher.java:73) at org.freeplane.launcher.Launcher.main(Launcher.java:66)