Nexus
Revision as of 23:22, 11 September 2015 by WikiFreak (talk | contribs) (Created page with "Category:Development Category:Linux This page explains how to setup and configure NEXUS Maven repositories. =Requirements= a) You need to setup Maven b) You need...")
This page explains how to setup and configure NEXUS Maven repositories.
Contents
Requirements
a) You need to setup Maven
b) You need to create a root folder to host all the artifacts
mkdir -p /home/nexus
chmod -R 777 /home/nexus
Installation
Download Nexus OSS as Nexus Open-Source Server - take the ZIP format
cd /opt
wget http://www.sonatype.org/downloads/nexus-latest-bundle.tar.gz
tar xzvf nexus-latest-bundle.tar.gz
rm nexus-latest-bundle.tar.gz
ln -s /opt/nexus-2.11.4-01/ /opt/nexus
Configuration
Set nexus parameters
Adjust the port number and root context path, if required
vim /opt/nexus/conf/nexus.properties
Set:
application-port=9081
nexus-webapp-context-path=/nexus
## Nexus section
# nexus-work == folders where the artifacts are going to be saved. You must choose a folder with a lot of disk!
nexus-work=${bundleBasedir}/../sonatype-work/nexus
runtime=${bundleBasedir}/nexus/WEB-INF
Run Nexus from anywhere
Set the NEXUS_HOME into the start script. Without it you cannot run Nexus as a service!
ln -s /opt/nexus/bin/nexus /usr/bin/nexus
ln -s /opt/nexus/bin/nexus /etc/init.d/nexus
vim /opt/nexus/bin/nexus
NEXUS_HOME="/opt/nexus"