File tree Expand file tree Collapse file tree 4 files changed +2
-45
lines changed
src/main/java/org/apache/pdfbox/preflight Expand file tree Collapse file tree 4 files changed +2
-45
lines changed Original file line number Diff line number Diff line change 42
42
<!-- be careful when updating this, because Lucene 8 requires jdk11 -->
43
43
</properties >
44
44
45
- <profiles >
46
- <profile >
47
- <activation >
48
- <jdk >[11,)</jdk >
49
- </activation >
50
- <dependencies >
51
- <dependency >
52
- <groupId >javax.xml.bind</groupId >
53
- <artifactId >jaxb-api</artifactId >
54
- <scope >provided</scope >
55
- </dependency >
56
- </dependencies >
57
- </profile >
58
- </profiles >
59
-
60
45
<dependencies >
61
46
<dependency >
62
47
<groupId >org.bouncycastle</groupId >
Original file line number Diff line number Diff line change 141
141
<jdk >[9,10]</jdk >
142
142
</activation >
143
143
<properties >
144
- <addmod >--add-modules java.xml.bind</addmod >
144
+ <!-- needs to exist even if empty due to problems with jacoco-maven-plugin -->
145
+ <addmod ></addmod >
145
146
</properties >
146
147
</profile >
147
148
<!-- need to specify release version so that if PDFBox is built with
163
164
</build >
164
165
</profile >
165
166
<profile >
166
- <!-- from jdk11 onwards java.xml.bind is no longer part of the jdk -->
167
- <!-- must be set to "test" or "provided" in subprojects -->
168
167
<id >jdk11</id >
169
168
<activation >
170
169
<jdk >[11,)</jdk >
173
172
<!-- needs to exist even if empty due to problems with jacoco-maven-plugin -->
174
173
<addmod ></addmod >
175
174
</properties >
176
- <dependencyManagement >
177
- <dependencies >
178
- <dependency >
179
- <groupId >javax.xml.bind</groupId >
180
- <artifactId >jaxb-api</artifactId >
181
- <version >2.3.1</version >
182
- </dependency >
183
- </dependencies >
184
- </dependencyManagement >
185
175
</profile >
186
176
<profile >
187
177
<id >pedantic</id >
Original file line number Diff line number Diff line change 35
35
<skip-bavaria >true</skip-bavaria >
36
36
</properties >
37
37
38
- <profiles >
39
- <profile >
40
- <activation >
41
- <jdk >[11,)</jdk >
42
- </activation >
43
- <dependencies >
44
- <dependency >
45
- <groupId >javax.xml.bind</groupId >
46
- <artifactId >jaxb-api</artifactId >
47
- <scope >provided</scope >
48
- </dependency >
49
- </dependencies >
50
- </profile >
51
- </profiles >
52
-
53
38
<build >
54
39
<plugins >
55
40
<plugin >
Original file line number Diff line number Diff line change @@ -132,9 +132,6 @@ public void setContext(PreflightContext context)
132
132
*/
133
133
public ValidationResult validate () throws ValidationException
134
134
{
135
- // force early class loading to check if people forgot to use --add-modules javax.xml.bind
136
- // on java 9 & 10, or to add jaxb-api on java 11 and later
137
- javax .xml .bind .DatatypeConverter .parseInt ("0" );
138
135
context .setConfig (config );
139
136
Collection <String > processes = config .getProcessNames ();
140
137
for (String name : processes )
You can’t perform that action at this time.
0 commit comments