Score:0

Update Maven causes JAVA_HOME problem

cn flag

I broke maven... I wanted to change from 3.6.0 to 3.8.1 and nothing is working yet

wget https://downloads.apache.org/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.tar.gz
tar xf apache-maven-*.tar.gz -C /opt
ln -s /opt/apache-maven-3.8.1 /opt/maven
nano /etc/profile.d/maven.sh 
chmod +x /etc/profile.d/maven.sh
source /etc/profile.d/maven.sh
mvn -version
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

maven.sh https://paste.gg/p/anonymous/270d92410d25446ba0d312175fb422e3 Something with adoptopenjdk and the java path, but idk I tested a lot

openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (build 16.0.1+9, mixed mode, sharing)

and update-alternatives says:

 /usr/lib/jvm/adoptopenjdk-16-hotspot-amd64/bin/java

Debian 10

Score:0
ao flag

I suggest you downgrade to OpenJDK 15, fix all issues with maven, then upgrade to OpenJDK 16.0.1

There’s an illegal access warning in OpenJDK 15 and maven (released version as of a couple of days ago). I haven’t been able to upgrade Java.

If we could downgrade OpenJDK to version 16, that might be cool.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.