|
<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>
<!-- ipu-home等普通web项目继承使用 -->
<groupId>com.ai.ipu</groupId>
<artifactId>ipu-server-lib-web</artifactId>
<version>3.0</version>
<packaging>pom</packaging>
<name>ipu-server-lib</name>
<!-- 定义公共变量 -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<encoding>UTF-8</encoding>
<!-- 公共必选依赖 -->
<junit>3.8.1</junit>
<servlet-api>2.5</servlet-api>
<log4j>1.2.8</log4j>
<unirest-java>1.3.8</unirest-java>
<dom4j>1.6.1</dom4j>
<jaxen>1.1.1</jaxen>
<commons-lang3>3.4</commons-lang3>
<beetl-core>2.2.3</beetl-core>
<velocity>1.7</velocity>
<!-- 公共可选依赖 -->
<jsoup>1.7.2</jsoup>
<commons-fileupload>1.3.1</commons-fileupload>
<commons-dbcp>1.4</commons-dbcp>
<mysql-connector-java>5.1.38</mysql-connector-java>
<commons-codec>1.3</commons-codec>
<!-- 公共插件 -->
<maven-clean-plugin>3.0.0</maven-clean-plugin>
<maven-resources-plugin>2.6</maven-resources-plugin>
<maven-compiler-plugin>3.1</maven-compiler-plugin>
<compiler-version>1.6</compiler-version>
<maven-surefire-plugin>2.16</maven-surefire-plugin>
<maven-war-plugin>2.6</maven-war-plugin>
<exec-maven-plugin>1.5.0</exec-maven-plugin>
<!-- 本地jar路径 -->
<jar-path>${project.basedir}/local</jar-path>
</properties>
<dependencyManagement>
<dependencies>
<!-- 公共必选依赖 -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>${servlet-api}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j}</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>${dom4j}</version>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>${jaxen}</version>
</dependency>
<dependency>
<groupId>com.mashape.unirest</groupId>
<artifactId>unirest-java</artifactId>
<version>${unirest-java}</version>
</dependency>
<dependency>
<groupId>org.beetl</groupId>
<artifactId>beetl-core</artifactId>
<version>${beetl-core}</version>
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
<version>${velocity}</version>
</dependency>
<!-- 公共本地依赖 -->
<dependency>
<groupId>local</groupId>
<artifactId>ipu-basic</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${jar-path}/ipu-basic-1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>local</groupId>
<artifactId>ipu-common</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${jar-path}/ipu-common-1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>local</groupId>
<artifactId>ipu-server-web</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${jar-path}/ipu-server-web-1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>local</groupId>
<artifactId>wade-data</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${jar-path}/wade-data.jar</systemPath>
</dependency>
<dependency>
<groupId>local</groupId>
<artifactId>wade-cache</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${jar-path}/wade-cache.jar</systemPath>
</dependency>
<dependency>
<groupId>local</groupId>
<artifactId>wade-database</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${jar-path}/wade-database.jar</systemPath>
</dependency>
<dependency>
<groupId>local</groupId>
<artifactId>wade-apache</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${jar-path}/wade-apache.jar</systemPath>
</dependency>
<dependency>
<groupId>local</groupId>
<artifactId>wade-common</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${jar-path}/wade-common.jar</systemPath>
</dependency>
<dependency>
<groupId>local</groupId>
<artifactId>wade-sqlite-jdbc</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${jar-path}/wade-sqlite-jdbc.jar</systemPath>
</dependency>
<dependency>
<groupId>local</groupId>
<artifactId>java_memcached-release</artifactId>
<version>2.5.3</version>
<scope>system</scope>
<systemPath>${jar-path}/java_memcached-release_2.5.3.jar</systemPath>
</dependency>
<!-- 公共可选依赖 -->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>${jsoup}</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>${commons-fileupload}</version>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>${commons-dbcp}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector-java}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>${commons-codec}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<!-- 默认插件,不引入也可使用 -->
<!-- 默认jre编译版本 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin}</version>
<configuration>
<source>${compiler-version}</source>
<target>${compiler-version}</target>
</configuration>
</plugin>
<!-- war包去除servlet-api的jar包 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin}</version>
<configuration>
<!-- servlet-api相关jar不打包,前面的scope=provided已解决 -->
<packagingExcludes> WEB-INF/lib/servlet-api*.jar </packagingExcludes>
<webResources>
<resource>
<directory>${jar-path}</directory>
<includes>
<include>*.jar</include>
</includes>
<targetPath>WEB-INF/lib</targetPath>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin}</version>
<configuration>
<!-- 跳过单元测试 -->
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven-clean-plugin}</version>
</plugin>
<!-- 复制资源 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
|