123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- <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>
- <parent>
- <groupId>com.xchat</groupId>
- <artifactId>xchat</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </parent>
- <artifactId>xchat-admin-web</artifactId>
- <packaging>war</packaging>
- <dependencies>
- <dependency>
- <groupId>com.xchat</groupId>
- <artifactId>xchat-admin-service</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.xchat</groupId>
- <artifactId>xchat-oauth2-service</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </dependency>
- <!-- https://mvnrepository.com/artifact/com.alibaba/druid -->
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid</artifactId>
- <version>1.0.29</version>
- </dependency>
- <!-- https://mvnrepository.com/artifact/org.jsoup/jsoup -->
- <dependency>
- <groupId>org.jsoup</groupId>
- <artifactId>jsoup</artifactId>
- <version>1.10.2</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload -->
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>1.3</version>
- </dependency>
- <!-- https://mvnrepository.com/artifact/com.googlecode.mp4parser/isoparser -->
- <dependency>
- <groupId>com.googlecode.mp4parser</groupId>
- <artifactId>isoparser</artifactId>
- <version>1.1.18</version>
- </dependency>
- <!-- https://mvnrepository.com/artifact/joda-time/joda-time -->
- <dependency>
- <groupId>joda-time</groupId>
- <artifactId>joda-time</artifactId>
- <version>2.9.9</version>
- </dependency>
- <dependency>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- <version>1.6.1</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>javax.servlet-api</artifactId>
- <version>3.1.0</version>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>2.2</version>
- </dependency>
- <!-- excel导入导出依赖包-->
- <dependency>
- <groupId>cn.afterturn</groupId>
- <artifactId>easypoi-base</artifactId>
- <version>3.2.0</version>
- </dependency>
- <dependency>
- <groupId>cn.afterturn</groupId>
- <artifactId>easypoi-web</artifactId>
- <version>3.2.0</version>
- </dependency>
- <dependency>
- <groupId>cn.afterturn</groupId>
- <artifactId>easypoi-annotation</artifactId>
- <version>3.2.0</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.11</version>
- <scope>test</scope>
- </dependency>
- <!-- excel导入导出依赖包-->
- <dependency>
- <groupId>net.sourceforge.jregex</groupId>
- <artifactId>jregex</artifactId>
- <version>1.2_01</version>
- </dependency>
- <dependency>
- <groupId>net.sf.json-lib</groupId>
- <artifactId>json-lib</artifactId>
- <version>2.4</version>
- <classifier>jdk15</classifier>
- </dependency>
- </dependencies>
- <build>
- <finalName>ROOT</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <version>3.0.0</version>
- <configuration>
- <warName>ROOT</warName>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.6.1</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- <encoding>UTF8</encoding>
- </configuration>
- </plugin>
- <plugin>
- <!-- YUI Compressor Maven压缩插件 -->
- <groupId>net.alchim31.maven</groupId>
- <artifactId>yuicompressor-maven-plugin</artifactId>
- <version>1.5.1</version>
- <configuration>
- <!-- 读取js,css文件采用UTF-8编码 -->
- <encoding>UTF-8</encoding>
- <!-- 不显示js可能的错误 -->
- <jswarn>false</jswarn>
- <!-- 若存在已压缩的文件,会先对比源文件是否有改动 有改动便压缩,无改动就不压缩 -->
- <force>false</force>
- <!-- 在指定的列号后插入新行 -->
- <linebreakpos>-1</linebreakpos>
- <!-- 压缩之前先执行聚合文件操作 -->
- <preProcessAggregates>true</preProcessAggregates>
- <!-- 压缩后保存文件后缀 <suffix>.min</suffix> -->
- <nosuffix>true</nosuffix>
- <!-- 源目录,即需压缩的根目录 -->
- <sourceDirectory>${basedir}/src/main/webapp/static</sourceDirectory>
- <!-- 压缩js和css文件 -->
- <includes>
- <include>**/*.js</include>
- <include>**/*.css</include>
- </includes>
- <!-- 以下目录和文件不会被压缩 -->
- <excludes>
- <exclude>**/*.min.js</exclude>
- <exclude>**/*.min.css</exclude>
- </excludes>
- <!-- 压缩后输出文件目录 -->
- <outputDirectory>${basedir}/static</outputDirectory>
- </configuration>
- </plugin>
- <!--<plugin> -->
- <!--<groupId>org.apache.maven.plugins</groupId> -->
- <!--<artifactId>maven-war-plugin</artifactId> -->
- <!--<configuration> -->
- <!--<warName>ROOT</warName> -->
- <!--</configuration> -->
- <!--</plugin> -->
- <!-- jetty, set context path and spring profile -->
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jetty-maven-plugin</artifactId>
- <configuration>
- <!--热部署时间秒 -->
- <reload>automatic</reload>
- <scanIntervalSeconds>3</scanIntervalSeconds>
- <systemProperties>
- <systemProperty>
- <name>spring.profiles.active</name>
- <value>development</value>
- </systemProperty>
- </systemProperties>
- <useTestClasspath>true</useTestClasspath>
- <connectors>
- <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
- <port>8081</port>
- <maxIdleTime>60000</maxIdleTime>
- </connector>
- </connectors>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>test</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <warName>ROOT</warName>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>replace-test-settings</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <target>
- <echo message="--------------------------------------"/>
- <echo message="开始替换测试环境文件"/>
- <echo message="--------------------------------------"/>
- <tstamp>
- <format property="releaseVersion" pattern="yyyyMMddHHmm"/>
- </tstamp>
- <!-- 替换logback.xml文件 -->
- <delete file="${project.build.outputDirectory}/logback.xml"/>
- <copy file="src/main/resources/test/logback.xml"
- tofile="${project.build.outputDirectory}/logback.xml"/>
- <delete file="${project.build.outputDirectory}/application-web.properties"/>
- <copy file="src/main/resources/test/application-web.properties"
- tofile="${project.build.outputDirectory}/application-web.properties"/>
- <delete file="${project.build.outputDirectory}/config.properties"/>
- <copy file="src/main/resources/test/config.properties"
- tofile="${project.build.outputDirectory}/config.properties"/>
- <echo message="--------------------------------------"/>
- <echo message="完成替换测试环境文件"/>
- <echo message="--------------------------------------"/>
- </target>
- </configuration>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>com.jcraft</groupId>
- <artifactId>jsch</artifactId>
- <version>0.1.50</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant-jsch</artifactId>
- <version>1.8.2</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
- </profile>
- <!-- 生产用的profile -->
- <profile>
- <id>prod</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <warName>ROOT</warName>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>replace-prod-settings</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <target>
- <echo message="--------------------------------------"/>
- <echo message="开始替换生产环境文件"/>
- <echo message="--------------------------------------"/>
- <tstamp>
- <format property="releaseVersion" pattern="yyyyMMddHHmm"/>
- </tstamp>
- <!-- 替换logback.xml文件 -->
- <delete file="${project.build.outputDirectory}/logback.xml"/>
- <copy file="src/main/resources/prod/logback.xml"
- tofile="${project.build.outputDirectory}/logback.xml"/>
- <delete file="${project.build.outputDirectory}/application-web.properties"/>
- <copy file="src/main/resources/prod/application-web.properties"
- tofile="${project.build.outputDirectory}/application-web.properties"/>
- <echo message="--------------------------------------"/>
- <echo message="完成替换生产环境文件"/>
- <echo message="--------------------------------------"/>
- </target>
- </configuration>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>com.jcraft</groupId>
- <artifactId>jsch</artifactId>
- <version>0.1.50</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant-jsch</artifactId>
- <version>1.8.2</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|