{"id":1353,"date":"2023-03-19T10:03:25","date_gmt":"2023-03-19T02:03:25","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1353"},"modified":"2023-04-29T09:02:49","modified_gmt":"2023-04-29T01:02:49","slug":"install-maven-under-centos","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/19\/install-maven-under-centos\/","title":{"rendered":"CentOS\u4e0b\u5b89\u88c5Maven"},"content":{"rendered":"<p>Maven\u9879\u76ee\u5bf9\u8c61\u6a21\u578b(POM)\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e00\u5c0f\u6bb5\u63cf\u8ff0\u4fe1\u606f\u6765\u7ba1\u7406\u9879\u76ee\u7684\u6784\u5efa\uff0c\u62a5\u544a\u548c\u6587\u6863\u7684\u8f6f\u4ef6\u9879\u76ee\u7ba1\u7406\u5de5\u5177\u3002<\/p>\n<p>\u5b98\u65b9\u7f51\u7ad9\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/maven.apache.org\/download.cgi\">http:\/\/maven.apache.org\/download.cgi<\/a><br \/>\n\u6e05\u534e\u955c\u50cf\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/mirrors.tuna.tsinghua.edu.cn\/apache\/maven\/\">https:\/\/mirrors.tuna.tsinghua.edu.cn\/apache\/maven\/<\/a><\/p>\n<p><!-- more --><\/p>\n<h2>\u4e0b\u8f7d\u5b89\u88c5<\/h2>\n<pre><code class=\"language-shell\"># wget http:\/\/mirrors.tuna.tsinghua.edu.cn\/apache\/maven\/maven-3\/3.5.3\/binaries\/apache-maven-3.5.3-bin.tar.gz\n# tar -zxf apache-maven-3.5.3-bin.tar.gz -C \/usr\/local\/\n# mv \/usr\/local\/apache-maven-3.5.3 \/usr\/local\/maven\n# ln -sf \/usr\/local\/maven\/bin\/mvn \/bin\/mvn\n# mvn -v<\/code><\/pre>\n<h2>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/h2>\n<pre><code class=\"language-shell\"># sudo vim \/etc\/profile ##\u6240\u6709\u7528\u6237\u6709\u6548\n\nexport MAVEN_HOME=\/usr\/local\/maven\nexport PATH=$PATH:$MAVEN_HOME\/bin\n\n# source \/etc\/profile  \/\/\u914d\u7f6e\u751f\u6548\n# echo $MAVEN_HOME<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Maven\u9879\u76ee\u5bf9\u8c61\u6a21\u578b(POM)\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e00\u5c0f\u6bb5\u63cf\u8ff0\u4fe1\u606f\u6765\u7ba1\u7406\u9879\u76ee\u7684\u6784\u5efa\uff0c\u62a5\u544a\u548c\u6587\u6863\u7684\u8f6f\u4ef6\u9879\u76ee\u7ba1\u7406\u5de5\u5177\u3002 \u5b98\u65b9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[333],"tags":[143],"class_list":["post-1353","post","type-post","status-publish","format-standard","hentry","category-install-deploy","tag-maven"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1353"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1353\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}