<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>com.ovopark.dc</groupId>-->
<!--    <artifactId>dc-storage-broker</artifactId>-->
<!--    <version>1.0.0</version>-->
<!--  </parent>-->
  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.2.2.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
  </parent>

  <name>dc-storage-broker-sdk</name>
  <groupId>com.ovopark.dc</groupId>
  <!-- 推送maven私服  -->
  <artifactId>dc-storage-broker-sdk</artifactId>
  <version>1.0.0-RELEASE</version>
  <distributionManagement>
    <repository>
      <id>nexus-server</id>
      <url>http://116.62.59.245:8081/nexus/content/repositories/releases/</url>
    </repository>
  </distributionManagement>
  <properties>
    <skipTests>true</skipTests>
  </properties>
  <dependencies>
    <dependency>
      <groupId>com.ovopark.dc</groupId>
      <artifactId>dc-storage-broker-service</artifactId>
      <exclusions>
        <exclusion>
          <groupId>com.squareup.okhttp3</groupId>
          <artifactId>okhttp</artifactId>
        </exclusion>
      </exclusions>
      <version>1.0.0-RELEASE</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-test</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>com.squareup.okhttp3</groupId>
      <artifactId>okhttp</artifactId>
      <version>4.9.1</version>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.hibernate.validator</groupId>
      <artifactId>hibernate-validator</artifactId>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
          <mainClass>com.ovopark.dc.BrokerApp</mainClass>
          <layout>JAR</layout>
          <!--构建完整可执行程序，可以直接运行-->
          <executable>true</executable>
        </configuration>
        <executions>
          <execution>
            <id>repackage</id>
            <goals>
              <goal>repackage</goal>
            </goals>
            <configuration>
              <!-- 跳过 repackage SDK服务更新的时候 skip打开-->
              <skip>true</skip>
            </configuration>
          </execution>
        </executions>
        <!-- 如果被依赖的jar找不到路径参考此文档： https://blog.51cto.com/u_14240433/4885102	-->
      </plugin>
    </plugins>

  </build>

</project>