1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- project根标签:对当前工程进行配置管理和管理--> 3 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 5 <!-- modelVersion标签--> 6 <modelVersion>4.0.0</modelVersion> 7 8 9 10 11 <!-- 当前maven的坐标--> 12 <!-- groupId 坐标向量: 代表公司或组织开发的某一个项目--> 13 <groupId>com.atguigu.maven</groupId> 14 <!-- artifactId 坐标向量:代表项目下的某个模块--> 15 <artifactId>pro01-maven-java</artifactId> 16 <!-- version 坐标向量:代表当前模块的版本--> 17 <version>1.0-SNAPSHOT</version> 18 19 <!--packing 标签:表示打包方式, 20 生成jar包说明这是个java工程. 21 如果是war,则是web工程. 22 如果是pom,说明这个工程师用来管理其他工程的工程 --> 23 <packaging>jar</packaging> 24 25 26 27 <name>pro01-maven-java</name> 28 <!-- FIXME change it to the project's website --> 29 <url>http://www.example.com</url> 30 31 32 33 <!-- properties标签: 在Maven中定义属性值 --> 34 <properties> 35 <!-- 在构建过程中读取源码时使用的字符集 --> 36 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 37 <maven.compiler.source>1.7</maven.compiler.source> 38 <maven.compiler.target>1.7</maven.compiler.target> 39 </properties> 40 41 <!-- dependencies标签: 用来配置一个具体的依赖信息,可以包含多个dependency子标签 --> 42 <dependencies> 43 <!-- dependencies可以包含多个dependency子标签 --> 44 <dependency> 45 <!-- 用坐标信息来导入jar包 --> 46 <groupId>junit</groupId> 47 <artifactId>junit</artifactId> 48 <version>4.11</version> 49 <!-- scope标签: 表示当前依赖的范围 --> 50 <scope>test</scope> 51 </dependency> 52 </dependencies> 53 54 <build> 55 <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> 56 <plugins> 57 <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --> 58 <plugin> 59 <artifactId>maven-clean-plugin</artifactId> 60 <version>3.1.0</version> 61 </plugin> 62 <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> 63 <plugin> 64 <artifactId>maven-resources-plugin</artifactId> 65 <version>3.0.2</version> 66 </plugin> 67 <plugin> 68 <artifactId>maven-compiler-plugin</artifactId> 69 <version>3.8.0</version> 70 </plugin> 71 <plugin> 72 <artifactId>maven-surefire-plugin</artifactId> 73 <version>2.22.1</version> 74 </plugin> 75 <plugin> 76 <artifactId>maven-jar-plugin</artifactId> 77 <version>3.0.2</version> 78 </plugin> 79 <plugin> 80 <artifactId>maven-install-plugin</artifactId> 81 <version>2.5.2</version> 82 </plugin> 83 <plugin> 84 <artifactId>maven-deploy-plugin</artifactId> 85 <version>2.8.2</version> 86 </plugin> 87 <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> 88 <plugin> 89 <artifactId>maven-site-plugin</artifactId> 90 <version>3.7.1</version> 91 </plugin> 92 <plugin> 93 <artifactId>maven-project-info-reports-plugin</artifactId> 94 <version>3.0.0</version> 95 </plugin> 96 </plugins> 97 </pluginManagement> 98 </build> 99 </project>
浙公网安备 33010602011771号