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

Viewing a POM file after creating a project

Once we have created a project, we can see the pom.xml file in our project folder. It will have all the basic details, such as groupId, name, and so on. Also, you can see the default Junit dependency under the dependencies configuration part:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.packtpub.restapp</groupId>
<artifactId>ticket-management</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>ticket-management</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Maven artifacts belong to a group (typically com.organization.product), and must have a unique identifier.

In the preceding POM file, the SNAPSHOT suffix in version tells Maven that this project is still in development.

主站蜘蛛池模板: 绥化市| 普格县| 宜州市| 曲松县| 葫芦岛市| 彭水| 枣阳市| 福海县| 利辛县| 阳山县| 宁夏| 修水县| 博罗县| 辽阳市| 华宁县| 财经| 长阳| 嘉兴市| 永嘉县| 灵石县| 清流县| 双流县| 贡嘎县| 马关县| 彰化县| 西贡区| 平凉市| 赫章县| 盐边县| 沧源| 天峻县| 南宁市| 柳河县| 会泽县| 广德县| 山丹县| 铜陵市| 工布江达县| 西充县| 罗田县| 大洼县|