|
94 | 94 | For now, we'll just use "msv", which does not properly define |
95 | 95 | dependencies... |
96 | 96 |
|
97 | | - Also: keep `optional` (`provided` will not work for some reason |
98 | | - with shade plugin?) to prevent dependency |
| 97 | + Also: make these 'provided', since user needs to include them |
| 98 | + directly. Not sure what OSGi thinks about that but... |
99 | 99 | --> |
100 | 100 | <dependency> |
101 | 101 | <groupId>net.java.dev.msv</groupId> |
102 | 102 | <artifactId>msv-core</artifactId> |
103 | 103 | <version>${version.msv}</version> |
104 | | -<!-- |
105 | 104 | <scope>provided</scope> |
106 | | - --> |
107 | 105 | <optional>true</optional> |
108 | 106 | </dependency> |
109 | | - |
110 | 107 | <dependency> |
111 | 108 | <groupId>net.java.dev.msv</groupId> |
112 | | - <artifactId>xsdlib</artifactId> |
| 109 | + <artifactId>msv-rngconverter</artifactId> |
113 | 110 | <version>${version.msv}</version> |
114 | | -<!-- |
115 | 111 | <scope>provided</scope> |
116 | | - --> |
117 | 112 | <optional>true</optional> |
118 | 113 | </dependency> |
119 | | - |
120 | | - <dependency> |
121 | | - <groupId>relaxngDatatype</groupId> |
122 | | - <artifactId>relaxngDatatype</artifactId> |
123 | | - <version>20020414</version> |
124 | | -<!-- |
125 | | - <scope>provided</scope> |
126 | | - --> |
127 | | - </dependency> |
128 | | - |
129 | | - <!-- 03-Jun-2019, tatu: Not sure why this was added as a dep as it's only one class, |
130 | | - `com.sun.msv.writer.relaxng.Driver`, and some metadata. I assumed it was needed by MSV |
131 | | - but at least unit tests do not cache issues. So, will remove from 5.3.0 |
132 | | - --> |
133 | | - |
134 | | -<!-- |
135 | 114 | <dependency> |
136 | 115 | <groupId>net.java.dev.msv</groupId> |
137 | | - <artifactId>msv-rngconverter</artifactId> |
| 116 | + <artifactId>xsdlib</artifactId> |
138 | 117 | <version>${version.msv}</version> |
139 | 118 | <scope>provided</scope> |
140 | 119 | <optional>true</optional> |
141 | 120 | </dependency> |
142 | | ---> |
143 | 121 |
|
144 | 122 | <!-- Then OSGi, needed if using OSGi discovery --> |
145 | 123 | <dependency> |
146 | 124 | <groupId>org.apache.felix</groupId> |
147 | 125 | <artifactId>org.osgi.core</artifactId> |
148 | 126 | <version>1.4.0</version> |
149 | 127 | <optional>true</optional> |
150 | | - <scope>provided</scope> |
| 128 | + <scope>provided</scope> |
151 | 129 | </dependency> |
152 | 130 |
|
153 | | - <!-- Then test deps --> |
| 131 | + <!-- Then test jars |
| 132 | + --> |
154 | 133 |
|
155 | 134 | <dependency> |
156 | 135 | <groupId>junit</groupId> |
|
200 | 179 | </configuration> |
201 | 180 | </plugin> |
202 | 181 |
|
203 | | - <plugin> |
204 | | - <!-- We will shade MSV, partly to simplify deployment, but also to work |
205 | | - around Java 9+ module-info issues (MSV not retrofitted) |
206 | | - --> |
207 | | - <groupId>org.apache.maven.plugins</groupId> |
208 | | - <artifactId>maven-shade-plugin</artifactId> |
209 | | - <executions> |
210 | | - <execution> |
211 | | - <phase>package</phase> |
212 | | - <goals> |
213 | | - <goal>shade</goal> |
214 | | - </goals> |
215 | | - <configuration> |
216 | | - <!-- Too many dynamically resolved dependencies (via class names) |
217 | | - so can not do this, alas: |
218 | | - --> |
219 | | - <minimizeJar>false</minimizeJar> |
220 | | - <artifactSet> |
221 | | - <includes> |
222 | | - <!-- the bundle plugin already did the pulling-in, all we need is the renaming! --> |
223 | | - <include>net.java.dev.msv:msv-core</include> |
224 | | - <include>net.java.dev.msv:xsdlib</include> |
225 | | - <include>relaxngDatatype:relaxngDatatype</include> |
226 | | - <include>com.sun.xml.bind.jaxb:isorelax</include> |
227 | | - </includes> |
228 | | - </artifactSet> |
229 | | - <relocations> |
230 | | - <!-- First, xsdlib (must order first) --> |
231 | | - <relocation> |
232 | | - <pattern>com.sun.msv.xsd</pattern> |
233 | | - <shadedPattern>com.ctc.wstx.shaded.msv.xsd</shadedPattern> |
234 | | - </relocation> |
235 | | - <relocation> <!-- and one stupid little class xsdlib has for reasons --> |
236 | | - <pattern>com.sun.xml.util</pattern> |
237 | | - <shadedPattern>com.ctc.wstx.shaded.msv.xsd_util</shadedPattern> |
238 | | - </relocation> |
239 | | - <relocation> |
240 | | - <pattern>org.relaxng.datatype</pattern> |
241 | | - <shadedPattern>com.ctc.wstx.shaded.msv.relaxng_datatype</shadedPattern> |
242 | | - </relocation> |
243 | | - <relocation> |
244 | | - <pattern>org.iso_relax</pattern> |
245 | | - <shadedPattern>com.ctc.wstx.shaded.msv.org_isorelax</shadedPattern> |
246 | | - </relocation> |
247 | | - <relocation> |
248 | | - <pattern>jp.gr.xml.relax</pattern> |
249 | | - <shadedPattern>com.ctc.wstx.shaded.msv.org_jp_gr_xml</shadedPattern> |
250 | | - </relocation> |
251 | | - |
252 | | - <!-- then msv-core --> |
253 | | - <relocation> |
254 | | - <pattern>com.sun.msv</pattern> |
255 | | - <shadedPattern>com.ctc.wstx.shaded.msv-core</shadedPattern> |
256 | | - </relocation> |
257 | | - </relocations> |
258 | | - <!-- Need to ensure class names for services get translated as well... --> |
259 | | - <transformers> |
260 | | - <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
261 | | - </transformers> |
262 | | - </configuration> |
263 | | - </execution> |
264 | | - </executions> |
265 | | - </plugin> |
266 | | - |
267 | | - |
268 | | - <!-- 03-Jun-2019, tatu: Trying to rudimentary JDK9+ module info. To build with JDK 8 |
| 182 | + <!-- 12-Mar-2019, tatu: Add rudimentary JDK9+ module info. To build with JDK 8 |
269 | 183 | will have to use `moduleInfoFile` which is crappy but anything else requires |
270 | | - JDK 9+. |
271 | | -
|
272 | | - ... does not yet work tho, commented out |
| 184 | + JDK 9+. With Jackson 3.0 will upgrade. |
273 | 185 | --> |
274 | 186 | <!-- |
275 | 187 | <plugin> |
|
297 | 209 |
|
298 | 210 | <reporting> |
299 | 211 | <plugins> |
| 212 | + <!-- |
| 213 | + <plugin> |
| 214 | + <artifactId>maven-changelog-plugin</artifactId> |
| 215 | + </plugin> |
| 216 | + --> |
300 | 217 | <plugin> |
301 | 218 | <artifactId>maven-javadoc-plugin</artifactId> |
302 | | - <!-- |
303 | | - <plugin> |
304 | | - <artifactId>maven-changelog-plugin</artifactId> |
305 | | - </plugin> |
306 | | - --> |
307 | 219 | <configuration> |
308 | 220 | <show>private</show> |
309 | 221 | <serialwarn>true</serialwarn> |
|
0 commit comments