diff --git a/tomcat8-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat8/run/RunMojo.java b/tomcat8-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat8/run/RunMojo.java index fe6ccb27..1e8226b6 100644 --- a/tomcat8-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat8/run/RunMojo.java +++ b/tomcat8-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat8/run/RunMojo.java @@ -20,9 +20,7 @@ import org.apache.catalina.Context; import org.apache.catalina.WebResource; -import org.apache.catalina.WebResourceRoot; import org.apache.catalina.WebResourceSet; -import org.apache.catalina.loader.WebappClassLoaderBase; import org.apache.catalina.loader.WebappLoader; import org.apache.catalina.webresources.EmptyResource; import org.apache.catalina.webresources.FileResource; @@ -475,6 +473,7 @@ private WebResource urlToWebResource( URL url, String path ) if ( idx >= 0 ) { String filePath = StringUtils.removeStart( url.getFile().substring( 0, idx ), "file:" ); + filePath = java.net.URLDecoder.decode(filePath, "UTF-8"); jarFile = new JarFile( filePath );