Showing posts with label Maven. Show all posts
Showing posts with label Maven. Show all posts

Tuesday, March 24, 2020

Install Maven bu Using the TAR binary file

wget http://www.eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar xzf apache-maven-3.3.9-bin.tar.gz
mkdir /usr/local/maven
mv apache-maven-3.3.9/ /usr/local/maven/
alternatives --install /usr/bin/mvn mvn /usr/local/maven/apache-maven-3.3.9/bin/mvn 1
alternatives --config mvn

Tuesday, March 17, 2020

Maven 3.X Properties Guide

value evaluation result common examples
project.*
pom.* (deprecated)
* (deprecated)
POM content (see POM reference) ${project.version}
${project.build.finalName}
${project.artifactId}
${project.build.directory}
project.basedir
pom.basedir (deprecated)
basedir (deprecated)
the directory containing the pom.xml file ${project.basedir}
project.baseUri
pom.baseUri (deprecated)
the directory containing the pom.xml file as URI ${project.baseUri}
build.timestamp
maven.build.timestamp
the UTC timestamp of build start, in yyyy-MM-dd'T'HH:mm:ss'Z' default format, which can be overridden with maven.build.timestamp.format POM property ${maven.build.timestamp}
* user properties, set from CLI with -Dproperty=value ${skipTests}
* model properties, such as project properties set in the pom ${any.key}
maven.home The path to the current Maven home. ${maven.home}
maven.version The version number of the current Maven execution (since 3.0.4). For example, "3.0.5". ${maven.version}
maven.build.version The full build version of the current Maven execution (since 3.0.4). For example, "Apache Maven 3.2.2 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19T14:51:28+01:00)". ${maven.build.version}
maven.repo.local The repository on the local machine Maven shall use to store installed and downloaded artifacts (POMs, JARs, etc). ${user.home}/.m2/repository
* Java system properties (see JDK reference) ${user.home}
${java.home}
env.*
*
environment variables ${env.PATH}
settings.* Local user settings (see settings reference) ${settings.localRepository}

Thursday, December 19, 2019

Caused by: java.io.IOException: Cannot run program "rpmbuild" (in directory "xxxx/SPECS"): error=2, No such file or directory

This issue is due to missed the rpmbuild on your server:
In RHEL/CentOS:

yum install rpm-build -y

In Ubuntu:

apt-get install rpm

In Mac OS:

brew install rpm