This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/tomcat-maven-plugin.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 4656590  Set parent classloader
4656590 is described below

commit 46565902dd5104571112eaaaba1b3c00baf36ffa
Author: remm <[email protected]>
AuthorDate: Thu Apr 9 15:12:57 2026 +0200

    Set parent classloader
---
 .../src/main/java/org/apache/tomcat/maven/plugin/tomcat/run/RunMojo.java | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/tomcat-main-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat/run/RunMojo.java
 
b/tomcat-main-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat/run/RunMojo.java
index 5203af3..37d074b 100644
--- 
a/tomcat-main-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat/run/RunMojo.java
+++ 
b/tomcat-main-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat/run/RunMojo.java
@@ -319,6 +319,7 @@ public class RunMojo
             final List<String> classLoaderEntries = 
classLoaderEntriesCalculatorResult.getClassPathEntries();
             final List<File> tmpDirectories = 
classLoaderEntriesCalculatorResult.getTmpDirectories();
 
+            context.setParentClassLoader(this.getClass().getClassLoader());
             context.setResources(new StandardRoot(context));
 
             /* Add jars */


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to