aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pom.xml
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2021-04-12 13:52:28 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2021-04-12 13:52:28 +0700
commit57350269423de6efcaf42e2f06825110afef4612 (patch)
treef07feaa12835f6f68dad0e25c5d27b59ea93830d /tests/pom.xml
parentce3b936892d215a25dbf6e04cf2e6eb143ac291e (diff)
downloadaspectj-57350269423de6efcaf42e2f06825110afef4612.tar.gz
aspectj-57350269423de6efcaf42e2f06825110afef4612.zip
Fix undetected runtime dependency usage problem from previous commit
In module 'tests', our tests need Ant launcher. Hence, dependency ant:ant-launcher 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 'tests/pom.xml')
-rw-r--r--tests/pom.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/pom.xml b/tests/pom.xml
index a8d5b27aa..d276169f7 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -85,6 +85,13 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <!-- Identical to lib/ant/lib/ant-launcher.jar, a former system-scoped dependency -->
+ <groupId>ant</groupId>
+ <artifactId>ant-launcher</artifactId>
+ <version>${lib.ant.version}</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
@@ -100,6 +107,16 @@
</includes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <configuration>
+ <usedDependencies>
+ <!-- The tests need this during runtime, even though no direct usage is in our classes -->
+ <usedDependency>ant:ant-launcher</usedDependency>
+ </usedDependencies>
+ </configuration>
+ </plugin>
</plugins>
</build>