{"id":12565,"date":"2020-10-28T14:58:26","date_gmt":"2020-10-28T19:58:26","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=12565"},"modified":"2021-02-16T11:14:09","modified_gmt":"2021-02-16T16:14:09","slug":"nexus-3-install","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=12565","title":{"rendered":"Nexus 3 Install"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Setup_Env\">Setup Env<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Install_Nexus_3\">Install Nexus 3<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Change_Listingin_Port\">Change Listingin Port<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Change_Java_Home\">Change Java Home<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Manual_Start\">Manual Start<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Install_as_Service\">Install as Service<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Nexus_3_Console\">Nexus 3 Console<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#References\">References<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Setup_Env\"><h2>Setup Env<\/h2><\/span>\n<pre lang=\"bash\">\r\nset MAVEN_HOME=c:\\prog\\apache-maven-3.6.1\r\nset JAVA_HOME=C:\\prog\\jdk1.8.0_221\r\nset path=%JAVA_HOME%\/bin;%path%\r\n<\/pre>\n<span id=\"Install_Nexus_3\"><h2>Install Nexus 3<\/h2><\/span>\n<p>* Download, e.g. nexus-3.28.1-01-win64.zip, from <a href='https:\/\/help.sonatype.com\/repomanager3\/download'>https:\/\/help.sonatype.com\/repomanager3\/download<\/a><br \/>\n* Unzip, e.g. into C:\\prog\\nexus so you have C:\\prog\\nexus\\nexus-3.28.1-01<\/p>\n<span id=\"Change_Listingin_Port\"><h3>Change Listingin Port<\/h3><\/span>\n<p>* Change listening port if needed:<br \/>\n&#8211; edit both etc\/nexus.properties and etc\/nexus-default.properties<\/p>\n<pre lang=\"bash\">\r\n# Jetty section\r\napplication-port=9081\r\n<\/pre>\n<span id=\"Change_Java_Home\"><h3>Change Java Home<\/h3><\/span>\n<p>* Change java home if needed:<br \/>\n&#8211; edit\/create C:\\prog\\nexus\\nexus-3.28.1-01\\.install4j\\pref_jre.cfg<\/p>\n<pre lang=\"bash\">\r\nC:\\prog\\jdk1.8.0_221\r\n<\/pre>\n<span id=\"Manual_Start\"><h3>Manual Start<\/h3><\/span>\n<p>* Start<\/p>\n<pre lang=\"bash\">\r\ncd C:\\prog\\nexus\\nexus-3.28.1-01\\bin\r\nnexus.exe \/run\r\n<\/pre>\n<p>* Control C to stop<\/p>\n<span id=\"Install_as_Service\"><h3>Install as Service<\/h3><\/span>\n<p>* Install\/uninstall as service<\/p>\n<pre lang=\"bash\">\r\ncd C:\\prog\\nexus\\nexus-3.28.1-01\\bin\r\nnexus.exe \/install nexus3\r\n# uninstall service if needed\r\nnexus.exe \/uninstall nexus3\r\n<\/pre>\n<span id=\"Nexus_3_Console\"><h3>Nexus 3 Console<\/h3><\/span>\n<p>* Nexus console url:<br \/>\nhttp:\/\/localhost:9081<br \/>\n* Login: admin<br \/>\n&#8211; first time password can be found in<br \/>\nC:\\prog\\nexus\\sonatype-work\\nexus3\\admin.password on the server.<br \/>\n&#8211; You need to change admin password.<\/p>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* <a href='https:\/\/help.sonatype.com\/repomanager3\/installation'>https:\/\/help.sonatype.com\/repomanager3\/installation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setup Env set MAVEN_HOME=c:\\prog\\apache-maven-3.6.1 set JAVA_HOME=C:\\prog\\jdk1.8.0_221 set path=%JAVA_HOME%\/bin;%path% Install Nexus 3 * Download, e.g. nexus-3.28.1-01-win64.zip, from https:\/\/help.sonatype.com\/repomanager3\/download * Unzip, e.g. into C:\\prog\\nexus so you have C:\\prog\\nexus\\nexus-3.28.1-01 Change Listingin Port * Change listening port if needed: &#8211; edit both etc\/nexus.properties and &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=12565\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[605,836],"class_list":["post-12565","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-maven","tag-nexus"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-3gF","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/12565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12565"}],"version-history":[{"count":1,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/12565\/revisions"}],"predecessor-version":[{"id":12566,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/12565\/revisions\/12566"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}