|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <groupId>apijson.demo</groupId> |
| 7 | + <artifactId>apijson-demo</artifactId> |
| 8 | + <version>5.4.0</version> |
| 9 | + |
| 10 | + <name>APIJSONDemo-Hadoop</name> |
| 11 | + <description>Demo project for testing APIJSON server based on SpringBoot</description> |
| 12 | + |
| 13 | + <properties> |
| 14 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 15 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 16 | + <java.version>1.8</java.version> |
| 17 | + </properties> |
| 18 | + |
| 19 | + <dependencies> |
| 20 | + <!-- JDK 11+ 需要,否则启动报错 NoClassDefFoundError: javax/activation/UnsupportedDataTypeException --> |
| 21 | + <dependency> |
| 22 | + <groupId>javax.activation</groupId> |
| 23 | + <artifactId>activation</artifactId> |
| 24 | + <version>1.1.1</version> |
| 25 | + </dependency> |
| 26 | + |
| 27 | + <!-- 需要的 APIJSON 相关依赖 --> |
| 28 | + <dependency> |
| 29 | + <groupId>com.github.Tencent</groupId> |
| 30 | + <artifactId>APIJSON</artifactId> |
| 31 | + <version>5.4.0</version> |
| 32 | + </dependency> |
| 33 | + <dependency> |
| 34 | + <groupId>com.github.APIJSON</groupId> |
| 35 | + <artifactId>apijson-framework</artifactId> |
| 36 | + <version>5.3.0</version> |
| 37 | + <exclusions> |
| 38 | + <exclusion> |
| 39 | + <groupId>com.github.Tecent</groupId> |
| 40 | + <artifactId>APIJSON</artifactId> |
| 41 | + </exclusion> |
| 42 | + </exclusions> |
| 43 | + </dependency> |
| 44 | + |
| 45 | + <!-- 需要用的数据库 JDBC 驱动 --> |
| 46 | + <dependency> |
| 47 | + <groupId>org.apache.hadoop</groupId> |
| 48 | + <artifactId>hadoop-common</artifactId> |
| 49 | + <version>2.6.5</version> |
| 50 | + <exclusions> |
| 51 | + <exclusion> |
| 52 | + <artifactId>servlet-api</artifactId> |
| 53 | + <groupId>javax.servlet</groupId> |
| 54 | + </exclusion> |
| 55 | + <exclusion> |
| 56 | + <groupId>org.apache.logging.log4j</groupId> |
| 57 | + <artifactId>log4j-slf4j-impl</artifactId> |
| 58 | + </exclusion> |
| 59 | + <exclusion> |
| 60 | + <groupId>org.slf4j</groupId> |
| 61 | + <artifactId>slf4j-log4j12</artifactId> |
| 62 | + </exclusion> |
| 63 | + <exclusion> |
| 64 | + <groupId>org.apache.log4j</groupId> |
| 65 | + <artifactId>org.apache.hive.org.apache.log4j</artifactId> |
| 66 | + </exclusion> |
| 67 | + <exclusion> |
| 68 | + <groupId>log4j</groupId> |
| 69 | + <artifactId>log4j</artifactId> |
| 70 | + </exclusion> |
| 71 | + </exclusions> |
| 72 | + </dependency> |
| 73 | + <dependency> |
| 74 | + <groupId>org.apache.hive</groupId> |
| 75 | + <artifactId>hive-jdbc</artifactId> |
| 76 | + <version>1.1.0</version> |
| 77 | +<!-- <scope>provided</scope>--> |
| 78 | + <exclusions> |
| 79 | + <exclusion> |
| 80 | + <groupId>org.eclipse.jetty.aggregate</groupId> |
| 81 | + <artifactId>*</artifactId> |
| 82 | + </exclusion> |
| 83 | + <exclusion> |
| 84 | + <groupId>org.apache.tomcat.embed</groupId> |
| 85 | + <artifactId>*</artifactId> |
| 86 | + </exclusion> |
| 87 | + <exclusion> |
| 88 | + <groupId>javax.servlet</groupId> |
| 89 | + <artifactId>servlet-api</artifactId> |
| 90 | + </exclusion> |
| 91 | + <exclusion> |
| 92 | + <artifactId>jdk.tools</artifactId> |
| 93 | + <groupId>*</groupId> |
| 94 | + </exclusion> |
| 95 | + <exclusion> |
| 96 | + <groupId>org.apache.logging.log4j</groupId> |
| 97 | + <artifactId>log4j-slf4j-impl</artifactId> |
| 98 | + </exclusion> |
| 99 | + <exclusion> |
| 100 | + <groupId>org.slf4j</groupId> |
| 101 | + <artifactId>slf4j-log4j12</artifactId> |
| 102 | + </exclusion> |
| 103 | + <exclusion> |
| 104 | + <groupId>org.apache.log4j</groupId> |
| 105 | + <artifactId>org.apache.hive.org.apache.log4j</artifactId> |
| 106 | + </exclusion> |
| 107 | + <exclusion> |
| 108 | + <groupId>log4j</groupId> |
| 109 | + <artifactId>log4j</artifactId> |
| 110 | + </exclusion> |
| 111 | + <exclusion> |
| 112 | + <groupId>com.google.code.gson</groupId> |
| 113 | + <artifactId>*</artifactId> |
| 114 | + </exclusion> |
| 115 | + </exclusions> |
| 116 | + </dependency> |
| 117 | + <dependency> |
| 118 | + <groupId>com.google.code.gson</groupId> |
| 119 | + <artifactId>gson</artifactId> |
| 120 | + <version>2.8.5</version> |
| 121 | + <scope>provided</scope> |
| 122 | + </dependency> |
| 123 | + <!-- Oracle, SQLServer 等其它数据库的 JDBC 驱动,可以在这里加上 Maven 依赖或 libs 目录放 Jar 包并依赖 --> |
| 124 | + |
| 125 | + <!-- 需要用的 SpringBoot 框架,1.4.0 以上 --> |
| 126 | + <dependency> |
| 127 | + <groupId>org.springframework.boot</groupId> |
| 128 | + <artifactId>spring-boot-starter-web</artifactId> |
| 129 | + <version>2.0.1.RELEASE</version> |
| 130 | + </dependency> |
| 131 | + |
| 132 | + </dependencies> |
| 133 | + |
| 134 | + <build> |
| 135 | + <plugins> |
| 136 | + <plugin> |
| 137 | + <groupId>org.springframework.boot</groupId> |
| 138 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 139 | + <configuration> |
| 140 | + <fork>true</fork> |
| 141 | + <mainClass>apijson.demo.DemoApplication</mainClass> |
| 142 | + </configuration> |
| 143 | + <executions> |
| 144 | + <execution> |
| 145 | + <goals> |
| 146 | + <goal>repackage</goal> |
| 147 | + </goals> |
| 148 | + </execution> |
| 149 | + </executions> |
| 150 | + </plugin> |
| 151 | + <plugin> |
| 152 | + <groupId>org.apache.maven.plugins</groupId> |
| 153 | + <artifactId>maven-compiler-plugin</artifactId> |
| 154 | + <configuration> |
| 155 | + <source>1.8</source> |
| 156 | + <target>1.8</target> |
| 157 | + </configuration> |
| 158 | + </plugin> |
| 159 | + </plugins> |
| 160 | + </build> |
| 161 | + |
| 162 | + <repositories> |
| 163 | + <!-- APIJSON 必须用到的托管平台 --> |
| 164 | + <repository> |
| 165 | + <id>jitpack.io</id> |
| 166 | + <url>https://jitpack.io</url> |
| 167 | + <snapshots> |
| 168 | + <enabled>true</enabled> |
| 169 | + </snapshots> |
| 170 | + </repository> |
| 171 | + |
| 172 | + <repository> |
| 173 | + <id>spring-snapshots</id> |
| 174 | + <url>https://repo.spring.io/snapshot</url> |
| 175 | + <snapshots> |
| 176 | + <enabled>true</enabled> |
| 177 | + </snapshots> |
| 178 | + </repository> |
| 179 | + <repository> |
| 180 | + <id>spring-milestones</id> |
| 181 | + <url>https://repo.spring.io/milestone</url> |
| 182 | + </repository> |
| 183 | + </repositories> |
| 184 | + |
| 185 | +</project> |
0 commit comments