Fix osgi imports
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
diff --git a/jaxb-ri/bundles/osgi/osgi/pom.xml b/jaxb-ri/bundles/osgi/osgi/pom.xml
index affd9b2..f37b11f 100644
--- a/jaxb-ri/bundles/osgi/osgi/pom.xml
+++ b/jaxb-ri/bundles/osgi/osgi/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -293,6 +293,7 @@
<goal>manifest</goal>
</goals>
<configuration>
+ <!-- javax.xml.bind.annotation - used by XJC -target < 3.0-->
<instructions>
<Export-Package>
com.sun.codemodel;version=${jaxb.osgiVersion},
@@ -326,6 +327,7 @@
jakarta.xml.bind.attachment;version=${jaxb-api-osgi.version},
jakarta.xml.bind.helpers;version=${jaxb-api-osgi.version},
javax.xml.catalog;resolution:=optional,
+ javax.xml.bind.annotation;resolution:=optional,
com.sun.org.apache.xml.internal.resolver;resolution:=optional,
com.sun.org.apache.xml.internal.resolver.tools;resolution:=optional,
com.sun.source.tree;resolution:=optional,
diff --git a/jaxb-ri/bundles/xjc/pom.xml b/jaxb-ri/bundles/xjc/pom.xml
index ccfbedc..3352324 100644
--- a/jaxb-ri/bundles/xjc/pom.xml
+++ b/jaxb-ri/bundles/xjc/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -373,6 +373,7 @@
<goal>manifest</goal>
</goals>
<configuration>
+ <!-- javax.xml.bind.annotation - used by XJC -target < 3.0-->
<instructions>
<Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
<Export-Package>
@@ -381,6 +382,7 @@
</Export-Package>
<Import-Package>
javax.xml.catalog;resolution:=optional,
+ javax.xml.bind.annotation;resolution:=optional,
*
</Import-Package>
</instructions>