[ 
https://issues.apache.org/jira/browse/KARAF-6021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16710373#comment-16710373
 ] 

ASF subversion and git services commented on KARAF-6021:
--------------------------------------------------------

Commit 8775597203f0be9194e19f103a72fe0129006ee1 in karaf's branch 
refs/heads/master from [[email protected]]
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=8775597 ]

Merge pull request #681 from jbonofre/KARAF-6021

[KARAF-6021] Add missing dependency allowing karaf-maven-plugin to work with 
Java11

> Running karaf-maven-plugin in java 11 fails
> -------------------------------------------
>
>                 Key: KARAF-6021
>                 URL: https://issues.apache.org/jira/browse/KARAF-6021
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.1
>            Reporter: Martin Krüger
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.2.2
>
>
> Running karaf-maven-plugin in java 11 fails
> This is because the dependency towards avax.xml.bind/jaxb-api is needed.
> When applying the patch
> {noformat}
> diff --git a/tooling/karaf-maven-plugin/pom.xml 
> b/tooling/karaf-maven-plugin/pom.xml
> index 4f9cb04c7c..1d87604c10 100644
> --- a/tooling/karaf-maven-plugin/pom.xml
> +++ b/tooling/karaf-maven-plugin/pom.xml
> @@ -414,6 +414,19 @@
>                  </property>
>              </activation>
>          </profile>
> +        <profile>
> +            <id>java9-plus</id>
> +            <dependencies>
> +                <dependency>
> +                    <groupId>javax.xml.bind</groupId>
> +                    <artifactId>jaxb-api</artifactId>
> +                    <version>${jaxb.version}</version>
> +                </dependency>
> +            </dependencies>
> +            <activation>
> +                <jdk>[9,)</jdk>
> +            </activation>
> +        </profile>
>          <profile>
>              <id>java11</id>
>              <activation>
> {noformat}
> then the problem is gone.
> But maybe the dependency should be declared regardless of the compiler 
> version used to compile the plugin because the version you run when using the 
> plugin is essential.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to