| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 | <?xml version="1.0" encoding="UTF-8"?><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/xsd/maven-4.0.0.xsd">    <modelVersion>4.0.0</modelVersion>    <groupId>com.sf</groupId>    <artifactId>maven-parent2</artifactId>    <version>1.0-SNAPSHOT</version><!--    子工程-->    <modules>        <module>maven01</module>    </modules>    <!--    打包方式jar-->    <packaging>pom</packaging>    <properties>        <maven.compiler.source>8</maven.compiler.source>        <maven.compiler.target>8</maven.compiler.target>        <junit.version>4.11</junit.version>        <javaee-api.version>8.0</javaee-api.version>    </properties><!--    当前父项目的pom.xml中添加一个junit依赖--><!--    当父工程中的依赖用<dependencies></dependencies>标签修饰时,子工程会自定继承父工程的依赖-->    <dependencies>        <dependency>            <groupId>junit</groupId>            <artifactId>junit</artifactId>            <version>${junit.version}</version>            <scope>test</scope>        </dependency>        <dependency>            <groupId>javax</groupId>            <artifactId>javaee-api</artifactId>            <version>${javaee-api.version}</version>        </dependency>    </dependencies><!--dependencyManagement标签管理依赖    --><dependencyManagement>    <dependencies>        <dependency>            <groupId>jakarta.xml.bind</groupId>            <artifactId>jakarta.xml.bind-api</artifactId>            <version>4.0.0</version>        </dependency><!--        spring-framework-bom 依赖-->        <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-framework-bom</artifactId>            <version>4.3.10.RELEASE</version>            <scope>import</scope>            <type>pom</type>        </dependency>    </dependencies></dependencyManagement></project>
 |