官术网_书友最值得收藏!

Creating a Maven project

Once the IDE is installed, perform the following steps:

  1. Double click on the .exe file for Eclipse and go to File | New | Other.
  2. Select Maven Project. Click Next.
  3. Click Next on the screen that appears.
  4. Select Create a simple project (skip archetype selection). Then, click Next.
  5. Input the Group ID. Ideally, this is the package name of the project. The Artifact ID corresponds to the name of the JAR file in case you want to create one. Keep the packaging as JAR. Notice that the version is 0.0.1-SNAPSHOT. The SNAPSHOT part indicates that the project is still under development and has not been released.
  1. Click Finish. The following is a snapshot of the Project Explorer:

When you create a Maven Project, the src/main/java, src/main/resources, src/test/java, and src/test/resources folders, are created for you. Apart from these, you will see a Maven Dependencies folder that is currently empty. Marked with a black box, there is a .xml file called pom.xml. This is the place where you will place all of the dependencies for your project. By dependencies, I mean dependent JARs. JAR stands for Java archive.

主站蜘蛛池模板: 巴青县| 民乐县| 金溪县| 临安市| 惠州市| 天峻县| 北流市| 泸州市| 桑日县| 南宁市| 简阳市| 思茅市| 扎囊县| 筠连县| 韶关市| 台山市| 武宁县| 昌黎县| 买车| 陇南市| 天门市| 毕节市| 原阳县| 辽宁省| 乡城县| 诸城市| 西藏| 梁平县| 杨浦区| 高陵县| 防城港市| 普陀区| 驻马店市| 神池县| 苍梧县| 玛纳斯县| 三台县| 高碑店市| 沧源| 霍邱县| 红安县|