|
|
@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
<?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>cn.aminer</groupId>
|
|
|
|
|
|
|
|
<artifactId>codegeex-api-example-java</artifactId>
|
|
|
|
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
如果没有下面的这段encoding配置,会导致编译的时候输出WARNING信息:
|
|
|
|
|
|
|
|
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
|
|
|
<version>3.8.1</version>
|
|
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
|
|
<!-- 一般而言,target与source是保持一致的,但是,有时候为了让程序能在其他版本的jdk中运行(对于低版本目标jdk,源代码中不能使用
|
|
|
|
|
|
|
|
低版本jdk中不支持的语法),会存在target不同于source的情况 -->
|
|
|
|
|
|
|
|
<source>1.8</source><!-- 源代码使用的JDK版本 -->
|
|
|
|
|
|
|
|
<target>1.8</target><!-- 需要生成的目标class文件的编译版本 -->
|
|
|
|
|
|
|
|
<encoding>UTF-8</encoding><!-- 字符集编码 -->
|
|
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
|
|
|
|
<version>3.3.0</version>
|
|
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
|
|
<descriptorRefs>
|
|
|
|
|
|
|
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
|
|
|
|
|
</descriptorRefs>
|
|
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
|
|
<!-- 有下面这段executions,才能打出包含所有dependency的fat jar -->
|
|
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
|
|
<phase>package</phase><!-- 指定在打包节点执行jar包合并操作 -->
|
|
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
|
|
<goal>single</goal><!-- 该模块只运行一次 -->
|
|
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>com.fasterxml.jackson.module</groupId>
|
|
|
|
|
|
|
|
<artifactId>jackson-module-parameter-names</artifactId>
|
|
|
|
|
|
|
|
<version>2.6.6</version>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
|
|
|
|
|
|
<artifactId>jackson-datatype-jdk8</artifactId>
|
|
|
|
|
|
|
|
<version>2.6.6</version>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
|
|
|
|
|
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
|
|
|
|
|
|
|
<version>2.6.6</version>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
|
|
|
|
|
|
<artifactId>okhttp</artifactId>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
|
|
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>com.fasterxml.jackson.module</groupId>
|
|
|
|
|
|
|
|
<artifactId>jackson-module-parameter-names</artifactId>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
|
|
|
|
|
|
<artifactId>jackson-datatype-jdk8</artifactId>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
|
|
|
|
|
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
|
|
|
|
|
|
<artifactId>okhttp</artifactId>
|
|
|
|
|
|
|
|
<version>4.10.0</version>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
|
|
|
|
<version>1.2.17</version>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
|
|
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
|
|
|
|
|
|
<version>1.7.5</version>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
|
|
|
<version>1.18.20</version>
|
|
|
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<repositories>
|
|
|
|
|
|
|
|
<repository>
|
|
|
|
|
|
|
|
<!-- Maven 自带的中央仓库使用的id为central,如果其他的仓库声明也是用该id,就会覆盖中央仓库的配置 -->
|
|
|
|
|
|
|
|
<id>central</id>
|
|
|
|
|
|
|
|
<name>ALiYun</name>
|
|
|
|
|
|
|
|
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
|
|
|
|
|
|
|
|
</repository>
|
|
|
|
|
|
|
|
</repositories>
|
|
|
|
|
|
|
|
</project>
|