123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?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.jollychic</groupId>
- <artifactId>userprofile-monthly-task</artifactId>
- <version>1.0.0</version>
- <properties>
- <!-- <maven.compiler.source>1.8</maven.compiler.source>-->
- <!-- <maven.compiler.target>1.8</maven.compiler.target>-->
- <!-- <java.version>1.8</java.version>-->
- <scala.version>2.11.12</scala.version>
- <spark.version>2.4.0</spark.version>
- <mysql.version>5.1.12</mysql.version>
- <typesafe.version>2.3.11</typesafe.version>
- <fastjson.version>1.2.47</fastjson.version>
- <scalikejdbc.version>3.1.0</scalikejdbc.version>
- <commons.version>3.4</commons.version>
- <encoding>UTF-8</encoding>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.apache.spark</groupId>
- <artifactId>spark-core_2.11</artifactId>
- <version>${spark.version}</version>
- <!-- <scope>provided</scope>-->
- </dependency>
- <!-- 导入scala的依赖 -->
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-library</artifactId>
- <version>${scala.version}</version>
- <!-- <scope>provided</scope>-->
- </dependency>
- <dependency>
- <groupId>org.apache.spark</groupId>
- <artifactId>spark-sql_2.11</artifactId>
- <version>${spark.version}</version>
- <!-- <scope>provided</scope>-->
- </dependency>
- <!-- <dependency>-->
- <!-- <groupId>org.apache.spark</groupId>-->
- <!-- <artifactId>spark-hive_2.11</artifactId>-->
- <!-- <version>2.1.1</version>-->
- <!-- <scope>provided</scope>-->
- <!-- </dependency>-->
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>${mysql.version}</version>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>com.oracle</groupId>
- <!-- <artifactId>ojdbc7</artifactId>-->
- <!-- <version>12.2.0.1</version>-->
- <artifactId>ojdbc6</artifactId>
- <version>11.2.0.3</version>
- <scope>system</scope>
- <!-- <systemPath>${basedir}/lib/ojdbc7-12.2.0.1.jar</systemPath>-->
- <systemPath>${basedir}/src/lib/ojdbc6-11.2.0.3.jar</systemPath>
- </dependency>
- <dependency>
- <groupId>com.typesafe.akka</groupId>
- <artifactId>akka-actor_2.10</artifactId>
- <version>${typesafe.version}</version>
- <exclusions>
- <exclusion>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-library</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>${fastjson.version}</version>
- </dependency>
- <dependency>
- <groupId>org.scalikejdbc</groupId>
- <artifactId>scalikejdbc_2.11</artifactId>
- <version>${scalikejdbc.version}</version>
- </dependency>
- <dependency>
- <groupId>org.scalikejdbc</groupId>
- <artifactId>scalikejdbc-config_2.11</artifactId>
- <version>${scalikejdbc.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-lang3</artifactId>
- <version>${commons.version}</version>
- </dependency>
- <dependency>
- <groupId>org.elasticsearch.client</groupId>
- <artifactId>elasticsearch-rest-high-level-client</artifactId>
- <version>7.6.2</version>
- </dependency>
- <dependency>
- <groupId>org.elasticsearch</groupId>
- <artifactId>elasticsearch-spark-20_2.11</artifactId>
- <version>7.6.2</version>
- </dependency>
- <!-- clickHouse数据库 -->
- <dependency>
- <groupId>ru.yandex.clickhouse</groupId>
- <artifactId>clickhouse-jdbc</artifactId>
- <version>0.3.1</version>
- </dependency>
- </dependencies>
- <build>
- <!-- <resources>-->
- <!-- <resource>-->
- <!-- <directory>src/lib</directory>-->
- <!-- <targetPath>BOOT-INF/lib/</targetPath>-->
- <!-- <includes>-->
- <!-- <include>**/*.jar</include>-->
- <!-- </includes>-->
- <!-- </resource>-->
- <!-- <resource>-->
- <!-- <directory>src/main/resources</directory>-->
- <!-- <targetPath>BOOT-INF/classes/</targetPath>-->
- <!-- </resource>-->
- <!-- </resources>-->
- <finalName>user-group-tag-task</finalName>
- <sourceDirectory>src/main/scala</sourceDirectory>
- <plugins>
- <!-- 指定编译java的插件 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.6.1</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- </configuration>
- </plugin>
- <!-- 指定编译scala的插件 -->
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>scala-maven-plugin</artifactId>
- <version>3.2.2</version>
- <executions>
- <execution>
- <id>scala-compile-first</id>
- <phase>process-resources</phase>
- <goals>
- <goal>add-source</goal>
- <goal>compile</goal>
- </goals>
- </execution>
- <execution>
- <goals>
- <goal>compile</goal>
- <goal>testCompile</goal>
- </goals>
- <configuration>
- <args>
- <arg>-dependencyfile</arg>
- <arg>${project.build.directory}/.scala_dependencies</arg>
- </args>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <descriptorRefs>
- <descriptorRef>jar-with-dependencies</descriptorRef>
- </descriptorRefs>
- <archive>
- </archive>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|