[jbosstools-issues] [JBoss JIRA] (JBDS-4658) JDK9 Certification - batch

Ondrej Dockal (JIRA) issues at jboss.org
Mon Feb 12 14:57:00 EST 2018


    [ https://issues.jboss.org/browse/JBDS-4658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13531946#comment-13531946 ] 

Ondrej Dockal edited comment on JBDS-4658 at 2/12/18 2:56 PM:
--------------------------------------------------------------

I made some trials to build and run batch integration tests via maven using openjdk 9 and also with usage of tycho 1.1.0. Mixed solution from epic jira and solution provided by Nick. I have used java-9-openjdk-9.0.1.11-4.fc27.

Added this content to org.jboss.tools.batch.ui.bot.test/pom.xml and org.jboss.tools.batch.reddeer/pom.xml:
{code}
<build>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-toolchains-plugin</artifactId>
			<version>1.0</version>
			<executions>
				<execution>
					<phase>compile</phase>
					<goals>
						<goal>toolchain</goal>
					</goals>
				</execution>
			</executions>
			<configuration>
				<toolchains>
					<jdk>
						<version>9</version>
						<vendor>openjdk</vendor>
					</jdk>
				</toolchains>
			</configuration>
		</plugin>
	</plugins>
</build>
{code}

Content of ~/.m2/toolchains.xml:
{code}
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
  <toolchain>
     <type>jdk</type>
     <provides>
         <version>9</version>
         <vendor>openjdk</vendor>
         <id>CustomJRE</id>
     </provides>
     <configuration>
        <jdkHome>/etc/alternatives/java_sdk_9/</jdkHome>
     </configuration>
  </toolchain>
</toolchains>
{code}

and finally Nick's solution, notice that there is missing jdeps profile, was not working with it:
{code}
cd jbosstools-integration-tests/tests/org.jboss.tools.batch.ui.bot.test/
alias mvn9='export JAVA_HOME=/etc/alternatives/java_sdk_9/ && /usr/share/maven/bin/mvn -V -Pjdk9 -U
mvn9 clean install -DskipTests=false -PITests,download-devstudio,all-tests -DdevstudioRepository=https://devstudio.redhat.com/11/staging/updates/ -DtychoVersion=1.1.0
{code}


was (Author: odockal):
I made some trials to build and run batch integration tests via maven using openjdk 9 and also with usage of tycho 1.1.0. Mixed solution from epic jira and solution provided by Nick. I have used java-9-openjdk-9.0.1.11-4.fc27.

Added this content to org.jboss.tools.batch.ui.bot.test/pom.xml and org.jboss.tools.batch.reddeer/pom.xml:
{code}
<build>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-toolchains-plugin</artifactId>
			<version>1.0</version>
			<executions>
				<execution>
					<phase>compile</phase>
					<goals>
						<goal>toolchain</goal>
					</goals>
				</execution>
			</executions>
			<configuration>
				<toolchains>
					<jdk>
						<version>9</version>
						<vendor>openjdk</vendor>
					</jdk>
				</toolchains>
			</configuration>
		</plugin>
	</plugins>
</build>
{code}

Content of ~/.m2/toolchaing.xml:
{code}
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
  <toolchain>
     <type>jdk</type>
     <provides>
         <version>9</version>
         <vendor>openjdk</vendor>
         <id>CustomJRE</id>
     </provides>
     <configuration>
        <jdkHome>/etc/alternatives/java_sdk_9/</jdkHome>
     </configuration>
  </toolchain>
</toolchains>
{code}

and finally Nick's solution, notice that there is missing jdeps profile, was not working with it:
{code}
cd jbosstools-integration-tests/tests/org.jboss.tools.batch.ui.bot.test/
alias mvn9='export JAVA_HOME=/etc/alternatives/java_sdk_9/ && /usr/share/maven/bin/mvn -V -Pjdk9 -U
mvn9 clean install -DskipTests=false -PITests,download-devstudio,all-tests -DdevstudioRepository=https://devstudio.redhat.com/11/staging/updates/ -DtychoVersion=1.1.0
{code}

> JDK9 Certification - batch
> --------------------------
>
>                 Key: JBDS-4658
>                 URL: https://issues.jboss.org/browse/JBDS-4658
>             Project: Red Hat JBoss Developer Studio (devstudio)
>          Issue Type: Sub-task
>          Components: batch
>            Reporter: Pavol Srna
>            Assignee: Ondrej Dockal
>             Fix For: 11.2.0.GA
>
>




--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jbosstools-issues mailing list