bug #6023
closedconfiguration problems with maven-antrun-plugin
100%
Description
Problems¶
1.¶
Running 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.
2.¶
Running 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
Related issues
Updated by Andreas Kohlbecker over 6 years ago
- Related to feature request #4716: Other dependencies to be updated added
Updated by Andreas Kohlbecker over 6 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 ...
Updated by Andreas Müller over 6 years ago
- Blocks bug #6025: Remaining open issues for cdmlib-db added
Updated by Andreas Kohlbecker over 6 years ago
- Status changed from New to In Progress
- Target version set to Release 4.4
Updated by Andreas Kohlbecker over 6 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 50
Applied in changeset cdmlib|1ddde622ae10b01976cdb99fb50a469a5506ca7e.
Updated by Andreas Müller over 6 years ago
- Status changed from Resolved to Closed
- Assignee changed from Andreas Müller to Andreas Kohlbecker
Seems to work. I also tested the latest build on a machine with java 1.7 installed (pesihpc) and got no problems.