configuration problems with maven-antrun-plugin
mvn clean install with java 1.8 (oracle) on cdmlib fails in cdmlib-model with
The type java.util.Comparator cannot be resolved. It is indirectly referenced from required .class files
However, no problems with java 1.7
The hint on http://www.quweiji.com/the-type-java-lang-object-cannot-be-resolved-it-is-indirectly-referenced/ suggests to look for the cause of this in possible parallel use of different jdk versions in the same project.
mvn clean install with any java version on cdmlib report the warning:
[INFO] --- maven-antrun-plugin:1.3:run (aspectj-main) @ cdmlib-model --- [INFO] Executing tasks [iajc] warning build config error: skipping missing, empty or corrupt aspectpath entry: /var/lib/jenkins/.m2/repository/org/springframework/org.springframework.aspects/4.2.4.RELEASE/org.springframework.aspects-4.2.4.RELEASE.jar
#3 Updated by Andreas Kohlbecker almost 3 years ago
This problem is related to
using iajc with java 1.8 JDK — Comparator cannot be resolved to a type: "It came down to the existence of a copy of aspectjtools.jar within my %ANT_HOME%\lib folder. This JAR had been placed there many, many (many!) years ago. It happened to be the AspectJ 1.6 version of the JAR and its existence there caused ant to use that version even though our build.xml file had been modified at some point to specify the path to AspectJ"
I hope that helps ...