Skip to content

Commit 40ce6ea

Browse files
author
Maruan Sahyoun
committed
PDFBOX-5061: remove jaxb dependency; closes apache#101
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1884944 13f79535-47bb-0310-9956-ffa450edef68
1 parent ec25b02 commit 40ce6ea

File tree

4 files changed

+2
-45
lines changed

4 files changed

+2
-45
lines changed

examples/pom.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,6 @@
4242
<!-- be careful when updating this, because Lucene 8 requires jdk11 -->
4343
</properties>
4444

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-
6045
<dependencies>
6146
<dependency>
6247
<groupId>org.bouncycastle</groupId>

parent/pom.xml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@
141141
<jdk>[9,10]</jdk>
142142
</activation>
143143
<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>
145146
</properties>
146147
</profile>
147148
<!-- need to specify release version so that if PDFBox is built with
@@ -163,8 +164,6 @@
163164
</build>
164165
</profile>
165166
<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 -->
168167
<id>jdk11</id>
169168
<activation>
170169
<jdk>[11,)</jdk>
@@ -173,15 +172,6 @@
173172
<!-- needs to exist even if empty due to problems with jacoco-maven-plugin -->
174173
<addmod></addmod>
175174
</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>
185175
</profile>
186176
<profile>
187177
<id>pedantic</id>

preflight/pom.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,6 @@
3535
<skip-bavaria>true</skip-bavaria>
3636
</properties>
3737

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-
5338
<build>
5439
<plugins>
5540
<plugin>

preflight/src/main/java/org/apache/pdfbox/preflight/PreflightDocument.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ public void setContext(PreflightContext context)
132132
*/
133133
public ValidationResult validate() throws ValidationException
134134
{
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");
138135
context.setConfig(config);
139136
Collection<String> processes = config.getProcessNames();
140137
for (String name : processes)

0 commit comments

Comments
 (0)