{"action":"created","issue":{"url":"https://api.github.com/repos/mojohaus/jaxws-maven-plugin/issues/19","repository_url":"https://api.github.com/repos/mojohaus/jaxws-maven-plugin","labels_url":"https://api.github.com/repos/mojohaus/jaxws-maven-plugin/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/mojohaus/jaxws-maven-plugin/issues/19/comments","events_url":"https://api.github.com/repos/mojohaus/jaxws-maven-plugin/issues/19/events","html_url":"https://github.com/mojohaus/jaxws-maven-plugin/issues/19","id":171691715,"number":19,"title":"Unexpected files get copied to the target dir","user":{"login":"YassineMouhli","id":19685163,"avatar_url":"https://avatars.githubusercontent.com/u/19685163?v=3","gravatar_id":"","url":"https://api.github.com/users/YassineMouhli","html_url":"https://github.com/YassineMouhli","followers_url":"https://api.github.com/users/YassineMouhli/followers","following_url":"https://api.github.com/users/YassineMouhli/following{/other_user}","gists_url":"https://api.github.com/users/YassineMouhli/gists{/gist_id}","starred_url":"https://api.github.com/users/YassineMouhli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YassineMouhli/subscriptions","organizations_url":"https://api.github.com/users/YassineMouhli/orgs","repos_url":"https://api.github.com/users/YassineMouhli/repos","events_url":"https://api.github.com/users/YassineMouhli/events{/privacy}","received_events_url":"https://api.github.com/users/YassineMouhli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-17T15:44:23Z","updated_at":"2016-08-31T22:16:25Z","closed_at":null,"body":"We realized that the execution of wsgen goal with the last version of JAXWS-maven-plugin added (in addition to the generated wsdl(s)) undesirable files like \"*.svn-base\" under .svn directory and \"entries\" in the war result.\r\nThis causing the error below when deploying the war on an application server:\r\n\r\n```\r\ncom.sun.xml.ws.server.ServerRtException: exception during WSDL parsing: jndi:/localhost/SimpleWebService/WEB-INF/wsdl/.svn/files.svn-base\r\nCaused by: com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]\r\n\r\n```\r\n\r\n\r\n\r\nI make a patch, it resolve the problem.\r\nlet me know if you want a pull request !\r\n\r\n\r\n```diff\r\ndiff --git a/src/main/java/org/codehaus/mojo/jaxws/MainWsGenMojo.java b/src/main/java/org/codehaus/mojo/jaxws/MainWsGenMojo.java\r\nindex 28e235f..efc2b5c 100644\r\n--- a/src/main/java/org/codehaus/mojo/jaxws/MainWsGenMojo.java\r\n+++ b/src/main/java/org/codehaus/mojo/jaxws/MainWsGenMojo.java\r\n@@ -76,6 +76,21 @@ public class MainWsGenMojo\r\n      */\r\n     @Parameter( defaultValue = \"${project.build.directory}/generated-sources/wsdl\" )\r\n     private File resourceDestDir;\r\n+    \r\n+    /**\r\n+     * Filter containing the include pattern separated by a \",\" for FileUtils.copyDirectory(..) with Ant syntax\r\n+     * by default include everything\r\n+     * example : to including just the wsdl and xsd files : \"*.wsdl, *.xsd\"\r\n+     */\r\n+    @Parameter(defaultValue = \"**/*\")\r\n+    private String includeFiles;\r\n+    \r\n+    /**\r\n+     * Filter containing the exclude pattern separated by a \",\" for FileUtils.copyDirectory(..) with Ant syntax\r\n+     * by default exclude the .svn and .git directory\r\n+     */\r\n+    @Parameter(defaultValue = \"**/.svn/**, **/.git/**\")\r\n+    private String excludeFiles;\r\n \r\n     /**\r\n      * Either ${build.outputDirectory} or ${build.testOutputDirectory}.\r\n@@ -167,7 +182,7 @@ public class MainWsGenMojo\r\n             getLog().warn( \"Cannot create directory: \" + target.getAbsolutePath() );\r\n         }\r\n         getLog().debug( \"Packaging WSDL(s) to: \" + target );\r\n-        FileUtils.copyDirectory( getResourceDestDir(), target );\r\n+        FileUtils.copyDirectory( getResourceDestDir(), target, includeFiles, excludeFiles);\r\n     }\r\n \r\n     private String getWebappDirectory( Object conf )\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/mojohaus/jaxws-maven-plugin/issues/comments/243919682","html_url":"https://github.com/mojohaus/jaxws-maven-plugin/issues/19#issuecomment-243919682","issue_url":"https://api.github.com/repos/mojohaus/jaxws-maven-plugin/issues/19","id":243919682,"user":{"login":"phax","id":196219,"avatar_url":"https://avatars.githubusercontent.com/u/196219?v=3","gravatar_id":"","url":"https://api.github.com/users/phax","html_url":"https://github.com/phax","followers_url":"https://api.github.com/users/phax/followers","following_url":"https://api.github.com/users/phax/following{/other_user}","gists_url":"https://api.github.com/users/phax/gists{/gist_id}","starred_url":"https://api.github.com/users/phax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phax/subscriptions","organizations_url":"https://api.github.com/users/phax/orgs","repos_url":"https://api.github.com/users/phax/repos","events_url":"https://api.github.com/users/phax/events{/privacy}","received_events_url":"https://api.github.com/users/phax/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T22:16:25Z","updated_at":"2016-08-31T22:16:25Z","body":"You are potentially right. There is a multitude of things that may be ignored depending on the use case and environment. Providing an empty default exclude is what makes most sense in the long run to avoid a never ending growing list...\r\nP.S. I'm not in anyway affiliated with the project - just an interested observer...."}}
{"actor":{"display_login":"phax"}}