You need to upgrade to Java 11. Maven enforcer is restricting it to be 11 or newer recently.
> On Jun 12, 2021, at 09:01, Tin Vu <[email protected]> wrote: > > Hi all, > > I just cloned the latest version of AsterixDB - master branch > <https://github.com/apache/asterixdb> (0.9.7). When I build the code using > the following command: > ``` > mvn clean package -DskipTests > ``` > > It always show an error: > ``` > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce > (enforce-versions) on project apache-hyracks: Some Enforcer rules have > failed. Look above for specific messages explaining why the rule failed. > ``` > > I'm using Java version 1.8.0_241 and Apache Maven 3.6.0. It worked well in > the past then the error just happened when I rebased my code with the > latest version on master branch. > > I would really appreciate it if someone could help me resolve this issue. > > Thanks, > > Tin
