您好,欢迎来到爱问旅游网。
搜索
您的当前位置:首页Maven3学习笔记1配置及eclipse插件安装

Maven3学习笔记1配置及eclipse插件安装

来源:爱问旅游网
说明:

个人想学习 江南白衣的springside4,不过搞下来以后,发现需要Maven构建。

然后看了好多人写的学习笔记,感觉知其然,不知其所以然。或者说,他们也是按照说明去处理一下。

我个人的动手能力还是比较弱的。

说实话,别人的学习笔记,看完了,没有看明白,也不知怎么弄。

后来,发现一个视频,不过只有第一节30分钟,后面购买需要60元。

倒不是说这些钱,怎么样,我觉得结合2点,1,我并不着急使用它,2.锻炼一下我看E文文档的能力吧。

所以,我决定,去Apache上,自己去看,看看是否能够学会,其实不难,只是自己的动手习惯问题,实践去了。

Welcome to Apache Maven

Apache Maven is a software project management and comprehension(理解) tool. Based on the concept (概念)of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.

If you think that Maven could help your project, you can find out more information about in the \"About Maven\" section of the navigation. This includes an in-depth description of what Maven is, a list of some of its main features, and a set of frequently asked questions(常见问答) about what Maven is.

Learning about Maven

This site is separated(分成-若干部分) into the following sections, depending on how you'd like to use Maven:

Run MavenInformation for those needing to build a project that uses Maven

 Use MavenInformation for those wanting to use Maven to build their project,

including a \"10 minute test\" that gives a practical overview of Maven's main features in just 10 minutes

Write Maven PluginsInformation for those who may or may not be using

Maven, but want to provide a plugin for shared functionality or to accompany their own product or toolset

 

Improve the Maven RepositoryInformation for those who may or may

not use, but are interested in getting project metadata into the repository

Develop MavenInformation for those who are currently developers, or who are

interested in contributing to the Maven project itself

Each guide is divided into a number of trails to get you started on a particular topic, and includes a reference area and a \"cookbook\" of common examples. You can access the guides at any time from the left navigation.

这里我需要用到的是 Use Maven。

其他的如,Run Maven ,Write Maven Plugins,等暂时还都用不到。

Use Maven

1. 安装Maven

a) 下载Maven, Maven主页地址,maven.apache.org

b) 首先必须有jdk,并且设置好 JAVA_HOME 和path,这里默认为使用到Maven的都

不需要解释这一步。

c) 其实配置Maven,设置环境变了 M2_HOME,添加到Path,% M2_HOME %\\bin, d) 然后开cmd,输入命令 mvn –v ,出现结果如下:

标志配置成功。 e) 注意,当时我这里直接测试,提示不能识别 Mvn命令,重启了电脑一下,就好了。 2. 配置Maven

a) 在% M2_HOME %\\conf中,修改 setting文件

b)

c) OK,先来体会一下 maven,在 cmd 中敲并回车执行:mvn help:system 这时候

maven 就会从远程仓库开始下载一大堆的东西,没事,让它下载着,迟早都要下载的

3. 在Eclipse中配置Maven

a) 个人不太喜欢Myeclipse,所以用的Eclipse。

b) 安装方法,两种,从Eclipse的Install new software, 第二,安装离线包。

c) 今天又从网上发现了一种,我一直也没有使用过的。现在写初步骤来。Eclipse版本

好像至少得3.6,或者以上

d)

e)

f) 在Find里面,输入 m2e g) 我

h) 安装完成后,重启eclipse。

i) 重启后出现如下配置,即为成功。

j)

k) 把你自己的安装地址,添加上。

l) 另外配置 User Settings,不再附图,即可。

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- awee.cn 版权所有 湘ICP备2023022495号-5

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务