|
@@ -0,0 +1,139 @@
|
|
|
+<?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.aliyun.odps.myJava</groupId>
|
|
|
+ <artifactId>MyFirstUDF</artifactId>
|
|
|
+ <version>1.0-SNAPSHOT</version>
|
|
|
+
|
|
|
+ <properties>
|
|
|
+ <maven.compiler.source>8</maven.compiler.source>
|
|
|
+ <maven.compiler.target>8</maven.compiler.target>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ </properties>
|
|
|
+
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.huaban</groupId>
|
|
|
+ <artifactId>jieba-analysis</artifactId>
|
|
|
+ <version>1.0.2</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.aliyun.odps</groupId>
|
|
|
+ <artifactId>odps-sdk-core</artifactId>
|
|
|
+ <version>0.45.6-public</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.aliyun.odps</groupId>
|
|
|
+ <artifactId>odps-sdk-udf</artifactId>
|
|
|
+ <version>0.36.4-public</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.aliyun.odps</groupId>
|
|
|
+ <artifactId>odps-udf-example</artifactId>
|
|
|
+ <version>0.30.8-public</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>fastjson</artifactId>
|
|
|
+ <version>1.2.83</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-shade-plugin</artifactId>
|
|
|
+ <version>3.2.4</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>shade</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <relocations>
|
|
|
+ <relocation>
|
|
|
+ <pattern>com.google.protobuf</pattern>
|
|
|
+ <shadedPattern>shaded.com.google.protobuf</shadedPattern>
|
|
|
+ </relocation>
|
|
|
+ </relocations>
|
|
|
+ <minimizeJar>false</minimizeJar>
|
|
|
+ <shadedArtifactAttached>true</shadedArtifactAttached>
|
|
|
+ <artifactSet>
|
|
|
+ <includes>
|
|
|
+ <!-- Include here the dependencies you
|
|
|
+ want to be packed in your fat jar -->
|
|
|
+ <include>*:*</include>
|
|
|
+ </includes>
|
|
|
+ </artifactSet>
|
|
|
+ <filters>
|
|
|
+ <filter>
|
|
|
+ <artifact>*:*</artifact>
|
|
|
+ <excludes>
|
|
|
+ <exclude>META-INF/*.SF</exclude>
|
|
|
+ <exclude>META-INF/*.DSA</exclude>
|
|
|
+ <exclude>META-INF/*.RSA</exclude>
|
|
|
+ <exclude>**/log4j.properties</exclude>
|
|
|
+ </excludes>
|
|
|
+ </filter>
|
|
|
+ </filters>
|
|
|
+ <transformers>
|
|
|
+ <transformer
|
|
|
+ implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
|
|
+ <resource>reference.conf</resource>
|
|
|
+ </transformer>
|
|
|
+ <transformer
|
|
|
+ implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
|
|
+ <resource>
|
|
|
+ META-INF/services/org.apache.spark.sql.sources.DataSourceRegister
|
|
|
+ </resource>
|
|
|
+ </transformer>
|
|
|
+ </transformers>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>net.alchim31.maven</groupId>
|
|
|
+ <artifactId>scala-maven-plugin</artifactId>
|
|
|
+ <version>3.3.2</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>scala-compile-first</id>
|
|
|
+ <phase>process-resources</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>compile</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <id>scala-test-compile-first</id>
|
|
|
+ <phase>process-test-resources</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>testCompile</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.8.1</version>
|
|
|
+ <configuration>
|
|
|
+ <source>1.8</source>
|
|
|
+ <target>1.8</target>
|
|
|
+ <!--<compilerId>scala</compilerId>-->
|
|
|
+ <!-- <compilerVersion>2.12.10</compilerVersion>-->
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+
|
|
|
+
|
|
|
+</project>
|