Here are the fields to configure for both the snapshots and releases repositories.
$ cd /data/workspace/mtitek-nexus-test-a/ DarchetypeArtifactId=maven-archetype-quickstart \Ĭonfigure the " pom.xml" file of the project " mtitek-nexus-test-a".Īdd a " distributionManagement" element to configure the nexus repositories Snapshots and Releases: Run the following command " mvn archetype:generate" to create the maven project: $ sudo chown -R mtitek:mtitek /data/workspace/
#How to install nexus 2 content password#
The default " admin" password can be found in this file: " /opt/sonatype-work/nexus3/admin.password"Īdd a " profile" element for nexus repositories (inside element ):Ĭreate a local directory that will hold the maven project: You can define only one if you want to use one configuration for both snapshots and releases. Server administration and configurationĪdd a " mirror" element (inside element ):Īdd " server" elements for Snapshots/Releases (inside element ).Setup the nexus home environemnt variable:Īccess the default page of Nexus: Other Nexus commands: $ sudo chown -R mtitek:mtitek /opt/sonatype-work/ $ sudo chown -R mtitek:mtitek /opt/nexus-3.18.0-01/ Extract the file "nexus-3.18." in the folder you want to install Nexus: /opt/nexus-3.18.0-01