{"action":"opened","issue":{"url":"https://api.github.com/repos/mojohaus/jaxb2-maven-plugin/issues/58","repository_url":"https://api.github.com/repos/mojohaus/jaxb2-maven-plugin","labels_url":"https://api.github.com/repos/mojohaus/jaxb2-maven-plugin/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/mojohaus/jaxb2-maven-plugin/issues/58/comments","events_url":"https://api.github.com/repos/mojohaus/jaxb2-maven-plugin/issues/58/events","html_url":"https://github.com/mojohaus/jaxb2-maven-plugin/issues/58","id":180607741,"number":58,"title":"Missing XSD includes/excludes pattern for xjc goal","user":{"login":"dmak","id":366965,"avatar_url":"https://avatars.githubusercontent.com/u/366965?v=3","gravatar_id":"","url":"https://api.github.com/users/dmak","html_url":"https://github.com/dmak","followers_url":"https://api.github.com/users/dmak/followers","following_url":"https://api.github.com/users/dmak/following{/other_user}","gists_url":"https://api.github.com/users/dmak/gists{/gist_id}","starred_url":"https://api.github.com/users/dmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmak/subscriptions","organizations_url":"https://api.github.com/users/dmak/orgs","repos_url":"https://api.github.com/users/dmak/repos","events_url":"https://api.github.com/users/dmak/events{/privacy}","received_events_url":"https://api.github.com/users/dmak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-03T10:27:31Z","updated_at":"2016-10-03T10:27:31Z","closed_at":null,"body":"Suppose in `xsd` folder I have several XSD files, plus XML files. The following configuration causes problem:\r\n```\r\n<groupId>org.codehaus.mojo</groupId>\r\n<artifactId>jaxb2-maven-plugin</artifactId>\r\n<version>2.3</version>\r\n...\r\n<configuration>\r\n\t<sources>\r\n\t\t<source>xsd</source>\r\n\t</sources>\r\n```\r\nThe output is:\r\n```\r\n[DEBUG] Accepted configured sources [D:\\test-plugin\\xsd]\r\n[DEBUG]  [1 existing sources] ...\r\n[DEBUG]    1/1: D:\\test-plugin\\xsd\r\n[DEBUG]  ... End [1 existing sources]\r\n[DEBUG] Accepted file [D:\\test-plugin\\xsd\\different-namespaces-entries.xsd]\r\n[DEBUG] CandidateString [D:\\test-plugin\\xsd\\different-namespaces.xml] matched pattern [(\\p{javaLetterOrDigit}|\\p{Punct})+\\.xml]\r\n[DEBUG] Accepted file [D:\\test-plugin\\xsd\\different-namespaces.xml]\r\n[DEBUG] Accepted file [D:\\test-plugin\\xsd\\different-namespaces.xsd]\r\n[DEBUG] \r\n+=================== [Filtered sources]\r\n|\r\n| 2 Exclude patterns:\r\n| [1/2]: Filter [PatternFileFilter]\r\n|        Accept on match: [true]\r\n|        Initialized    : [true]\r\n|        3 regularExpressions :\r\n|         [1/3]: (\\p{javaLetterOrDigit}|\\p{Punct})+README.*\r\n|         [2/3]: (\\p{javaLetterOrDigit}|\\p{Punct})+\\.xml\r\n|         [3/3]: (\\p{javaLetterOrDigit}|\\p{Punct})+\\.txt\r\n| [2/2]: Filter [PatternFileFilter]\r\n|\r\n| 5 Results:\r\n| [1/3]: file:/D:/test-plugin/xsd/different-namespaces-entries.xsd\r\n| [2/3]: file:/D:/test-plugin/xsd/different-namespaces.xml\r\n| [3/3]: file:/D:/test-plugin/xsd/different-namespaces.xsd\r\n```\r\nXML file is included for compilation (even thought it is supposed to be filtered out by build-in exclusion pattern) and compilation fails. The goal does not support `<schemaSourceExcludeFilters>` which should help. However the best is that `<source>` supports patterns (`<source>xsd/*.xsd</source>`)."}}
{"actor":{"display_login":"dmak"}}