Create a New Maven Project in Eclipse
来源:互联网 发布:c语言规范5.0中文版 编辑:程序博客网 时间:2024/05/06 01:02
When creating a project in Eclipse, one may use Maven to manage dependencies more easily and to resolve transitive dependencies automatically. Maven projects have a consistent structure for each project created, and it is possible to create this structure automatically within Eclipse.
1.In the Eclipse IDE, navigate to File > New > Other… in order to bring up the project creation wizard.
2.Scroll to the Maven folder, open it, and choose Maven Project. Then choose Next.
3.You may choose to Create a simple project or forgo this option. For the purposes of this tutorial, we will choose the simple project. This will create a basic, Maven-enabled Java project. If you require a more advanced setup, leave this setting unchecked, and you will be able to use more advanced Maven project setup features. Leave other options as is, and click Next.
4.Now, you will need to enter information regarding the Maven Project you are creating. You may visit the Maven documentation for a more in-depth look at the Maven Coordinates (http://maven.apache.org/pom.html#Maven_Coordinates). In general, the Group Id should correspond to your organization name, and the Artifact Id should correspond to the project’s name. The version is up to your discretion as is the packing and other fields. If this is a stand-alone project that does not have parent dependencies, you may leave the Parent Project section as is. Fill out the appropriate information, and click Finish.
5.You will now notice that your project has been created. You will place your Java code in/src/main/java, resources in /src/main/resources, and your testing code and resources in /src/test/java and /src/test/resources respectively.
6.Open the pom.xml file to view the structure Maven has set up. In this file, you can see the information entered in Step 4. You may also use the tabs at the bottom of the window to change to view Dependencies, the Dependency Hierarchy, the Effective POM, and the raw xml code for the pom file in the pom.xml tab.
You now have a new Java project with Maven enabled.
- Create a New Maven Project in Eclipse
- Create a New Maven Project in Eclipse
- Create maven project in eclipse
- eclipse, create maven project
- Steps To Create A New Project in Github
- 一、Create-a-new-project
- How to Create J2ee Project With Maven in Eclipse
- Eclipse Maven "Create a simple project" 没有web.xml文件
- Create a Project with Eclipse
- Create a Project with Eclipse
- Create a new android product project
- eclipse构建maven project 的web项目,勾选Create a simple project < =1= >
- eclipse构建maven project 的web项目,不勾选Create a simple project 。 < =2= >
- eclipse构建maven project 的web项目,勾选Create a simple project < =1= >
- Maven:Failed to create a Maven project ‘…pom.xml’ already exists in VFS 解决
- debug maven project in eclipse
- Failed to create a Maven project: 'D:/WorkSpaces/codes/pom.xml' already exists in VFS
- Create a new virtual machine in CentOS
- 网络开源项目集
- Could not resolve SDK path for 'macosx10.8' 的解决
- IIS下防止mdb数据库被下载的实现方法
- baidu你个逗X
- 数据库主从
- Create a New Maven Project in Eclipse
- 离散时间信号
- Hive配置项的含义详解
- [Leetcode 39, Medium] Combination Sum
- Redis配置文件详解
- DesignPatterns_Mediator
- Github for Windows使用介绍
- CPU动态调频三:interactive governor如何选频
- SQL Server 2008 数据挖掘算法浅析