Why java.util is accessible from more than one module : <unnamed>, java.base

Viewed 37

I am new to java and working on mutlimodule maven project. I am trying to upgrade project from java 8 to java 11. but when i run 'mvn clean install' i get below error:

[ERROR] Failed to execute goal com.nickwongdev:aspectj-maven-plugin:1.12.6:compile (default) on project module-1: AJC compiler errors:
[ERROR] error at import java.util.Collection;
[ERROR]        ^^^^^^^^

[ERROR] /home/project-name/module-1/apect/classname1.java:22:0::0 The package java.util is accessible from more than one module: <unnamed>, java.base

I am unable to figure out why and where is . i am using sdk version 11.0.16 and apache maven 3.8.6.

0 Answers
Related