Build Error

35 views
Skip to first unread message

David Yak

unread,
Dec 23, 2021, 9:22:38 PM12/23/21
to CrafterCMS
Should be simple - I think I have all the pre-reqs.  Ubuntu 20.04 LTS. Thanks for helping. What else do you need to know?

$ java -version
openjdk version "1.8.0_312"
OpenJDK Runtime Environment (build 1.8.0_312-8u312-b07-0ubuntu1~20.04-b07)
OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)

$ mvn -version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_312, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "5.11.0-1022-oracle", arch: "amd64", family: "unix"


./gradlew build


> Task :build
Building groovy-sandbox
Building script-security-plugin

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project script-security: Fatal error compiling: invalid target release: 11 -> [Help 1]
[ERROR]

David Yak

unread,
Dec 24, 2021, 10:29:02 AM12/24/21
to CrafterCMS
One thing I am happy to try... I have just created a new empty Ubuntu 20.04 LTS server and have not updated or installed anything yet. Is there a recipe for everything that I should install or set up before running the build? Verifications that I can run to make sure the correct library and tool versions are installed?

yak

Sumer Jabri

unread,
Dec 24, 2021, 5:46:12 PM12/24/21
to CrafterCMS
Hi David,

Building from source will build Crafter CMS v4 (which is what you want to be building and trying out). Crafter CMS v4 requires Java 11 and other prereqs, please see https://docs.craftercms.org/en/4.0/system-administrators/activities/installing-and-verifying-prerequisites.html

Join Slack or Discord for more interactive support from the team/community.

Crafter CMS v4 RC1 will be coming out in the next week or two. The full Crafter CMS v4.0.0 is targeted for GA in Q1 2022.

For building older versions of Crafter CMS, you'll need to checkout the desired branch.

--sumer

Reply all
Reply to author
Forward
0 new messages