[
https://issues.apache.org/jira/browse/TAVERNA-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16442421#comment-16442421
]
Stian Soiland-Reyes commented on TAVERNA-1041:
----------------------------------------------
Note that there can be other issues with JDK9, so the trick is to test the
replacement to cxf-xjc-plugin with JDK 8 first.
For instance we needed these dependencies to work in JDK9, they can't be
optional anymore:
{code:xml}
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>${jaxb.version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-osgi</artifactId>
<version>${jaxb.version}</version>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>${activation.version}</version>
</dependency>
{code}
I'll leave this issue open as maven-jaxb2-plugin is also used here:
{code}
stain@biggie:~/src$ grep -r maven-jaxb2-plugin incubator-taverna-* | grep
pom.xml
incubator-taverna-language/pom.xml: <!-- replaces
maven-jaxb2-plugin -->
incubator-taverna-maven-parent/pom.xml:
<artifactId>maven-jaxb2-plugin</artifactId>
incubator-taverna-osgi/taverna-osgi-schemas/pom.xml:
<artifactId>maven-jaxb2-plugin</artifactId>
incubator-taverna-plugin-component/taverna-component-repository-api/pom.xml:
<artifactId>maven-jaxb2-plugin</artifactId>
incubator-taverna-plugin-component/taverna-component-activity/pom.xml:
<artifactId>maven-jaxb2-plugin</artifactId>
incubator-taverna-server/pom.xml:
<artifactId>maven-jaxb2-plugin</artifactId>
incubator-taverna-server/taverna-server-usagerecord/pom.xml:
<artifactId>maven-jaxb2-plugin</artifactId>
{code}
> Java 9 support: replace maven-jaxb2-plugin?
> -------------------------------------------
>
> Key: TAVERNA-1041
> URL: https://issues.apache.org/jira/browse/TAVERNA-1041
> Project: Apache Taverna
> Issue Type: Bug
> Components: Taverna Language, Taverna OSGi, Taverna Plugin
> Component, Taverna Server
> Environment: JDK 9
> Reporter: Stian Soiland-Reyes
> Assignee: Stian Soiland-Reyes
> Priority: Major
>
> It would be good if our project can compile (and not just run) with Java 9.
> This might require updating/replacing some Maven plugins. I ran into an issue
> with maven-jaxb2-plugin when [compiling taverna-language on
> JDK9|https://builds.apache.org/user/stain/my-views/view/taverna/job/incubator-taverna-language/469/console].
> {{[ERROR] Failed to execute goal
> org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.3:generate (default) on
> project taverna-baclava-language: Execution default of goal
> org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.3:generate failed: Prefix ''
> is already bound to '' -> [Help 1]}}
> It seems maven-jaxb2-plugin is [still working on Java 9
> support|https://github.com/highsource/maven-jaxb2-plugin/issues/114], in
> particular an issue with setting [package
> names|https://github.com/highsource/maven-jaxb2-plugin/issues/120], which
> probably would affect us.
> This issue will investigate if there are workarounds for the current release
> of maven-jaxb2-plugin or if we should switch to alternatives like Apache
> [cxf-xjc-plugin|http://cxf.apache.org/cxf-xjc-plugin.html]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)