pom.xml 5.45 KB
<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.zhaoonline.common</groupId>
	<artifactId>zhaoonline-utils</artifactId>
	<version>1.0.0-SNAPSHOT</version>
	<name></name>
	<description>封装各种使用的API client.包括Elasticsearch的client</description>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<java.version>1.8</java.version>
		<logback.version>1.1.7</logback.version>
		<es.version>2.1.1</es.version>
	</properties>

	<dependencies>
		<dependency>
		    <groupId>org.apache.httpcomponents</groupId>
   			<artifactId>httpclient</artifactId>
  			<version>4.5.2</version>
		</dependency>
		<!-- -->
		<dependency>
   			 <groupId>org.elasticsearch</groupId>
    		<artifactId>elasticsearch</artifactId>
    		<version>${es.version}</version>
    		<exclusions>
			        <exclusion>
			            <groupId>com.spatial4j</groupId>
			            <artifactId>spatial4j</artifactId>
			        </exclusion>
			        <exclusion>
			            <groupId>com.vividsolutions</groupId>
			            <artifactId>jts</artifactId>
			        </exclusion>
			        <exclusion>
			            <groupId>com.github.spullara.mustache.java</groupId>
			            <artifactId>compiler</artifactId>
			        </exclusion>
			         <exclusion>
           					 <groupId>org.elasticsearch</groupId>
          					  <artifactId>securesm</artifactId>
       				 </exclusion>
			         <exclusion>
			            <groupId>org.yaml</groupId>
			            <artifactId>snakeyaml</artifactId>
			        </exclusion>
			        <exclusion>
			            <groupId>io.netty</groupId>
			            <artifactId>netty</artifactId>
			        </exclusion>
			        <exclusion>
			            <groupId>com.ning</groupId>
			            <artifactId>compress-lzf</artifactId>
			        </exclusion>
			        <exclusion>
			            <groupId>com.tdunning</groupId>
			            <artifactId>t-digest</artifactId>
			        </exclusion>
			        <exclusion>
			            <groupId>org.hdrhistogram</groupId>
			            <artifactId>HdrHistogram</artifactId>
			        </exclusion>
			        <exclusion>
			            <groupId>commons-cli</groupId>
			            <artifactId>commons-cli</artifactId>
			        </exclusion>
    		</exclusions>
		</dependency>
		 
		 <dependency>
    			 <groupId>org.apache.httpcomponents</groupId>
      			<artifactId>httpcore</artifactId>
      			<version>4.4.5</version>
   		 </dependency>

		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
			<version>1.10.19</version>
		</dependency>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version><!--$NO-MVN-MAN-VER$ -->
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
			<version>2.8.1</version>
		</dependency>
		<dependency>
            <groupId>com.fasterxml.jackson.dataformat</groupId>
            <artifactId>jackson-dataformat-cbor</artifactId>
            <version>2.8.1</version>
        </dependency>
   		<dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.8.1</version>
        </dependency>
		<dependency>
			<groupId>joda-time</groupId>
			<artifactId>joda-time</artifactId>
			<version>2.9.4</version>
		</dependency>
		
		
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-access</artifactId>
			<version>${logback.version}</version>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>${logback.version}</version>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-core</artifactId>
			<version>${logback.version}</version>
		</dependency>
		 <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>1.7.21</version>
         </dependency>
	</dependencies>

	<distributionManagement>
		<repository>
			<id>releases</id>
			<url>http://192.168.0.205:8081/nexus/content/repositories/releases</url>
		</repository>

		<snapshotRepository>
			<id>snapshots</id>
			<url>http://192.168.0.205:8081/nexus/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>
	
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<version>3.0.1</version>
				<configuration>
					<encoding>UTF-8</encoding>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<version>3.0.0</version>
				<configuration>
					<attach>true</attach>
					<encoding>UTF-8</encoding>
				</configuration>
				<executions>
					<execution>
						<id>attach-sources</id>
						<phase>compile</phase>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin>
		</plugins>

	</build>

</project>