You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
We have git feature branches that follow the git-flow naming pattern 'feature/somefeature'. On our Jenkins buildserver the / gets encoded to %2f so it is stored in a directory '/some/path/feature%2fsomefeature'.
Now the jaxws-maven-plugin decodes this one step to far when looking for binding files, it looks for binding files in '/some/path/feature/somefeature/' which does not exist, it should look in 'some/path/feature%2fsomefeature/'.
The wsdl files are found correctly, so I made a patch that looks for the binding files the same way as for the wsdl files:
diff --git a/src/main/java/org/jvnet/jax_ws_commons/jaxws/WsImportMojo.java b/src/main/java/org/jvnet/jax_ws_commons/jaxws/WsImportMojo.java
index 3bd6003..b4fb7dd 100644
— a/src/main/java/org/jvnet/jax_ws_commons/jaxws/WsImportMojo.java
+++ b/src/main/java/org/jvnet/jax_ws_commons/jaxws/WsImportMojo.java
@@ -475,7 +475,7 @@ abstract class WsImportMojo extends AbstractJaxwsMojo
We have git feature branches that follow the git-flow naming pattern 'feature/somefeature'. On our Jenkins buildserver the / gets encoded to %2f so it is stored in a directory '/some/path/feature%2fsomefeature'.
Now the jaxws-maven-plugin decodes this one step to far when looking for binding files, it looks for binding files in '/some/path/feature/somefeature/' which does not exist, it should look in 'some/path/feature%2fsomefeature/'.
The wsdl files are found correctly, so I made a patch that looks for the binding files the same way as for the wsdl files:
diff --git a/src/main/java/org/jvnet/jax_ws_commons/jaxws/WsImportMojo.java b/src/main/java/org/jvnet/jax_ws_commons/jaxws/WsImportMojo.java
index 3bd6003..b4fb7dd 100644
— a/src/main/java/org/jvnet/jax_ws_commons/jaxws/WsImportMojo.java
+++ b/src/main/java/org/jvnet/jax_ws_commons/jaxws/WsImportMojo.java
@@ -475,7 +475,7 @@ abstract class WsImportMojo extends AbstractJaxwsMojo
for (File binding : bindings)
{ args.add("-b"); - args.add("'" + binding.getAbsolutePath() + "'"); + args.add("'" + binding.toURI() + "'"); }
getLog().debug( "jaxws:wsimport args: " + args );
–
Environment
linux, windows, java6, java8
Affected Versions
[2.3]
The text was updated successfully, but these errors were encountered: