标签:style class blog code java http
1.什么是Maven?
Maven是一个项目管理工具,主要用于项目构建,依赖管理,项目信息管理。
2.下载及安装
1 <mirrors> 2 <!-- mirror 3 | Specifies a repository mirror site to use instead of a given repository. The repository that 4 | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used 5 | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. 6 | 7 <mirror> 8 <id>mirrorId</id> 9 <mirrorOf>repositoryId</mirrorOf> 10 <name>Human Readable Name for this Mirror.</name> 11 <url>http://my.repository.com/repo/path</url> 12 </mirror> 13 --> 14 <mirror> 15 <id>Nexus</id> 16 <name>Nexus Public Mirror</name> 17 <url>http://172.19.41.47:8781/nexus/content/groups/public/</url> 18 <mirrorOf>central</mirrorOf> 19 </mirror> 20 </mirrors>
3.使用MyEclipse中配置Maven
4. 更新maven插件
重启myEclipse后,点击右上角“Apply 1 change”
如果删除不了可以选择手动删除:
关闭Eclipse程序, 进入MyEclipse插件目录/eclipse/features,
删除com.genuitec.myeclipse.maven_6.5.1.zmyeclipse650200806目录,
接着删除plugins目录下的com.genuitec.myeclipse.maven_6.5.1.zmyeclipse650200806, org.maven.ide.components.archetype_common_2.0.0.20080331-1600, org.maven.ide.components.maven_embedder_2.1.0.20080410-2200, org.maven.ide.components.maven_model_edit_1.0.0.20080331-1600, org.maven.ide.components.maven_scm_1.0.0.20080410-2200,
org.maven.ide.components.nexus_indexer_1.0.0.20080331-1600,
org.maven.ide.components.qname_1.0.0.20080331-1600目录,
还有com.genuitec.eclipse.maven_6.5.1.zmyeclipse650200806.jar,
org.maven.ide.eclipse.central_0.9.1.zmyeclipse650200806.jar,
org.maven.ide.eclipse.scm_0.9.2.zmyeclipse650200806.jar,
org.maven.ide.eclipse_0.9.3.zmyeclipse650200806.jar
这四个文件. 然后加上-clean参数启动Eclipse
4. 使用SVN检出maven项目
点击“Finish“,在弹出新建页面中选择“Java Maven Project”
点击next,输入项目名称“tqmsapp”,点击“Finish”
5.后续相关配置
6.pom.xml文件,添加相关 jar包依赖
7.构建及部署项目
Maven 快速入门及简单使用,布布扣,bubuko.com
标签:style class blog code java http
原文地址:http://www.cnblogs.com/tongboy/p/3809274.html