mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
106 stars 77 forks source link

ignores xjcSourceExcludeFilter #90

Open jlatsko opened 7 years ago

jlatsko commented 7 years ago

trying to convince xjc to ignore the CVS files. My pom plugin settings are:

org.codehaus.mojo jaxb2-maven-plugin 2.3.1 target/generatedSources CVS\Entries CVS\Repository CVS\Root CVS CVS\Repository CVS\Root CVS\Entries

The xjbExclude filter is honoring the the settings but the xjcExclude filter is not: Here is snippet from mvn -X jaxb2:xjc

[DEBUG] +=================== [18 XJC Arguments] [0]: -xmlschema [1]: -encoding [2]: Cp1252 [3]: -d [4]: C:\Users\jlatsko\Workspaces\release-2.0.2\cot-rssmanager\target\generated-sources\jaxb [5]: -extension [6]: -episode [7]: C:\Users\jlatsko\Workspaces\release-2.0.2\cot-rssmanager\target\generated-sources\jaxb\META-INF\sun-jaxb.episode [8]: /C:/Users/jlatsko/Workspaces/release-2.0.2/cot-rssmanager/src/main/xsd/Alert.xsd [9]: /C:/Users/jlatsko/Workspaces/release-2.0.2/cot-rssmanager/src/main/xsd/CVS/Entries [10]: /C:/Users/jlatsko/Workspaces/release-2.0.2/cot-rssmanager/src/main/xsd/CVS/Repository [11]: /C:/Users/jlatsko/Workspaces/release-2.0.2/cot-rssmanager/src/main/xsd/CVS/Root [12]: /C:/Users/jlatsko/Workspaces/release-2.0.2/cot-rssmanager/src/main/xsd/Camera.xsd [13]: /C:/Users/jlatsko/Workspaces/release-2.0.2/cot-rssmanager/src/main/xsd/DMS.xsd [14]: /C:/Users/jlatsko/Workspaces/release-2.0.2/cot-rssmanager/src/main/xsd/Global.xsd [15]: /C:/Users/jlatsko/Workspaces/release-2.0.2/cot-rssmanager/src/main/xsd/RoadConditions.xsd [16]: /C:/Users/jlatsko/Workspaces/release-2.0.2/cot-rssmanager/src/main/xsd/Speed.xsd [17]: /C:/Users/jlatsko/Workspaces/release-2.0.2/cot-rssmanager/src/main/xsd/WeatherStation.xsd

+=================== [End 18 XJC Arguments]

lennartj commented 6 years ago

Could be the effect of using "\" which is being interpreted as an escape char. Will move to ant patterns instead; the Java Regexps cause confusion.