What worked in 2018 does no longer work in 2021.
When running mvn clean test on a machine with JDK 11 as the default JDK much is downloaded correctly, but the build fails with
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.10:compile (default) on project spring-ddd-bank: Execution default of goal org.codehaus.mojo:aspectj-maven-plugin:1.10:compile failed: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.10 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:11.0.11 at specified path /home/knabe/.sdkman/candidates/java/11.0.11.hs-adpt/../lib/tools.jar -> [Help 1]
Before trying to really port the build to JDK 11 we have to make it functional with JDK 8 on a modern machine. The now outdated JDK 8 has to be installed by https://sdkman.io/
This requirement has to be described in the README.md
What worked in 2018 does no longer work in 2021. When running
mvn clean test
on a machine with JDK 11 as the default JDK much is downloaded correctly, but the build fails with[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.10:compile (default) on project spring-ddd-bank: Execution default of goal org.codehaus.mojo:aspectj-maven-plugin:1.10:compile failed: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.10 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:11.0.11 at specified path /home/knabe/.sdkman/candidates/java/11.0.11.hs-adpt/../lib/tools.jar -> [Help 1]
Before trying to really port the build to JDK 11 we have to make it functional with JDK 8 on a modern machine. The now outdated JDK 8 has to be installed by https://sdkman.io/ This requirement has to be described in the README.md