<?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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>schedulerx-parent</artifactId>
    <groupId>com.aliyun.schedulerx</groupId>
    <version>1.2.1</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.aliyun.schedulerx</groupId>
  <artifactId>schedulerx2-worker</artifactId>
  <name>schedulerx2-worker</name>
  <version>1.4.0</version>
  <url>http://maven.apache.org</url>
  <developers>
    <developer>
      <name>xueren</name>
      <email>xiaomeng.hxm@alibaba-inc.com</email>
    </developer>
    <developer>
      <name>qianxi</name>
      <email>yaohui.yao@alibaba-inc.com</email>
    </developer>
    <developer>
      <name>lukun</name>
      <email>lukun.cc@alibaba-inc.com</email>
    </developer>
    <developer>
      <name>yanxun</name>
      <email>yanxun.ly@alibaba-inc.com</email>
    </developer>
    <developer>
      <name>zhaibian</name>
      <email>chuanyao.lcy@alibaba-inc.com</email>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <url>http://svn.apache.org/viewvc/maven</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>com.mashape.unirest:unirest-java</include>
                  <include>org.json:json</include>
                  <include>org.apache.httpcomponents:*</include>
                  <include>commons-codec:commons-codec</include>
                  <include>com.h2database:h2</include>
                  <include>com.zaxxer:HikariCP</include>
                  <include>org.javassist:javassist</include>
                  <include>com.aliyun.schedulerx:schedulerx2-common</include>
                  <include>com.aliyun.schedulerx:schedulerx2-protocol</include>
                  <include>com.aliyun.schedulerx:schedulerx2-api</include>
                  <include>com.taobao.hsf.hessian:hessian</include>
                  <include>com.google.code.gson:gson</include>
                  <include>com.google.guava:guava</include>
                  <include>commons-configuration:commons-configuration</include>
                  <include>commons-lang:commons-lang</include>
                  <include>commons-collections:commons-collections</include>
                  <include>com.aliyun.openservices:aliyun-log-producer</include>
                  <include>com.aliyun.openservices:aliyun-log</include>
                  <include>commons-beanutils:commons-beanutils</include>
                  <include>commons-digester:commons-digester</include>
                  <include>commons-validator:commons-validator</include>
                  <include>net.sf.json-lib:json-lib:jdk15</include>
                  <include>net.sf.ezmorph:ezmorph</include>
                  <include>net.jpountz.lz4:lz4</include>
                  <include>com.google.protobuf:protobuf-java</include>
                  <include>io.netty:netty</include>
                  <include>com.typesafe.akka:*</include>
                  <include>com.typesafe:config</include>
                  <include>org.scala-lang:scala-library</include>
                  <include>org.scala-lang.modules:*</include>
                  <include>org.slf4j:slf4j-api</include>
                  <exclude>commons-logging:commons-logging</exclude>
                </includes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>org.apache.commons</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.org.apache.commons</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>javassist</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.javassist</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.mashape.unirest</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.com.mashape.unirest</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.json</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.org.json</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.http</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.org.apache.http</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.h2</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.org.h2</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.zaxxer.hikari</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.com.zaxxer.hikari</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.google.common</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.com.google.common</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.google.thirdparty</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.com.google.thirdparty</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.taobao.hsf.com.caucho</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.hsf</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.google.gson</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.com.google.gson</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.aliyun.openservices</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.com.aliyun.openservices</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons.beanutils</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.org.apache.commons.beanutils</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons.digester</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.org.apache.commons.digester</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons.validator</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.org.apache.commons.validator</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>net.sf.json</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.net.sf.json</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>net.sf.ezmorph</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.net.sf.ezmorph</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>net.jpountz</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.net.jpountz</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.google.protobuf</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.com.google.protobuf</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.jboss.netty</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.org.jboss.netty</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.slf4j</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.org.slf4j</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>scala</pattern>
                  <shadedPattern>com.alibaba.schedulerx.shade.scala</shadedPattern>
                </relocation>
              </relocations>
              <transformers>
                <transformer>
                  <manifestEntries>
                    <Main-Class>akka.Main</Main-Class>
                  </manifestEntries>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
        <configuration />
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy</id>
            <phase>install</phase>
            <goals>
              <goal>copy-dependencies</goal>
            </goals>
            <configuration>
              <outputDirectory>target/lib</outputDirectory>
              <includeScope>compile</includeScope>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.9.1</version>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <encoding>UTF-8</encoding>
                  <aggregate>true</aggregate>
                  <charset>UTF-8</charset>
                  <docencoding>UTF-8</docencoding>
                  <additionalparam>-Xdoclint:none</additionalparam>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <encoding>UTF-8</encoding>
              <aggregate>true</aggregate>
              <charset>UTF-8</charset>
              <docencoding>UTF-8</docencoding>
              <additionalparam>-Xdoclint:none</additionalparam>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>2.2.1</version>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>disable-java8-doclint</id>
      <properties>
        <maven.test.skip>true</maven.test.skip>
        <additionalparam>-Xdoclint:none</additionalparam>
      </properties>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>com.alibaba</groupId>
      <artifactId>fastjson</artifactId>
      <version>1.2.75</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>2.9.4</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <version>5.2.7.RELEASE</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-aop</artifactId>
      <version>5.2.7.RELEASE</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <version>5.2.7.RELEASE</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
      <version>5.2.7.RELEASE</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-orm</artifactId>
      <version>5.2.7.RELEASE</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-test</artifactId>
      <version>5.2.7.RELEASE</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.aliyun.openservices</groupId>
      <artifactId>aliyun-log-log4j2-appender</artifactId>
      <version>0.1.12</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-core</artifactId>
      <version>1.2.2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <version>1.2.2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-api</artifactId>
      <version>2.15.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
      <version>2.15.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.17</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.aliyun</groupId>
      <artifactId>dataworks_public20200518</artifactId>
      <version>4.2.5</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.16.22</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>joda-time</groupId>
      <artifactId>joda-time</artifactId>
      <version>2.9.2</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-module-junit4</artifactId>
      <version>1.7.1</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>objenesis</artifactId>
          <groupId>org.objenesis</groupId>
        </exclusion>
        <exclusion>
          <artifactId>powermock-module-junit4-common</artifactId>
          <groupId>org.powermock</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-api-mockito2</artifactId>
      <version>1.7.1</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>powermock-api-mockito-common</artifactId>
          <groupId>org.powermock</groupId>
        </exclusion>
        <exclusion>
          <artifactId>mockito-core</artifactId>
          <groupId>org.mockito</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <properties>
    <dataworks.api.version>4.2.5</dataworks.api.version>
    <h2.version>1.4.197</h2.version>
    <schedulerx.log4j2.version>2.15.0</schedulerx.log4j2.version>
    <skipDeploy>false</skipDeploy>
    <spring.version>5.2.7.RELEASE</spring.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
</project>
