NEXUS Configuration
---------------------------------
JAVA Download: https://www.oracle.com/in/java/technologies/javase/javase8u211-later-
archive-downloads.html
AuthParam=1644982266_3a48daddc2bd75f1a457f10477270f4c
=1644982266_3a48daddc2bd75f1a457f10477270f4c jdk-8u311-linux-
x64.tar.gz
[press 'i' for insert ] export JAVA_HOME="/opt/jdk1.8.0_311" export PATH=$JAVA_HOME/bin:$PATH [press :wq --> for write and quit ]
java version "1.8.0_311" Java(TM) SE Runtime Environment (build 1.8.0_311-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode)
https://www.sonatype.com/products/repository-oss-download https://help.sonatype.com/repomanager3/product-information/download
wget https://sonatype-
download.global.ssl.fastly.net/repository/downloads-prod-group/3/nexus-
3.37.3-02-unix.tar.gz
tar -xzf nexus-3.37.3-02-unix.tar.gz
Started Sonatype Nexus OSS 3.37.3-02
Open a Duplicate session ---> # netstat -lntp --> can find a port : 8081 Browser ---> http://:8081
Sign in uname : admin pwd : /opt/sonatype-work/nexus3/admin.password
reset admin password
Settings --> Users --> Create local user --> create user
# cd mvnproj
# vi pom.xml
<repository>
<id>nexus</id>
<name>Internal Releases</name>
<url>http://18.116.59.148:8081/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>nexus</id>
<name>Internal Snapshot Releases</name>
<url>http://18.116.59.148:8081/repository/maven-snapshots/</url>
</snapshotRepository>
#cd /opt/apache-maven-3.8.4/conf
# vi settings.xml
#cd mvnproj
#mvn clean compile test package <--- to get package
#mvn install <----- to move file to local repo (.m2)
#mvn deploy <----- to move file to Global repo (Nexus)
Maven-Tomcat Deployment
--------------------------------------
# cd /opt/apache-tomcat-9.0.64/conf
# vi tomcat-users.xml