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 458fc1d Work around for versioned paths
458fc1d is described below
commit 458fc1dd313b8ced22c9f0ca941e34170607e3c2
Author: remm <[email protected]>
AuthorDate: Fri Apr 10 21:26:31 2026 +0200
Work around for versioned paths
Tentative fix.
MTOMCAT-290
PR#14 submitted by Olivier Roger
---
.../apache/tomcat/maven/plugin/tomcat/run/AbstractRunMojo.java | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/run/AbstractRunMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/run/AbstractRunMojo.java
index ede2edf..acaa003 100644
---
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/run/AbstractRunMojo.java
+++
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/run/AbstractRunMojo.java
@@ -633,9 +633,13 @@ public abstract class AbstractRunMojo
* @return the webapp context path
*/
@Override
- protected String getPath()
- {
- return path;
+ protected String getPath() {
+ String versionSeparator = "##";
+ if (path.contains(versionSeparator)) {
+ return path.substring(0, path.indexOf(versionSeparator));
+ } else {
+ return path;
+ }
}
protected void enhanceContext( final Context context )
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]