Skip to content

Commit ebb6eb0

Browse files
authored
Merge pull request #996 from sbliven/fix-jaxb
Change JAXB implementation for better java version compatibility
2 parents baefba4 + a35d0b6 commit ebb6eb0

File tree

6 files changed

+220
-208
lines changed

6 files changed

+220
-208
lines changed

biojava-aa-prop/pom.xml

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
<build>
2121
<plugins>
2222
<!-- Excluding demo package is required for avoiding namespace clashes (demo package is in all modules) for signing the jar. See issue #387 -->
23-
<plugin>
24-
<groupId>org.apache.maven.plugins</groupId>
25-
<artifactId>maven-jar-plugin</artifactId>
26-
<configuration>
27-
<excludes>
28-
<exclude>demo/**</exclude>
29-
</excludes>
30-
</configuration>
31-
</plugin>
23+
<plugin>
24+
<groupId>org.apache.maven.plugins</groupId>
25+
<artifactId>maven-jar-plugin</artifactId>
26+
<configuration>
27+
<excludes>
28+
<exclude>demo/**</exclude>
29+
</excludes>
30+
</configuration>
31+
</plugin>
3232

3333
<plugin>
3434
<groupId>org.apache.maven.plugins</groupId>
@@ -80,28 +80,37 @@
8080

8181
<!-- logging dependencies (managed by parent pom, don't set versions or scopes here) -->
8282
<dependency>
83-
<groupId>org.slf4j</groupId>
84-
<artifactId>slf4j-api</artifactId>
85-
</dependency>
86-
<!-- binding for log4j2, scope=runTime set in parent pom -->
87-
<dependency>
88-
<groupId>org.apache.logging.log4j</groupId>
89-
<artifactId>log4j-slf4j-impl</artifactId>
90-
</dependency>
91-
<dependency>
92-
<groupId>org.apache.logging.log4j</groupId>
93-
<artifactId>log4j-api</artifactId>
94-
</dependency>
95-
<dependency>
96-
<groupId>org.apache.logging.log4j</groupId>
97-
<artifactId>log4j-core</artifactId>
98-
</dependency>
83+
<groupId>org.slf4j</groupId>
84+
<artifactId>slf4j-api</artifactId>
85+
</dependency>
86+
<!-- binding for log4j2, scope=runTime set in parent pom -->
87+
<dependency>
88+
<groupId>org.apache.logging.log4j</groupId>
89+
<artifactId>log4j-slf4j-impl</artifactId>
90+
</dependency>
91+
<dependency>
92+
<groupId>org.apache.logging.log4j</groupId>
93+
<artifactId>log4j-api</artifactId>
94+
</dependency>
95+
<dependency>
96+
<groupId>org.apache.logging.log4j</groupId>
97+
<artifactId>log4j-core</artifactId>
98+
</dependency>
9999

100100

101101
<dependency>
102102
<groupId>junit</groupId>
103103
<artifactId>junit</artifactId>
104104
<scope>test</scope>
105105
</dependency>
106+
107+
<dependency>
108+
<groupId>javax.xml.bind</groupId>
109+
<artifactId>jaxb-api</artifactId>
110+
</dependency>
111+
<dependency>
112+
<groupId>org.glassfish.jaxb</groupId>
113+
<artifactId>jaxb-runtime</artifactId>
114+
</dependency>
106115
</dependencies>
107-
</project>
116+
</project>

biojava-core/pom.xml

Lines changed: 46 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
<plugins>
2727

2828
<!-- Excluding demo package is required for avoiding namespace clashes (demo package is in all modules) for signing the jar. See issue #387 -->
29-
<plugin>
30-
<groupId>org.apache.maven.plugins</groupId>
31-
<artifactId>maven-jar-plugin</artifactId>
32-
<configuration>
33-
<excludes>
34-
<exclude>demo/**</exclude>
35-
</excludes>
36-
</configuration>
37-
</plugin>
29+
<plugin>
30+
<groupId>org.apache.maven.plugins</groupId>
31+
<artifactId>maven-jar-plugin</artifactId>
32+
<configuration>
33+
<excludes>
34+
<exclude>demo/**</exclude>
35+
</excludes>
36+
</configuration>
37+
</plugin>
3838

3939
</plugins>
4040
</build>
@@ -43,35 +43,43 @@
4343
<groupId>junit</groupId>
4444
<artifactId>junit</artifactId>
4545
</dependency>
46-
<dependency>
47-
<groupId>org.junit.jupiter</groupId>
48-
<artifactId>junit-jupiter-engine</artifactId>
49-
</dependency>
50-
<dependency>
51-
<groupId>org.junit.jupiter</groupId>
52-
<artifactId>junit-jupiter-params</artifactId>
53-
</dependency>
54-
<dependency>
55-
<groupId>org.junit.vintage</groupId>
56-
<artifactId>junit-vintage-engine</artifactId>
57-
</dependency>
46+
<dependency>
47+
<groupId>org.junit.jupiter</groupId>
48+
<artifactId>junit-jupiter-engine</artifactId>
49+
</dependency>
50+
<dependency>
51+
<groupId>org.junit.jupiter</groupId>
52+
<artifactId>junit-jupiter-params</artifactId>
53+
</dependency>
54+
<dependency>
55+
<groupId>org.junit.vintage</groupId>
56+
<artifactId>junit-vintage-engine</artifactId>
57+
</dependency>
5858
<!-- logging dependencies (managed by parent pom, don't set versions or scopes here) -->
5959
<dependency>
60-
<groupId>org.slf4j</groupId>
61-
<artifactId>slf4j-api</artifactId>
62-
</dependency>
63-
<!-- binding for log4j2, scope=runTime set in parent pom -->
64-
<dependency>
65-
<groupId>org.apache.logging.log4j</groupId>
66-
<artifactId>log4j-slf4j-impl</artifactId>
67-
</dependency>
68-
<dependency>
69-
<groupId>org.apache.logging.log4j</groupId>
70-
<artifactId>log4j-api</artifactId>
71-
</dependency>
72-
<dependency>
73-
<groupId>org.apache.logging.log4j</groupId>
74-
<artifactId>log4j-core</artifactId>
75-
</dependency>
60+
<groupId>org.slf4j</groupId>
61+
<artifactId>slf4j-api</artifactId>
62+
</dependency>
63+
<!-- binding for log4j2, scope=runTime set in parent pom -->
64+
<dependency>
65+
<groupId>org.apache.logging.log4j</groupId>
66+
<artifactId>log4j-slf4j-impl</artifactId>
67+
</dependency>
68+
<dependency>
69+
<groupId>org.apache.logging.log4j</groupId>
70+
<artifactId>log4j-api</artifactId>
71+
</dependency>
72+
<dependency>
73+
<groupId>org.apache.logging.log4j</groupId>
74+
<artifactId>log4j-core</artifactId>
75+
</dependency>
76+
<dependency>
77+
<groupId>javax.xml.bind</groupId>
78+
<artifactId>jaxb-api</artifactId>
79+
</dependency>
80+
<dependency>
81+
<groupId>org.glassfish.jaxb</groupId>
82+
<artifactId>jaxb-runtime</artifactId>
83+
</dependency>
7684
</dependencies>
77-
</project>
85+
</project>

biojava-modfinder/pom.xml

Lines changed: 78 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,88 @@
11
<?xml version="1.0"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
4-
<parent>
5-
<artifactId>biojava</artifactId>
6-
<groupId>org.biojava</groupId>
7-
<version>6.0.1-SNAPSHOT</version>
8-
</parent>
9-
<artifactId>biojava-modfinder</artifactId>
10-
<name>biojava-modfinder</name>
11-
<url>http://www.biojava.org</url>
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<artifactId>biojava</artifactId>
6+
<groupId>org.biojava</groupId>
7+
<version>6.0.1-SNAPSHOT</version>
8+
</parent>
9+
<artifactId>biojava-modfinder</artifactId>
10+
<name>biojava-modfinder</name>
11+
<url>http://www.biojava.org</url>
1212

13-
<licenses>
14-
<license>
15-
<name>GNU LGPL v2</name>
16-
<url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url>
17-
<distribution>repo</distribution>
18-
</license>
19-
</licenses>
13+
<licenses>
14+
<license>
15+
<name>GNU LGPL v2</name>
16+
<url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url>
17+
<distribution>repo</distribution>
18+
</license>
19+
</licenses>
2020

21-
<properties>
22-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21+
<properties>
22+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2323
<project.build.targetEncoding>UTF-8</project.build.targetEncoding>
24-
</properties>
25-
<dependencies>
26-
<dependency>
27-
<groupId>junit</groupId>
28-
<artifactId>junit</artifactId>
29-
<scope>test</scope>
30-
</dependency>
31-
<dependency>
32-
<groupId>org.biojava</groupId>
33-
<artifactId>biojava-structure</artifactId>
34-
<version>6.0.1-SNAPSHOT</version>
35-
<type>jar</type>
36-
<scope>compile</scope>
37-
</dependency>
24+
</properties>
25+
<dependencies>
26+
<dependency>
27+
<groupId>junit</groupId>
28+
<artifactId>junit</artifactId>
29+
<scope>test</scope>
30+
</dependency>
31+
<dependency>
32+
<groupId>org.biojava</groupId>
33+
<artifactId>biojava-structure</artifactId>
34+
<version>6.0.1-SNAPSHOT</version>
35+
<type>jar</type>
36+
<scope>compile</scope>
37+
</dependency>
3838
<!-- logging dependencies (managed by parent pom, don't set versions or scopes here) -->
3939
<dependency>
40-
<groupId>org.slf4j</groupId>
41-
<artifactId>slf4j-api</artifactId>
42-
</dependency>
43-
<!-- binding for log4j2, scope=runTime set in parent pom -->
44-
<dependency>
45-
<groupId>org.apache.logging.log4j</groupId>
46-
<artifactId>log4j-slf4j-impl</artifactId>
47-
</dependency>
48-
<dependency>
49-
<groupId>org.apache.logging.log4j</groupId>
50-
<artifactId>log4j-api</artifactId>
51-
</dependency>
52-
<dependency>
53-
<groupId>org.apache.logging.log4j</groupId>
54-
<artifactId>log4j-core</artifactId>
55-
</dependency>
56-
</dependencies>
57-
<build>
58-
<plugins>
40+
<groupId>org.slf4j</groupId>
41+
<artifactId>slf4j-api</artifactId>
42+
</dependency>
43+
<!-- binding for log4j2, scope=runTime set in parent pom -->
44+
<dependency>
45+
<groupId>org.apache.logging.log4j</groupId>
46+
<artifactId>log4j-slf4j-impl</artifactId>
47+
</dependency>
48+
<dependency>
49+
<groupId>org.apache.logging.log4j</groupId>
50+
<artifactId>log4j-api</artifactId>
51+
</dependency>
52+
<dependency>
53+
<groupId>org.apache.logging.log4j</groupId>
54+
<artifactId>log4j-core</artifactId>
55+
</dependency>
56+
<dependency>
57+
<groupId>javax.xml.bind</groupId>
58+
<artifactId>jaxb-api</artifactId>
59+
</dependency>
60+
<dependency>
61+
<groupId>org.glassfish.jaxb</groupId>
62+
<artifactId>jaxb-runtime</artifactId>
63+
</dependency>
64+
</dependencies>
65+
<build>
66+
<plugins>
5967

6068
<!-- Excluding demo package is required for avoiding namespace clashes (demo package is in all modules) for signing the jar. See issue #387 -->
61-
<plugin>
62-
<groupId>org.apache.maven.plugins</groupId>
63-
<artifactId>maven-jar-plugin</artifactId>
64-
<configuration>
65-
<excludes>
66-
<exclude>demo/**</exclude>
67-
</excludes>
68-
</configuration>
69-
</plugin>
69+
<plugin>
70+
<groupId>org.apache.maven.plugins</groupId>
71+
<artifactId>maven-jar-plugin</artifactId>
72+
<configuration>
73+
<excludes>
74+
<exclude>demo/**</exclude>
75+
</excludes>
76+
</configuration>
77+
</plugin>
7078

71-
<plugin>
72-
<groupId>org.apache.maven.plugins</groupId>
73-
<artifactId>maven-compiler-plugin</artifactId>
74-
<configuration>
75-
<debug>true</debug>
76-
</configuration>
77-
</plugin>
78-
</plugins>
79-
</build>
80-
</project>
79+
<plugin>
80+
<groupId>org.apache.maven.plugins</groupId>
81+
<artifactId>maven-compiler-plugin</artifactId>
82+
<configuration>
83+
<debug>true</debug>
84+
</configuration>
85+
</plugin>
86+
</plugins>
87+
</build>
88+
</project>

biojava-protein-disorder/pom.xml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
<artifactId>maven-compiler-plugin</artifactId>
2424
<configuration>
2525
<debug>true</debug>
26-
</configuration>
26+
</configuration>
2727
</plugin>
2828

2929
<plugin>
3030
<groupId>org.apache.maven.plugins</groupId>
3131
<artifactId>maven-jar-plugin</artifactId>
3232
<configuration>
3333
<!-- Excluding demo package is required for avoiding namespace clashes (demo package is in all modules) for signing the jar. See issue #387 -->
34-
<excludes>
35-
<exclude>demo/**</exclude>
36-
</excludes>
34+
<excludes>
35+
<exclude>demo/**</exclude>
36+
</excludes>
3737

3838
<descriptorRefs>
3939
<descriptorRef>bin</descriptorRef>
@@ -85,13 +85,17 @@
8585
<artifactId>log4j-core</artifactId>
8686
</dependency>
8787
<dependency>
88-
<groupId>javax.xml.bind</groupId>
89-
<artifactId>jaxb-api</artifactId>
88+
<groupId>javax.xml.bind</groupId>
89+
<artifactId>jaxb-api</artifactId>
90+
</dependency>
91+
<dependency>
92+
<groupId>org.glassfish.jaxb</groupId>
93+
<artifactId>jaxb-runtime</artifactId>
9094
</dependency>
9195
</dependencies>
9296

9397
<properties>
9498
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
9599
<project.build.targetEncoding>UTF-8</project.build.targetEncoding>
96100
</properties>
97-
</project>
101+
</project>

0 commit comments

Comments
 (0)