Hello Spring Cloud Alibaba(三)之maven模块建立
maven根模块与依赖模块建立
根模块
pom.xml内容:
<?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>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.5.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>top.musuixin</groupId>
<artifactId>hello-alibaba</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<!-- 开源协议-->
<licenses>
<license>
<name>Apache 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<!-- 作者-->
<developers>
<developer>
<id>musuixin</id>
<name>musuixin</name>
</developer>
</developers>
<!-- 模块化-->
<modules>
<module>hello-alibaba-dependencies</module>
</modules>
<!-- 依赖管理-->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>top.musuixin</groupId>
<artifactId>hello-alibaba-dependencies</artifactId>