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

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.

主站蜘蛛池模板: 同心县| 滦南县| 神池县| 荆州市| 兴化市| 镇原县| 阜平县| 黑水县| 罗源县| 吉林省| 丁青县| 南靖县| 化州市| 黔西县| 吉林市| 荣成市| 雷州市| 南宁市| 陆丰市| 阿拉尔市| 军事| 靖江市| 邵东县| 康保县| 舒城县| 永城市| 安乡县| 连山| 北辰区| 沙坪坝区| 凌云县| 阿合奇县| 穆棱市| 南澳县| 东宁县| 郁南县| 石狮市| 门头沟区| 饶平县| 霍林郭勒市| 曲松县|