Enable Openjdk10 and maven on CentOS

Java 10 installation

$ wget https://download.java.net/openjdk/jdk10/ri/jdk-10_linux-x64_bin_ri.tar.gz
--2019-01-25 16:05:56--  https://download.java.net/openjdk/jdk10/ri/jdk-10_linux-x64_bin_ri.tar.gz
..
Saving to: ‘jdk-10_linux-x64_bin_ri.tar.gz’

$ tar -xvf ./jdk-10_linux-x64_bin_ri.tar.gz
$ ls jdk-10/
bin  conf  include  jmods  legal  lib  man  release
$ /opt/jdk-10/bin/java -version
openjdk version "10" 2018-03-20
OpenJDK Runtime Environment 18.3 (build 10+44)
OpenJDK 64-Bit Server VM 18.3 (build 10+44, mixed mode)

Maven installation

# ls /opt/apache-maven-3.6.0/
bin  boot  conf  lib  LICENSE  NOTICE  README.txt

Set PATH and JAVA_HOME

$ cat /etc/profile.d/java.sh

# Settign Java & Maven

export PATH=$PATH:/opt/apache-maven-3.6.0/bin/:/opt/jdk-10/bin/

export JAVA_HOME=/opt/jdk-10/

Supplement Maven Proxy settings

  <proxies>
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>proxyuser</username>
      <password>proxypass</password>
      <host>proxy.xxxx.co.jp</host>
      <port>8000</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
  </proxies>

Recommended Posts

Enable Openjdk10 and maven on CentOS
Maven on CentOS 7 tutorial
OpenJDK installation on CentOS 7
Enable Java 8 and Java 11 SDKs on Ubuntu
Install Java 9 on windows 10 and CentOS 7
Change JDK and Tomcat versions on CentOS
Installing and configuring ClipBucket and Nginx on CentOS 7
Switch between GUI and CUI on CentOS6.
OpenVPN on CentOS 8
Install OpenJDK on macOS
Docker installation on CentOS 6
Use perltidy on CentOS 8
Compile with Java 6 and test with Java 11 while running Maven on Java 8
Install Golang on CentOS 8
Try OpenLiteSpeed on CentOS8
Install Neo4j 4.1.3 on centOS
Tomcat v8 on CentOS7
Install Vertica 10.0 on CentOS 6.10
Zabbix 5 installation on CentOS 8
Use mod_auth_cas on CentOS 8
Steps to set up Postfix and Dovecot on CentOS 8.3
Install java and maven using brew on new mac
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Use bat on Centos.
Jetty v8 on CentOS7
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
I installed CentOS 8 on Windows 10 using VirtualBox and Vagrant
Install jpndistrict on CentOS 7
Install openjdk11 on mac
Install Redmine 4.1.1 on CentOS 7
Install OpenJDK 8 on mac
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Install rsync on CentOS8 (version check) and file backup (synchronization)
Try RabbitMQ + PHP on CentOS
Enable HTTPS on WebSphere Liberty
Make exFat available on CentOS 7
Manually build OpenJDK on Windows
Install OpenFOAM v2006 on CentOS
Set up Gitolite on CentOS 7
Mock and spy on PowerMock
Install Jenkins on Docker's CentOS
Install Apache on CentOS on VirtualBox
Introducing Let's Encrypt on CentOS 7
Java version change on CentOS
Install Ruby 2.7 on CentOS 7 (SCL)
Perform log rotation on centos
Install Golang / MariaDB on CentOS8, connect to DB and execute SQL
Steps to install samba on CentOS 8 and connect from Windows 10 Explorer
Steps to install Maven on Mac and use it in Eclipse