Month: October 2019

Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher

After installing maven in centos7 server I was getting following error while checking using mvn --version command. Spend hours searching the issue but was unable to find a right fix. Atlast realized that Instead of binary download I mistakenly downloaded from the source. You need to download the binary file. wget http://mirrors.estointernet.in/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz

Install maven and integrate with jenkins in centos7

Create a directory named maven under /opt # mkdir /opt/maven Download maven from apache maven link in /opt/maven folder # wget http://mirrors.estointernet.in/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz Note : Always download from binary option. I had to spend hours to fix the issue after installing from source due to following error while mvn --version command Error: Could not find or … Continue reading Install maven and integrate with jenkins in centos7

Install jenkins in centos7

1.sudo yum install -y epel-release sudo yum -y update sudo yum install -y net-tools sudo yum install -y wget 2.sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key sudo yum install -y jenkins sudo yum install -y java-1.8 export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64/ export PATH=$PATH:$JAVA_HOME sudo systemctl start jenkins.service sudo systemctl enable jenkins.service 3. Login to jenkins console … Continue reading Install jenkins in centos7