You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/12/05 06:39:00 UTC

[jira] [Commented] (KARAF-6021) Running karaf-maven-plugin in java 11 fails

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

ASF GitHub Bot commented on KARAF-6021:
---------------------------------------

jbonofre opened a new pull request #681: [KARAF-6021] Add missing dependency allowing karaf-maven-plugin to work with Java11
URL: https://github.com/apache/karaf/pull/681
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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)