I started setting up my Ubuntu 12.10 on April 2013 and the normal apt-get install maven
was not working for maven 3 back then.
The manual installation in this post is useful if you like to dig in deeper to your ubuntu kernel in regards with apt-get and where it finds the list of applications that are available for installation on Ubuntu . It can also be potentially useful for more recent releases of Ubuntu like Ubuntu 13.04, etc. if you face the same problem as I did back then with Ubuntu 12.10.
Automatic Installation via apt-get:
Checkout the manual installation if your current ubuntu can not install maven via common 'apt-get install maven'.
sudo apt-get update
sudo apt-get install maven
Make sure to remove maven 2 if you ubuntu is not fresh or if you were using maven 2 before:
sudo apt-get remove maven2
Manual Installation via apt-get by adding maven 3 repository:
This can be useful if your ubuntu apt-get repositories list is not up to date.
Maven 3 was required to set up the system and as it turns out most of the documents out there are referring to how to install Maven to Ubuntu version 12.04 or before. Best document I found was:
The whole process I came up with is as follows:
- sudo -H gedit /etc/apt/sources.list
-
Add the following line the sources.list file:
deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main
deb-src http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main
-
sudo apt-get update && sudo apt-get install maven3
- sudo ln -s /usr/share/maven3/bin/mvn /usr/bin/mvn
Caution 1: command "sudo add-apt-repository ppa:natecarlson/maven3" did not work on my Ubuntu and had to run "sudo add-apt-repository -rm ppa:natecarlson/maven3" to get my apt-get to work again.
Caution 2: thanks to David, you need to remove your existing symbolic link to previous versions of maven before running step 4.
相关推荐
maven-3.5.0版本的本地资源包,直接解压就可使用。 方式1 需要在系统环境变量中直接配置path中配置,路径是到bin目录。 方式2 新建配置(MAVEN_HOME),路径为是解压后的maven根目录,再在path中引用(%MAVEN_HOME%\...
"apache-maven-3.6.1-bin"是Apache Maven 3.6.1版本的二进制发行包,它包含了运行Maven所需的所有文件。 在Maven 3.6.1中,主要知识点包括: 1. **项目对象模型(POM)**:POM是一个XML文件,它定义了项目的基本...
maven-install-plugin-2.4.jar
在“apache-maven-3.3.9.zip”这个压缩包中,我们找到了Maven 3.3.9版本的完整安装包。这个版本是Maven的一个稳定版本,发布于2016年,提供了一些改进和修复了之前版本中的问题。3.3.9的标签表明这是该软件的一个...
apt-maven-插件 apt-maven-plugin提供Java 6 APT功能的Maven集成。 支持的目标是 process - to process main sources test-process - to process test sources 这是配置示例 <groupId>com.mysema.maven</groupId...
javaweb/javaee 常用jar包,亲测可用,若需其他版本其他jar包请留言我看到后会上传分享
2) A directory called "apache-maven-3.x.y" will be created. 3) Add the bin directory to your PATH, eg: Unix-based operating systems (Linux, Solaris and Mac OS X) export PATH=/usr/local/apache-...
idea中maven项目右侧插件红线,可能需要手动导入架包等文件,直接把压缩包考进去就行。我的F:\maven_repository\org\apache\maven\plugins\maven-surefire-plugin文件夹下
在这个“apache-maven-3.6.2-bin”安装包中,包含了运行Maven所需的所有核心组件、插件和文档。 1. **Maven的基本概念**: Maven是基于项目对象模型(Project Object Model, POM)的概念,通过XML文件定义项目的...
在apache-maven-3.5.2/conf/setting.xml中加入以下配置即可解决 alimaven aliyun maven http://maven.aliyun.com/nexus/content/repositories/central/ central junit junit Address/ ...
maven-install-plugin-2.5.2.jar
"apache-maven-3.6.3.zip"是Apache Maven的一个特定版本,即3.6.3,通常包含了所有必要的组件和库,方便用户在本地环境中快速安装和使用。 在压缩包中,我们可以看到以下几个关键文件和目录: 1. **LICENSE**: 这...
例如,maven-compiler-plugin用于编译Java源码,maven-surefire-plugin用于执行单元测试,maven-jar-plugin则负责创建JAR文件。 在实际开发中,Maven的`settings.xml`文件通常放在用户的主目录下的`.m2`目录下,它...
apache-maven-3.2.3、apache-maven-3.6.0、apache-maven-3.6.1,仓库用的是http://maven.aliyun.com/nexus/content/groups/public
Maven 使用 tomcat8-maven-plugin 插件 Maven 是一个流行的构建自动化工具,它可以帮助开发者自动完成项目的编译、测试、打包、部署等任务。 Tomcat 是一个流行的 Web 服务器,Maven 提供了一个插件 tomcat8-maven-...
"apache-maven-3.9.0-bin.tar" 是Apache Maven 3.9.0版本的Linux二进制发行版,以tar归档格式提供。这个版本包含了运行Maven所需的所有文件,包括可执行脚本、库文件和文档。用户在Linux环境下,可以将此文件移动到...
Downloading from central: https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml 很奇怪,我的maven仓库配置了私有库,,并且在maven setting.xml中配置了mirror...
1. https://repo1.maven.org/maven2/mysql/mysql-connector-java/ 2. https://cdn.mysql.com//archives/mysql-connector-java-8.0/mysql-connector-java-8.0.28.zip 3. ...
maven-aether-provider-3.2.1-sources.jar maven-antrun-plugin-1.3.jar maven-archiver-2.2.jar maven-artifact-3.2.1-sources.jar maven-assembly-plugin-2.2-beta-5.jar maven-bundle-plugin-1.0.0.jar maven-...
2.配置环境变量,新增M2_HOME=d:/apache-maven-3.0.5 ,修改path环境变量末尾加%M2_HOME%\bin 3.打开cmd窗口,输入mvn -version,返回maven版本和地址 4.新增本地maven库d:/ch_maven_repos 5.打开d:/apache-maven-...