Bug 568379: com.sun.xml.bind 2.2.0

This bundle exists in CVS, but the uses directives are
missing, meaning it can resolve incorrectly. CQ 3843

Ideally this bundle would be removed, but until we
can get all consumers in simrel to update to newer
version we need to make this version work.

The issue is consumers who have this:

Require-Bundle: javax.xml.bind;bundle-version="2.2.0",
 com.sun.xml.bind;bundle-version="2.2.0"

Because there is no javax.xml.bind 2.3.3 that can satisfy the
above, having a 2.2.0 that wires correctly resolves
the problem.

Consumers who have:

Require-Bundle: com.sun.xml.bind;bundle-version="2.2.0"
Import-Package: javax.xml.bind;version="2.2.0"

will get either the 2.2.0 or the 2.3.3 versions of the
required bundles, but with the uses they will get
them consistently.


Change-Id: Idf06c5e187788d602fd74a2da762e3b3f46a0e6d
diff --git a/jaxb/com.sun.xml.bind_2.2.0/.project b/jaxb/com.sun.xml.bind_2.2.0/.project
new file mode 100644
index 0000000..d48d857
--- /dev/null
+++ b/jaxb/com.sun.xml.bind_2.2.0/.project
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>com.sun.xml.bind_2.2.0</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+	</buildSpec>
+	<natures>
+	</natures>
+</projectDescription>
diff --git a/jaxb/com.sun.xml.bind_2.2.0/osgi.bnd b/jaxb/com.sun.xml.bind_2.2.0/osgi.bnd
new file mode 100644
index 0000000..5698ee8
--- /dev/null
+++ b/jaxb/com.sun.xml.bind_2.2.0/osgi.bnd
@@ -0,0 +1,16 @@
+package-version=${version;===;${Bundle-Version}}
+jaxb-api-version-range=${range;[===,+);2.2}jaxb-api-version=${version;===;2.2}
+
+Export-Package: \
+ !about.html,!about_files, \
+ *.internal.*;x-internal:=true;version="${package-version}", \
+ *.implementation.*;x-internal:=true;version="${package-version}", \
+ *.impl.*;x-internal:=true;version="${package-version}", \
+ *;version="${package-version}"
+
+Import-Package: \
+ javax.xml.bind*;version="[2.2.0,2.2.1)", \
+ com.sun.xml.bind*;version="[2.2.0,2.2.1)", \
+ com.sun.xml.fastinfoset*;resolution:=optional, \
+ org.jvnet*;resolution:=optional, \
+ *
diff --git a/jaxb/com.sun.xml.bind_2.2.0/pom.xml b/jaxb/com.sun.xml.bind_2.2.0/pom.xml
new file mode 100644
index 0000000..427b2a8
--- /dev/null
+++ b/jaxb/com.sun.xml.bind_2.2.0/pom.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.eclipse.orbit.bundles</groupId>
+    <artifactId>jaxb-parent</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+  </parent>
+  <artifactId>com.sun.xml.bind</artifactId>
+  <version>2.2.0-SNAPSHOT</version>
+  <packaging>eclipse-bundle-recipe</packaging>
+  <dependencies>
+    <dependency>
+      <groupId>com.sun.xml.bind</groupId>
+      <artifactId>jaxb-impl</artifactId>
+      <version>2.2</version>
+    </dependency>
+  </dependencies>
+</project>
diff --git a/jaxb/com.sun.xml.bind_2.2.0/src/eclipse/ip_log.xml b/jaxb/com.sun.xml.bind_2.2.0/src/eclipse/ip_log.xml
new file mode 100644
index 0000000..3b9be7a
--- /dev/null
+++ b/jaxb/com.sun.xml.bind_2.2.0/src/eclipse/ip_log.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ip_log version="1.0">
+  <project id="com.sun.xml.bind" version="2.2.0" status="done">
+    <info>
+      <repository>scm:git:git.eclipse.org:/gitroot/orbit/recipes.git</repository>
+      <location>jaxb-parent/com.sun.xml.bind</location>
+    </info>
+    <contact>
+      <name>Jonah Graham</name>
+      <email>jonah@kichwacoders.com</email>
+      <company>Kichwa Coders Canada Inc.</company>
+    </contact>
+    <legal>
+      <ipzilla bug_id="3843"/>
+      <license>
+        <name>Common Development and Distribution License</name>
+        <reference>https://glassfish.java.net/public/CDDLv1.0.html</reference>
+      </license>
+      <package>jaxb-impl-2.2.jar</package>
+    </legal>
+  </project>
+</ip_log>
\ No newline at end of file
diff --git a/jaxb/com.sun.xml.bind_2.2.0/src/main/resources/OSGI-INF/l10n/bundle.properties b/jaxb/com.sun.xml.bind_2.2.0/src/main/resources/OSGI-INF/l10n/bundle.properties
new file mode 100644
index 0000000..a8bc423
--- /dev/null
+++ b/jaxb/com.sun.xml.bind_2.2.0/src/main/resources/OSGI-INF/l10n/bundle.properties
@@ -0,0 +1,3 @@
+# Bundle Localization
+bundleName = com.sun.xml.bind
+bundleVendor = Eclipse Orbit
diff --git a/jaxb/com.sun.xml.bind_2.2.0/src/main/resources/about.html b/jaxb/com.sun.xml.bind_2.2.0/src/main/resources/about.html
new file mode 100644
index 0000000..56666f0
--- /dev/null
+++ b/jaxb/com.sun.xml.bind_2.2.0/src/main/resources/about.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>November 16, 2020</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;).  Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 2.0 (&quot;EPL&quot;).  A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-2.0">http://www.eclipse.org/legal/epl-2.0</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content.  Check the Redistributor's license that was
+provided with the Content.  If no such license exists, contact the Redistributor.  Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+<h3>Third Party Content</h3>
+<p>The Content includes items that have been sourced from third parties as set out below. If you
+did not receive this Content directly from the Eclipse Foundation, the following is provided
+for informational purposes only, and you should look to the Redistributor's license for
+terms and conditions of use.</p>
+
+<h4>@DEPENDENCY_HEADLINE@</h4>
+
+<p>The plug-in includes software developed by someone as part of the @DEPENDENCY_NAME@ project.</p>
+
+<p> is distributed without licensing information.</p>
+
+<p> is available from Maven as com.sun.xml.bind:jaxb-impl:2.2.</p>
+
+
+</body>
+</html>
diff --git a/jaxb/pom.xml b/jaxb/pom.xml
index 940b75d..4be8fb7 100644
--- a/jaxb/pom.xml
+++ b/jaxb/pom.xml
@@ -15,6 +15,7 @@
   <name>Eclipse Orbit :: jaxb Recipes</name>
 
   <modules>
+    <module>com.sun.xml.bind_2.2.0</module>
     <module>com.sun.xml.bind_2.3.3</module>
   </modules>
 
diff --git a/releng/aggregationfeature/feature.xml b/releng/aggregationfeature/feature.xml
index bc82aee..9d81994 100644
--- a/releng/aggregationfeature/feature.xml
+++ b/releng/aggregationfeature/feature.xml
@@ -387,6 +387,7 @@
   <plugin id="javax.ws.rs" version="2.1.6.qualifier" />
 
   <!-- jaxb -->
+  <plugin id="com.sun.xml.bind" version="2.2.0.qualifier" />
   <plugin id="com.sun.xml.bind" version="2.3.3.qualifier" />
 
   <!-- immutables -->