|
30 | 30 | <artifactId>signature-api-specification-jaxb</artifactId> |
31 | 31 |
|
32 | 32 | <properties> |
33 | | - <xsd.directory>${project.basedir}/target/generated-resources/xsd</xsd.directory> |
| 33 | + <xsd.directory>${project.build.directory}/generated-resources/xsd</xsd.directory> |
| 34 | + <xjc.build.directory>${project.build.directory}/generated-sources/xjc</xjc.build.directory> |
34 | 35 | </properties> |
35 | 36 |
|
36 | 37 | <dependencyManagement> |
37 | 38 | <dependencies> |
38 | 39 | <dependency> |
39 | 40 | <groupId>org.junit</groupId> |
40 | 41 | <artifactId>junit-bom</artifactId> |
41 | | - <version>5.9.2</version> |
| 42 | + <version>5.10.0</version> |
42 | 43 | <type>pom</type> |
43 | 44 | <scope>import</scope> |
44 | 45 | </dependency> |
|
63 | 64 | <scope>runtime</scope> |
64 | 65 | </dependency> |
65 | 66 | <dependency> |
66 | | - <groupId>org.jvnet.jaxb2_commons</groupId> |
| 67 | + <groupId>org.jvnet.jaxb</groupId> |
67 | 68 | <artifactId>jaxb2-basics-runtime</artifactId> |
68 | | - <version>0.12.0</version> |
| 69 | + <version>2.0.9</version> |
69 | 70 | </dependency> |
70 | 71 | <dependency> |
71 | 72 | <groupId>no.digipost.signature</groupId> |
|
105 | 106 | <dependency> |
106 | 107 | <groupId>nl.jqno.equalsverifier</groupId> |
107 | 108 | <artifactId>equalsverifier</artifactId> |
108 | | - <version>3.14</version> |
| 109 | + <version>3.15.1</version> |
109 | 110 | <scope>test</scope> |
110 | 111 | </dependency> |
111 | 112 | <dependency> |
112 | 113 | <groupId>org.javers</groupId> |
113 | 114 | <artifactId>javers-core</artifactId> |
114 | | - <version>6.9.1</version> |
| 115 | + <version>6.14.0</version> |
115 | 116 | <scope>test</scope> |
116 | 117 | </dependency> |
117 | 118 | <dependency> |
|
123 | 124 | <dependency> |
124 | 125 | <groupId>org.slf4j</groupId> |
125 | 126 | <artifactId>slf4j-api</artifactId> |
126 | | - <version>2.0.6</version> |
| 127 | + <version>2.0.9</version> |
127 | 128 | <scope>test</scope> |
128 | 129 | </dependency> |
129 | 130 | <dependency> |
130 | 131 | <groupId>org.slf4j</groupId> |
131 | 132 | <artifactId>slf4j-simple</artifactId> |
132 | | - <version>2.0.6</version> |
| 133 | + <version>2.0.9</version> |
133 | 134 | <scope>test</scope> |
134 | 135 | </dependency> |
135 | 136 | <dependency> |
|
144 | 145 | <pluginManagement> |
145 | 146 | <plugins> |
146 | 147 | <plugin> |
147 | | - <groupId>org.jvnet.jaxb2.maven2</groupId> |
148 | | - <artifactId>maven-jaxb2-plugin</artifactId> |
149 | | - <version>0.14.0</version> |
| 148 | + <groupId>org.jvnet.jaxb</groupId> |
| 149 | + <artifactId>jaxb-maven-plugin</artifactId> |
| 150 | + <version>2.0.9</version> |
| 151 | + <configuration> |
| 152 | + <specVersion>2.3</specVersion> |
| 153 | + <schemaDirectory>${xsd.directory}</schemaDirectory> |
| 154 | + <catalog>${xsd.directory}/catalog.xml</catalog> |
| 155 | + <strict>false</strict> |
| 156 | + <extension>true</extension> |
| 157 | + <bindingDirectory>${project.basedir}/src/main/jaxb</bindingDirectory> |
| 158 | + <args> |
| 159 | + <arg>-Xxew</arg> |
| 160 | + <arg>-Xxew:instantiate lazy</arg> |
| 161 | + <arg>-Xxew:control ${project.basedir}/src/main/jaxb/xew-control.properties</arg> |
| 162 | + <arg>-XtoString</arg> |
| 163 | + <arg>-XtoString-toStringStrategyClass=no.digipost.signature.jaxb.basics.LessFuzzToStringStrategy</arg> |
| 164 | + <arg>-Xjavadoc</arg> |
| 165 | + <arg>-Xvalue-constructor</arg> |
| 166 | + <arg>-Xfluent-api</arg> |
| 167 | + <arg>-Xinheritance</arg> |
| 168 | + <arg>-Xannotate</arg> |
| 169 | + </args> |
| 170 | + <plugins> |
| 171 | + <plugin> |
| 172 | + <groupId>org.jvnet.jaxb</groupId> |
| 173 | + <artifactId>jaxb2-basics</artifactId> |
| 174 | + <version>2.0.9</version> |
| 175 | + </plugin> |
| 176 | + <plugin> |
| 177 | + <groupId>org.jvnet.jaxb</groupId> |
| 178 | + <artifactId>jaxb-basics-annotate</artifactId> |
| 179 | + <version>2.0.9</version> |
| 180 | + </plugin> |
| 181 | + <plugin> |
| 182 | + <groupId>org.apache.cxf.xjcplugins</groupId> |
| 183 | + <artifactId>cxf-xjc-javadoc</artifactId> |
| 184 | + <version>3.3.2</version> |
| 185 | + </plugin> |
| 186 | + <plugin> |
| 187 | + <groupId>com.github.jaxb-xew-plugin</groupId> |
| 188 | + <artifactId>jaxb-xew-plugin</artifactId> |
| 189 | + <version>1.11</version> |
| 190 | + </plugin> |
| 191 | + </plugins> |
| 192 | + </configuration> |
150 | 193 | </plugin> |
151 | 194 | <plugin> |
152 | 195 | <artifactId>maven-javadoc-plugin</artifactId> |
|
176 | 219 | </executions> |
177 | 220 | </plugin> |
178 | 221 | <plugin> |
179 | | - <groupId>org.jvnet.jaxb2.maven2</groupId> |
180 | | - <artifactId>maven-jaxb2-plugin</artifactId> |
| 222 | + <groupId>org.jvnet.jaxb</groupId> |
| 223 | + <artifactId>jaxb-maven-plugin</artifactId> |
181 | 224 | <executions> |
182 | 225 | <execution> |
| 226 | + <id>xmldsig</id> |
| 227 | + <goals> |
| 228 | + <goal>generate</goal> |
| 229 | + </goals> |
| 230 | + <configuration> |
| 231 | + <bindingIncludes>bindings-xmldsig.xjb</bindingIncludes> |
| 232 | + <generateDirectory>${xjc.build.directory}/xmldsig</generateDirectory> |
| 233 | + <schemaIncludes> |
| 234 | + <include>thirdparty/xmldsig-core-schema.xsd</include> |
| 235 | + </schemaIncludes> |
| 236 | + </configuration> |
| 237 | + </execution> |
| 238 | + <execution> |
| 239 | + <id>xades</id> |
183 | 240 | <goals> |
184 | 241 | <goal>generate</goal> |
185 | 242 | </goals> |
| 243 | + <configuration> |
| 244 | + <bindingIncludes>bindings-xades.xjb</bindingIncludes> |
| 245 | + <generateDirectory>${xjc.build.directory}/xades</generateDirectory> |
| 246 | + <schemaIncludes> |
| 247 | + <include>thirdparty/XAdES.xsd</include> |
| 248 | + </schemaIncludes> |
| 249 | + <args combine.children="append"> |
| 250 | + <arg>-b</arg> |
| 251 | + <arg>${xjc.build.directory}/xmldsig/META-INF/sun-jaxb.episode</arg> |
| 252 | + </args> |
| 253 | + </configuration> |
| 254 | + </execution> |
| 255 | + <execution> |
| 256 | + <id>asice</id> |
| 257 | + <goals> |
| 258 | + <goal>generate</goal> |
| 259 | + </goals> |
| 260 | + <configuration> |
| 261 | + <bindingIncludes>bindings-ts_102918v010201.xjb</bindingIncludes> |
| 262 | + <generateDirectory>${xjc.build.directory}/asice</generateDirectory> |
| 263 | + <schemaIncludes> |
| 264 | + <include>thirdparty/ts_102918v010201.xsd</include> |
| 265 | + </schemaIncludes> |
| 266 | + <args combine.children="append"> |
| 267 | + <arg>-b</arg> |
| 268 | + <arg>${xjc.build.directory}/xmldsig/META-INF/sun-jaxb.episode</arg> |
| 269 | + </args> |
| 270 | + </configuration> |
| 271 | + </execution> |
| 272 | + <execution> |
| 273 | + <id>sign</id> |
| 274 | + <goals> |
| 275 | + <goal>generate</goal> |
| 276 | + </goals> |
| 277 | + <configuration> |
| 278 | + <bindingIncludes>bindings-sign.xjb</bindingIncludes> |
| 279 | + <generateDirectory>${xjc.build.directory}/sign</generateDirectory> |
| 280 | + <schemaIncludes> |
| 281 | + <include>direct-and-portal.xsd</include> |
| 282 | + </schemaIncludes> |
| 283 | + <args combine.children="append"> |
| 284 | + <arg>-b</arg> |
| 285 | + <arg>${xjc.build.directory}/asice/META-INF/sun-jaxb.episode</arg> |
| 286 | + <arg>-b</arg> |
| 287 | + <arg>${xjc.build.directory}/xades/META-INF/sun-jaxb.episode</arg> |
| 288 | + </args> |
| 289 | + </configuration> |
| 290 | + </execution> |
| 291 | + </executions> |
| 292 | + </plugin> |
| 293 | + <plugin> |
| 294 | + <artifactId>maven-antrun-plugin</artifactId> |
| 295 | + <executions> |
| 296 | + <execution> |
| 297 | + <phase>process-sources</phase> |
| 298 | + <goals> |
| 299 | + <goal>run</goal> |
| 300 | + </goals> |
| 301 | + <configuration> |
| 302 | + <target> |
| 303 | + <!-- This is a hack to remove excess ObjectFactory classes generated by xjc, |
| 304 | + even though the use of episodes are supposed to prevent that from happening. |
| 305 | + Seems like DigestValue, mapped to a Java byte[], is not included in the |
| 306 | + episode file generated from the compilation of xmldsig-core-schema, and are therefore |
| 307 | + regenerated in the compilation of xades.xsd and ts_102918v010201.xsd, resulting in a |
| 308 | + duplicate class error when compiling the generated Java code. |
| 309 | + See https://stackoverflow.com/a/32649545 --> |
| 310 | + <delete dir="${xjc.build.directory}/asice/no/digipost/signature/api/xml/thirdparty/xmldsig"/> |
| 311 | + <delete dir="${xjc.build.directory}/xades/no/digipost/signature/api/xml/thirdparty/xmldsig"/> |
| 312 | + </target> |
| 313 | + </configuration> |
186 | 314 | </execution> |
187 | 315 | </executions> |
188 | | - <dependencies> |
189 | | - <dependency> |
190 | | - <groupId>org.glassfish.jaxb</groupId> |
191 | | - <artifactId>jaxb-runtime</artifactId> |
192 | | - <version>2.3.8</version> |
193 | | - </dependency> |
194 | | - </dependencies> |
195 | | - <configuration> |
196 | | - <specVersion>2.2</specVersion> |
197 | | - <schemaDirectory>${xsd.directory}</schemaDirectory> |
198 | | - <schemaIncludes> |
199 | | - <include>direct-and-portal.xsd</include> |
200 | | - <include>thirdparty/*.xsd</include> |
201 | | - </schemaIncludes> |
202 | | - <catalog>${xsd.directory}/catalog.xml</catalog> |
203 | | - <strict>false</strict> |
204 | | - <extension>true</extension> |
205 | | - <removeOldOutput>true</removeOldOutput> |
206 | | - <bindingDirectory>${project.basedir}/src/main/jaxb</bindingDirectory> |
207 | | - <args> |
208 | | - <arg>-Xxew</arg> |
209 | | - <arg>-Xxew:instantiate lazy</arg> |
210 | | - <arg>-Xxew:control ${project.basedir}/src/main/jaxb/xew-control.properties</arg> |
211 | | - <arg>-XtoString</arg> |
212 | | - <arg>-XtoString-toStringStrategyClass=no.digipost.signature.jaxb.basics.LessFuzzToStringStrategy</arg> |
213 | | - <arg>-Xjavadoc</arg> |
214 | | - <arg>-Xvalue-constructor</arg> |
215 | | - <arg>-Xfluent-api</arg> |
216 | | - <arg>-Xinheritance</arg> |
217 | | - <arg>-Xannotate</arg> |
218 | | - </args> |
219 | | - <plugins> |
220 | | - <plugin> |
221 | | - <groupId>org.jvnet.jaxb2_commons</groupId> |
222 | | - <artifactId>jaxb2-basics</artifactId> |
223 | | - <version>0.12.0</version> |
224 | | - </plugin> |
225 | | - <plugin> |
226 | | - <groupId>org.jvnet.jaxb2_commons</groupId> |
227 | | - <artifactId>jaxb2-basics-annotate</artifactId> |
228 | | - <version>1.1.0</version> |
229 | | - </plugin> |
230 | | - <plugin> |
231 | | - <groupId>org.jvnet.jaxb2_commons</groupId> |
232 | | - <artifactId>jaxb2-fluent-api</artifactId> |
233 | | - <version>3.0</version> |
234 | | - </plugin> |
235 | | - <plugin> |
236 | | - <groupId>org.jvnet.jaxb2_commons</groupId> |
237 | | - <artifactId>jaxb2-value-constructor</artifactId> |
238 | | - <version>3.0</version> |
239 | | - </plugin> |
240 | | - <plugin> |
241 | | - <groupId>org.apache.cxf.xjcplugins</groupId> |
242 | | - <artifactId>cxf-xjc-javadoc</artifactId> |
243 | | - <version>3.3.1</version> |
244 | | - </plugin> |
245 | | - <plugin> |
246 | | - <groupId>com.github.jaxb-xew-plugin</groupId> |
247 | | - <artifactId>jaxb-xew-plugin</artifactId> |
248 | | - <version>1.10</version> |
249 | | - </plugin> |
250 | | - </plugins> |
251 | | - </configuration> |
252 | 316 | </plugin> |
253 | 317 |
|
254 | 318 | </plugins> |
|
0 commit comments