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

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.

主站蜘蛛池模板: 贵定县| 子长县| 泗阳县| 金湖县| 缙云县| 中阳县| 汽车| 乌苏市| 曲水县| 昆山市| 东乌| 施甸县| 阿坝县| 临武县| 汝南县| 邹城市| 新蔡县| 濉溪县| 抚松县| 称多县| 新安县| 峨边| 金乡县| 波密县| 中江县| 盐山县| 陆丰市| 高雄县| 江阴市| 上林县| 玉龙| 大安市| 公主岭市| 烟台市| 水城县| 鸡泽县| 扎兰屯市| 闸北区| 大城县| 岳阳市| 边坝县|