-
Notifications
You must be signed in to change notification settings - Fork 75
/
xml-java-versions.windup.xml
112 lines (106 loc) · 5.46 KB
/
xml-java-versions.windup.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0"?>
<ruleset xmlns="http://windup.jboss.org/schema/jboss-ruleset" id="xml-java-versions"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://windup.jboss.org/schema/jboss-ruleset http://windup.jboss.org/schema/jboss-ruleset/windup-jboss-ruleset.xsd">
<metadata>
<description>
This ruleset provides analysis with respect to the missing dependencies in Apache Camel 3 due to Java 11 adoption.
</description>
<dependencies>
<addon id="org.jboss.windup.rules,windup-rules-java,3.0.0.Final" />
</dependencies>
<sourceTechnology id="camel" versionRange="[2,3)"/>
<targetTechnology id="camel" versionRange="[3,)" />
</metadata>
<rules>
<rule id="xml-java-versions-00001">
<when>
<xmlfile as="dependencies-block" matches="/m:project/m:dependencies" in="pom.xml">
<namespace prefix="m" uri="http://maven.apache.org/POM/4.0.0"/>
</xmlfile>
<not>
<project>
<artifact groupId="javax.xml.bind" artifactId="jaxb-api" />
</project>
</not>
</when>
<perform over="dependencies-block">
<hint title="'jaxb-api' Maven dependency missing" effort="1" category-id="potential">
<message>
<![CDATA[
`jaxb-api` Maven dependency missing.
Apache Camel 3 supports Java 11 and in this Java version JAXB modules have been removed from the JDK, therefore you will need to add them as Maven dependencies since there are couple of components rely on them:
```Xml
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
```
]]>
</message>
<link title="Camel 3 - Migration Guide: Java Versions" href="https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_java_versions" />
</hint>
</perform>
</rule>
<rule id="xml-java-versions-00002">
<when>
<xmlfile as="dependencies-block" matches="/m:project/m:dependencies" in="pom.xml">
<namespace prefix="m" uri="http://maven.apache.org/POM/4.0.0"/>
</xmlfile>
<not>
<project>
<artifact groupId="com.sun.xml.bind" artifactId="jaxb-core" />
</project>
</not>
</when>
<perform over="dependencies-block">
<hint title="'jaxb-core' Maven dependency missing" effort="1" category-id="potential">
<message>
<![CDATA[
`jaxb-core` Maven dependency missing.
Apache Camel 3 supports Java 11 and in this Java version JAXB modules have been removed from the JDK, therefore you will need to add them as Maven dependencies since there are couple of components rely on them:
```Xml
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0.1</version>
</dependency>
```
]]>
</message>
<link title="Camel 3 - Migration Guide: Java Versions" href="https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_java_versions" />
</hint>
</perform>
</rule>
<rule id="xml-java-versions-00003">
<when>
<xmlfile as="dependencies-block" matches="/m:project/m:dependencies" in="pom.xml">
<namespace prefix="m" uri="http://maven.apache.org/POM/4.0.0"/>
</xmlfile>
<not>
<project>
<artifact groupId="com.sun.xml.bind" artifactId="jaxb-impl" />
</project>
</not>
</when>
<perform over="dependencies-block">
<hint title="'jaxb-impl' Maven dependency missing" effort="1" category-id="potential">
<message>
<![CDATA[
`jaxb-impl` Maven dependency missing.
Apache Camel 3 supports Java 11 and in this Java version JAXB modules have been removed from the JDK, therefore you will need to add them as Maven dependencies since there are couple of components rely on them:
```Xml
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.2</version>
</dependency>
```
]]>
</message>
<link title="Camel 3 - Migration Guide: Java Versions" href="https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_java_versions" />
</hint>
</perform>
</rule>
</rules>
</ruleset>