开源代码的简单范例

pom.xml 2.0KB

    <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.ai.ipu.example</groupId> <artifactId>springcloud-example</artifactId> <version>1.0-SNAPSHOT</version> <packaging>pom</packaging> <name>springcloud-example</name> <description>springcloud的简单范例</description> <modules> <module>eureka-server</module> <module>feign-service-provider</module> <module>feign-service-consumer</module> <module>service-api</module> </modules> <properties> <spring-boot-dependencies>1.5.21.RELEASE</spring-boot-dependencies> <spring-cloud-dependencies>Edgware.SR6</spring-cloud-dependencies> </properties> <!-- 管理依赖 --> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>${spring-cloud-dependencies}</version> <type>pom</type> <scope>import</scope> </dependency> <!-- Spring Boot无侵入依赖引入方式 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>${spring-boot-dependencies}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> --> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> </project>