<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>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>10</maven.compiler.source>
<maven.compiler.target>10</maven.compiler.target>
</properties>
<parent>
<groupId>com.ai.ipu</groupId>
<artifactId>ipu-server-libs</artifactId>
<version>3.0</version>
<!-- <relativePath>../ipu-server-libs/pom.xml</relativePath>-->
</parent>
<artifactId>show-server</artifactId>
<packaging>war</packaging>
<name>展示平台</name>
<description>3.0以后的展示平台工程全部支持Maven和Ant两种构建方式</description>
<repositories>
<repository>
<id>ipu</id>
<name>ipu repository</name>
<url>http://114.215.100.48:9090/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
<dependencies>
<!-- 公共必选依赖 -->
<!-- Central jar -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6</version>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<exclusions>
<exclusion>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
</exclusion>
<exclusion>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.12.0</version>
</dependency>
<dependency>
<groupId>com.mashape.unirest</groupId>
<artifactId>unirest-java</artifactId>
<exclusions>
<exclusion>
<artifactId>httpclient</artifactId>
<groupId>org.apache.httpcomponents</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<artifactId>httpclient</artifactId>
<groupId>org.apache.httpcomponents</groupId>
<version>4.5.5</version>
</dependency>
<dependency>
<groupId>org.beetl</groupId>
<artifactId>beetl-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
<exclusions>
<exclusion>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.2</version>
</dependency>
<!-- 3rd party jar -->
<dependency>
<groupId>com</groupId>
<artifactId>java_memcache-release</artifactId>
</dependency>
<!-- ipu jar -->
<dependency>
<groupId>com.ai.ipu</groupId>
<artifactId>ipu-basic</artifactId>
<version>3.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.ai.ipu</groupId>
<artifactId>ipu-common</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>4.1.0</version>
</dependency>
<dependency>
<groupId>com.ai.ipu</groupId>
<artifactId>ipu-server-web</artifactId>
<version>3.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.ai.ipu</groupId>
<artifactId>ipu-cache</artifactId>
<version>3.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.ai.wade</groupId>
<artifactId>wade-data</artifactId>
</dependency>
<dependency>
<groupId>com.ai.wade</groupId>
<artifactId>wade-cache</artifactId>
</dependency>
<dependency>
<groupId>com.ai.wade</groupId>
<artifactId>wade-database</artifactId>
</dependency>
<dependency>
<groupId>com.ai.wade</groupId>
<artifactId>wade-apache</artifactId>
</dependency>
<dependency>
<groupId>com.ai.wade</groupId>
<artifactId>wade-common</artifactId>
</dependency>
<dependency>
<groupId>com.ai.wade</groupId>
<artifactId>wade-sqlite-jdbc</artifactId>
</dependency>
<dependency>
<groupId>com.ai.ipu</groupId>
<artifactId>ipu-file-system</artifactId>
</dependency>
<!-- 公共可选依赖 -->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.9.2</version>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.42</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.11</version>
</dependency>
<!-- 额外依赖 -->
</dependencies>
<!-- 对应开发、测试、生产三种环境 -->
<profiles>
<!-- 开发环境 -->
<profile>
<id>dev</id>
<properties>
<env>dev</env>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<!-- 测试环境 -->
<profile>
<id>test</id>
<properties>
<env>test</env>
</properties>
</profile>
<!-- 生产环境 -->
<profile>
<id>pro</id>
<properties>
<env>pro</env>
</properties>
</profile>
</profiles>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<!-- 资源根目录排除各环境的配置,防止在生成目录中多余其它目录 -->
<excludes>
<exclude>dev/**</exclude>
<exclude>test/**</exclude>
<exclude>pro/**</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources/${env}</directory>
<!-- 根据输入参数动态修改相关内容 -->
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<!-- clean中间文件 -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
</plugin>
<!-- 复制资源 -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<!-- 编译 -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<!-- 生成文件版本号和文件加密 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!-- 生成文件版本号和文件加密 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin}</version>
<executions>
<execution>
<id>res-encrypt</id>
<phase>test</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<classpathScope>compile</classpathScope>
<includeProjectDependencies>true</includeProjectDependencies>
<mainClass>com.ai.ipu.server.tool.FileEncryptToolMaven</mainClass>
<arguments>
<argument>src/main/webapp/</argument>
<argument>false</argument>
<argument></argument>
</arguments>
</configuration>
</execution>
<execution>
<id>res-version</id>
<phase>prepare-package</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<classpathScope>compile</classpathScope>
<includeProjectDependencies>true</includeProjectDependencies>
<mainClass>com.ai.ipu.show.util.VersionToolMaven</mainClass>
<arguments>
<argument>src/main/webapp/</argument>
<argument>false</argument>
<argument>upload|setup|.gitignore|.DS_Store|res.version.properties|res.version.properties.encrypt</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<finalName>show</finalName>
</build>
</project>
|