As subject hints, I am not able to run tests in IDEA anymore after Java 11
upgrade. I have deleted all IDEA related files and issued a clean Maven
build:

$ rm -rf ./.idea ./**/*.iml
$ rm -rf ~/.m2/repository/org/apache/logging/log4j/*/3*-SNAPSHOT
$ ./mvnw clean install -DskipTests=true

Opened the directory using IDEA (2021.1 RC), but couldn't get it to have
successful build:

W: Output path
/home/vy/Projects/log4j/3/log4j-core/target/generated-sources/annotations
intersects with a source root. Only files that were created by build will
be cleaned
W: Output path
/home/vy/Projects/log4j/3/log4j-plugins/target/generated-test-sources/test-annotations
intersects with a source root. Only files that were created by build will
be cleaned
W: Output path
/home/vy/Projects/log4j/3/log4j-layout-template-json/target/generated-test-sources/test-annotations
intersects with a source root. Only files that were created by build will
be cleaned
W: Output path
/home/vy/Projects/log4j/3/log4j-plugins/target/generated-sources/annotations
intersects with a source root. Only files that were created by build will
be cleaned
W: Output path
/home/vy/Projects/log4j/3/log4j-layout-template-json/target/generated-sources/annotations
intersects with a source root. Only files that were created by build will
be cleaned
W: Output path
/home/vy/Projects/log4j/3/log4j-layout-jackson-json/target/generated-sources/annotations
intersects with a source root. Only files that were created by build will
be cleaned
W: Output path
/home/vy/Projects/log4j/3/log4j-core/target/generated-test-sources/test-annotations
intersects with a source root. Only files that were created by build will
be cleaned

*E: Cannot build maven-annotations-production:log4j-api because it is
included into a circular dependency (module 'log4j-api' production,
maven-annotations-production:log4j-api, module 'log4j-plugins' production,
maven-annotations-production:log4j-plugins)E: Cannot build
maven-annotations-test:log4j-plugins because it is included into a circular
dependency (maven-annotations-test:log4j-plugins, module 'log4j-api' tests,
maven-annotations-test:log4j-api, module 'log4j-plugins' tests)*

Did you get it working? What shall I do to make it work?

Reply via email to