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

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.

主站蜘蛛池模板: 三门县| 调兵山市| 夹江县| 崇明县| 侯马市| 玛曲县| 潜山县| 南郑县| 得荣县| 灌云县| 大邑县| 张北县| 安吉县| 江华| 雷州市| 耿马| 通许县| 南昌县| 新干县| 崇左市| 梓潼县| 大埔区| 镶黄旗| 襄城县| 泸溪县| 麻栗坡县| 宁晋县| 正定县| 南和县| 彭阳县| 乃东县| 南川市| 内江市| 定远县| 阿拉尔市| 广河县| 精河县| 峨眉山市| 汕头市| 法库县| 微博|