[java-mvn-enforcer] 03/03: Stop using deprecated method.

Codeberg noreply at shibboleth.net
Tue Sep 29 16:24:32 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository java-mvn-enforcer.

View the commit online:
https://codeberg.org/Shibboleth/java-mvn-enforcer/commit/8283aecfdca923b7f3460d99694d94abe754cceb

commit 8283aecfdca923b7f3460d99694d94abe754cceb
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Sep 29 16:18:03 2026 +0100

    Stop using deprecated method.
    
    In the never-exercised checkDependencies/listJarSources we used a deprecated
    method on org.apache.maven.shared.invoker.InvocationRequest
    
    Replace as suggested.
---
 src/main/java/net/shibboleth/mvn/enforcer/impl/DependencyChecker.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/net/shibboleth/mvn/enforcer/impl/DependencyChecker.java b/src/main/java/net/shibboleth/mvn/enforcer/impl/DependencyChecker.java
index 6f0feca..bc8375c 100644
--- a/src/main/java/net/shibboleth/mvn/enforcer/impl/DependencyChecker.java
+++ b/src/main/java/net/shibboleth/mvn/enforcer/impl/DependencyChecker.java
@@ -380,7 +380,7 @@ public class DependencyChecker {
         final InvocationRequest request = new DefaultInvocationRequest().
                 setProperties(props).
                 setPomFile(pomFile).
-                setGoals(List.of( "dependency:copy-dependencies"));
+                addArg("dependency:copy-dependencies");
 
         final Invoker invoker = new DefaultInvoker();
         log.info("Invoking recursive 'mvn dependency:copy-dependencies' on {}", artifact);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list