diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-04-12 13:39:56 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-04-12 13:51:23 +0700 |
commit | ce3b936892d215a25dbf6e04cf2e6eb143ac291e (patch) | |
tree | 6937c0a1a5034d8f5688489ab8cb337462b89bad /pom.xml | |
parent | f00f547d7b37647880e7f8fc030f9f96dbad9848 (diff) | |
download | aspectj-ce3b936892d215a25dbf6e04cf2e6eb143ac291e.tar.gz aspectj-ce3b936892d215a25dbf6e04cf2e6eb143ac291e.zip |
Fix undetected runtime dependency usage problem from previous commit
In module 'ajdoc', our tests need tools.jar when running on JDK 8 in
order to dynamically compile during runtime. Hence, dependency
com.github.olivergondza:maven-jdk-tools-wrapper was re-added to the POM
(with test scope this time) and Maven Dependency plugin configured to
regard it as a used dependency and not falsely report it as unused.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -255,11 +255,16 @@ <!-- This plugin is nice to have in the POM, because then it is easy to double-click a goal such as 'analyze' or 'tree' from a modern IDE in order to inspect dependency management in the project. + + Tip: If you want a quick overview, run this from the project from the project root directory: + mvn -P \!create-docs dependency:analyze | grep -E '\[(WARNING|INFO\] -+< .+:.+ >-+)' > dependency-analyze.txt + But be careful that all modules are actually listed - usually 'org.aspectj:installer' is the last one in the + list. You can make sure by running the command without 'grep' first, then you see if there are any compile + problems which 'grep' would filter out. --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> - <version>3.1.2</version> <configuration> <ignoredUnusedDeclaredDependencies> <!-- Declared in parent POM for convenience, but not used in every module --> |