795 IT Telegram . ?

3

Apache Maven - , (POM Project Object Model), Java, , C#, Ruby .

, Apache Maven CentOS 7 ( RHEL Fedora).

Apache Maven

:

  • CentOS 7.
  • Java Development Kit (JDK) - Maven 3.3+ JDK 1.7 .

OpenJDK 8 CentOS 7

Java Development Kit (JDK) Apache Maven, Java CentOS 7 .

# yum install -y java-1.8.0-openjdk-devel
# java -version

, .

openjdk version "1.8.0_141"
OpenJDK Runtime Environment (build 1.8.0_141-b16)
OpenJDK 64-Bit Server VM (build 25.141-b16, mixed mode)

Apache Maven CentOS 7

Apache Maven wget, maven /usr/local/src.

# cd /usr/local/src
# wget http://www-us.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz

Apache Maven

Apache Maven , maven.sh /etc/profile.d .

# cd /etc/profile.d/
# vim maven.sh

maven.sh.

# Apache Maven Environment Variables
# MAVEN_HOME for Maven 1 - M2_HOME for Maven 2
export M2_HOME=/usr/local/src/apache-maven
export PATH=${M2_HOME}/bin:${PATH}

maven.sh , , source .

# chmod +x maven.sh
# source /etc/profile.d/maven.sh

Apache Maven

Apache Maven, .

# mvn --version

, :

Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T19:33:14+01:00)
Maven home: /usr/local/src/apache-maven
Java version: 9.0.4, vendor: Oracle Corporation, runtime: /opt/java/jdk-9.0.4
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.17.6-1.el7.elrepo.x86_64", arch: "amd64", family: "unix"

! Apache Maven 3.5.4 CentOS 7.


?


: