简体   繁体   English

如何将maven版本2.x更新到最新版本?

[英]How can I update maven version 2.x to a newest version?

there is anyway to update maven version in cmd? 无论如何有更新cmd中的maven版本?

I have installed maven2.x and i want the newest version, i have been looking for and I've found sth like this: 我已经安装了maven2.x,我想要最新版本,我一直在寻找,我发现这样的:

one:convert convert a Maven 1 project.xml (v3 pom) to a Maven 2 pom.xml (v4 pom).
one:deploy-maven-one-repository deploy an artifact into a Maven 1 remote repository.
one:install-maven-one-repository install an artifact into the Maven 1 local repository.
one:maven-one-plugin package a Maven 1 plugin.

some of this sentence update my maven version? 这句话中的一些更新了我的maven版本?

ty for advance. 推进。

下载最新的Maven版本并将{installation folder} / bin添加到Path。

The stuff you've quoted is for converting Maven 1.x projects to 2.x and in project.xml to pom.xml . 您引用的内容是将Maven 1.x项目转换为2.x,将project.xmlpom.xml Maven 1.x project files were written in Jelly, which is a whole different thing. Maven 1.x项目文件是用Jelly编写的,这是一个完全不同的东西。 Maven 2.x turned the build logic into fully-Java written plugins. Maven 2.x将构建逻辑转换为完全Java编写的插件。

So, to clear things out -- there are two things: 所以,要清除问题 - 有两件事:

  • If you want to upgrade to a newer version of Maven, you need to download it from Maven's site , or use a package manager such as apt , or whatever your distribution uses. 如果要升级到较新版本的Maven,则需要从Maven的站点下载它,或者使用apt管理程序包或者您的发行版使用的任何程序包。

  • If you would like to migrate your projects from Maven 2.x to 3.x, this should normally work out of the box, unless you have a) your own custom plugins, or b) third-party plugins which depend on Maven 2.x API-s, which contain deprecated stuff. 如果你想将项目从Maven 2.x迁移到3.x,这通常应该是开箱即用的,除非你有a)你自己的自定义插件,或b)依赖Maven 2的第三方插件。 x API-s,包含已弃用的东西。 Normally, things will work out of the box for you. 通常,事情会为您开箱即用。 For more details on changes, you can always check the release notes . 有关更改的更多详细信息,您始终可以查看发行说明

Maven has no command to upgrade to Maven 3.X. Maven无法升级到Maven 3.X. You should download and extract new version. 您应下载并解压缩新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM