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

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.

主站蜘蛛池模板: 阜南县| 自治县| 扬州市| 永春县| 莲花县| 杭锦后旗| 长乐市| 交口县| 乳源| 军事| 武宣县| 西华县| 青州市| 拉萨市| 广南县| 丰顺县| 宜兴市| 石柱| 全州县| 石景山区| 潢川县| 连山| 西乌珠穆沁旗| 冀州市| 诏安县| 高密市| 四川省| 凤冈县| 福建省| 五莲县| 龙陵县| 鹿泉市| 内丘县| 金华市| 滨州市| 济宁市| 景德镇市| 嘉黎县| 宜宾市| 长宁县| 梧州市|