Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

jaxws-maven-plugin: Binding files can not be found if path contains encoded charecters like %2f #137

@glassfishrobot

Description

@glassfishrobot

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]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions