Spring Boot的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>

<groupId>com.cloud.bigdata</groupId>

<artifactId>BD_AggregateSever_B</artifactId>

<version>0.0.1-SNAPSHOT</version>

<packaging>jar</packaging>

 

<name>service-hi</name>

<description>Demo project for Spring Boot</description>

<parent>

        <groupId>org.springframework.boot</groupId>

        <artifactId>spring-boot-starter-parent</artifactId>

        <version>1.5.2.RELEASE</version>

        <relativePath/> <!-- lookup parent from repository -->

</parent>

<properties>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

        <java.version>1.8</java.version>

</properties>

<dependencies>

        <dependency>

               <groupId>org.springframework.cloud</groupId>

               <artifactId>spring-cloud-starter-eureka</artifactId>

        </dependency>

        <dependency>

            <groupId>org.springframework.cloud</groupId>

            <artifactId>spring-cloud-starter-ribbon</artifactId>

        </dependency>

        <dependency>

               <groupId>org.springframework.boot</groupId>

               <artifactId>spring-boot-starter-web</artifactId>

        </dependency>

        <dependency>

               <groupId>org.springframework.boot</groupId>

              <artifactId>spring-boot-starter-test</artifactId>

               <scope>test</scope>

        </dependency>

        <!-- mina配置 -->

        <dependency>

               <groupId>org.apache.mina</groupId>

               <artifactId>mina-core</artifactId>

               <version>2.0.4</version>

        </dependency>

        <!-- json配置 -->

        <dependency>

               <groupId>net.sf.json-lib</groupId>

               <artifactId>json-lib</artifactId>

               <version>2.3</version>

               <classifier>jdk15</classifier>

        </dependency>

        <dependency>

               <groupId>org.apache.commons</groupId>

               <artifactId>commons-lang3</artifactId>

               <version>3.0.1</version>

        </dependency>

        <dependency>

               <groupId>commons-httpclient</groupId>

               <artifactId>commons-httpclient</artifactId>

               <version>3.1</version>

        </dependency>

        <!-- c3p0 -->

        <dependency>

               <groupId>c3p0</groupId>

               <artifactId>c3p0</artifactId>

               <version>0.9.1.2</version>

        </dependency>

        <dependency>

               <groupId>org.apache.httpcomponents</groupId>

               <artifactId>httpclient</artifactId>

               <version>4.5.5</version>

        </dependency>

        <!-- poi -->

        <dependency>

               <groupId>org.apache.poi</groupId>

               <artifactId>poi</artifactId>

               <version>3.7</version>

        </dependency>

        <!-- 添加数据库驱动 -->

        <dependency>

               <groupId>mysql</groupId>

               <artifactId>mysql-connector-java</artifactId>

        </dependency>

        <dependency>

               <groupId>org.springframework.boot</groupId>

               <artifactId>spring-boot-configuration-processor</artifactId>

               <optional>true</optional>

        </dependency>

</dependencies>

<dependencyManagement>

        <dependencies>

               <dependency>

                      <groupId>org.springframework.cloud</groupId>

                      <artifactId>spring-cloud-dependencies</artifactId>

                      <version>Dalston.RC1</version>

                      <type>pom</type>

                      <scope>import</scope>

               </dependency>

        </dependencies>

</dependencyManagement>

<build>

        <plugins>

               <plugin>

                      <groupId>org.springframework.boot</groupId>

                      <artifactId>spring-boot-Maven-plugin</artifactId>

               </plugin>

        </plugins>

</build>

<repositories>

        <repository>

               <id>spring-milestones</id>

               <name>Spring Milestones</name>

               <url>https://repo.spring.io/milestone</url>

               <snapshots>

                      <enabled>false</enabled>

               </snapshots>

        </repository>

</repositories>

</project>

猜你喜欢

转载自blog.csdn.net/Peter_Changyb/article/details/81195632