<?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">
  <parent>
    <artifactId>eip</artifactId>
    <groupId>com.hotent</groupId>
    <version>8.2.6.gbase_tomcat</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>sse-server</artifactId>
  <name>auth-server</name>
  <description>SSE通信服务</description>
  <dependencies>
    <dependency>
      <groupId>com.hotent</groupId>
      <artifactId>base</artifactId>
      <version>${parent.version}</version>
    </dependency>
    <dependency>
      <groupId>com.hotent</groupId>
      <artifactId>uc-api-impl</artifactId>
      <version>${parent.version}</version>
    </dependency>
    <!-- rest-auth-service 获取请求方法的授权信息 portal门户模块请不要依赖 只在 bpm-model bpm-runtime
			form,uc中依赖 -->
    <dependency>
      <groupId>com.hotent</groupId>
      <artifactId>rest-auth-service</artifactId>
      <version>${parent.version}</version>
    </dependency>
  </dependencies>
  <!-- 用于生成jar文件-->
  <build>
    <finalName>sse-server</finalName>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>${spring.boot.version}</version>
        <configuration>
          <mainClass>com.hotent.sse.server.Application</mainClass>
          <layout>ZIP</layout>
          <!-- excludeGroupIds 和 includeGroupIds 保持一致   -->
          <!-- 排除的jar -->
          <excludeGroupIds>
            ${third-party-group-ids}
          </excludeGroupIds>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>repackage</goal>
            </goals>
            <configuration>
              <attach>false</attach>
              <classifier>boot</classifier>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <!-- third-party jar into lib directory -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy-dependencies</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>copy-dependencies</goal>
            </goals>
            <configuration>
              <outputDirectory>${project.build.directory}/lib</outputDirectory>
              <!-- excludeGroupIds 和 includeGroupIds 保持一致   -->
              <!-- 导出jar的 groupId -->
              <includeGroupIds>
                ${third-party-group-ids}
              </includeGroupIds>
            </configuration>
          </execution>
        </executions>
      </plugin>

    </plugins>
  </build>
</project>