[jbosstools-issues] [JBoss JIRA] (JBDS-4642) JDK9 Certification
Rastislav Wagner (JIRA)
issues at jboss.org
Wed Jan 10 04:00:01 EST 2018
[ https://issues.jboss.org/browse/JBDS-4642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13512269#comment-13512269 ]
Rastislav Wagner edited comment on JBDS-4642 at 1/10/18 3:59 AM:
-----------------------------------------------------------------
To run you tests via maven you have to:
1. add maven-toolchain-plugin with following configuration
{code}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<version>1.9</version>
<vendor>oracle</vendor>
</jdk>
</toolchains>
</configuration>
</plugin>
{code}
2. create toolchains.xml file inside .m2 folder
{code}
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
<toolchain>
<type>jdk</type>
<provides>
<version>1.9</version>
<vendor>oracle</vendor>
<id>CustomJRE</id>
</provides>
<configuration>
<jdkHome>/usr/java/jdk-9.0.1/</jdkHome>
</configuration>
</toolchain>
</toolchains>
{code}
3.run tests with mvn clean verify -PITests,download-devstudio,jdk9
Your default java has to be java8 (will be used for building the plugins/tests) and java 9 will be used to run the tests
was (Author: rawagner):
To run you tests via maven you have to:
1. add maven-toolchain-plugin with following configuration
<code>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<version>1.9</version>
<vendor>oracle</vendor>
</jdk>
</toolchains>
</configuration>
</plugin>
<code>
2. create toolchains.xml file inside .m2 folder
<code>
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
<toolchain>
<type>jdk</type>
<provides>
<version>1.9</version>
<vendor>oracle</vendor>
<id>CustomJRE</id>
</provides>
<configuration>
<jdkHome>/usr/java/jdk-9.0.1/</jdkHome>
</configuration>
</toolchain>
</toolchains>
<code>
3.run tests with mvn clean verify -PITests,download-devstudio,jdk9
Your default java has to be java8 (will be used for building the plugins/tests) and java 9 will be used to run the tests
> JDK9 Certification
> ------------------
>
> Key: JBDS-4642
> URL: https://issues.jboss.org/browse/JBDS-4642
> Project: Red Hat JBoss Developer Studio (devstudio)
> Issue Type: Epic
> Reporter: Pavol Srna
>
> This is an epic for tracking JDK9 Devstudio Certification.
> All components need to be retested (run) with JDK9. Please link issues found here.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbosstools-issues
mailing list