File tree Expand file tree Collapse file tree 3 files changed +22
-6
lines changed
src/main/java/no/seres/xsd/nav/inntektsmelding_m Expand file tree Collapse file tree 3 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 13
13
14
14
<properties >
15
15
<xsd .packagename></xsd .packagename>
16
- <jaxb .version>2.4.0-b180830.0438</jaxb .version>
17
16
</properties >
18
17
19
18
<dependencies >
20
19
<dependency >
21
20
<groupId >org.glassfish.jaxb</groupId >
22
21
<artifactId >jaxb-runtime</artifactId >
23
- <version >${jaxb.version} </version >
22
+ <version >4.0.3 </version >
24
23
<scope >provided</scope >
25
24
</dependency >
26
25
</dependencies >
53
52
<dependency >
54
53
<groupId >org.glassfish.jaxb</groupId >
55
54
<artifactId >jaxb-xjc</artifactId >
56
- <version >${jaxb.version} </version >
55
+ <version >2.4.0-b180830.0438 </version >
57
56
</dependency >
58
57
<dependency >
59
58
<groupId >javax.xml.bind</groupId >
63
62
<dependency >
64
63
<groupId >com.sun.xml.bind</groupId >
65
64
<artifactId >jaxb-impl</artifactId >
66
- <version >${jaxb.version} </version >
65
+ <version >2.4.0-b180830.0438 </version >
67
66
</dependency >
68
67
</dependencies >
69
68
</plugin >
69
+ <plugin >
70
+ <artifactId >maven-antrun-plugin</artifactId >
71
+ <executions >
72
+ <execution >
73
+ <!-- så lenge plugin for å generere java-klasser ikke støtter å generere med jakarta-koordinater for importene, må det fikses slik -->
74
+ <phase >process-sources</phase >
75
+ <configuration >
76
+ <target >
77
+ <replace token = " javax.xml.bind" value =" jakarta.xml.bind" dir =" target/generated-sources/jaxb/no" summary =" true" failOnNoReplacements =" true" />
78
+ </target >
79
+ </configuration >
80
+ <goals >
81
+ <goal >run</goal >
82
+ </goals >
83
+ </execution >
84
+ </executions >
85
+ </plugin >
70
86
71
87
<plugin >
72
88
<groupId >org.apache.maven.plugins</groupId >
Original file line number Diff line number Diff line change 5
5
import java .time .format .DateTimeParseException ;
6
6
import java .util .Objects ;
7
7
8
- import javax .xml .bind .annotation .adapters .XmlAdapter ;
8
+ import jakarta .xml .bind .annotation .adapters .XmlAdapter ;
9
9
10
10
public class DateAdapter extends XmlAdapter <String , LocalDate > {
11
11
Original file line number Diff line number Diff line change 5
5
import java .time .format .DateTimeParseException ;
6
6
import java .util .Objects ;
7
7
8
- import javax .xml .bind .annotation .adapters .XmlAdapter ;
8
+ import jakarta .xml .bind .annotation .adapters .XmlAdapter ;
9
9
10
10
public class DateTimeAdapter extends XmlAdapter <String , LocalDateTime > {
11
11
You can’t perform that action at this time.
0 commit comments