|
@@ -0,0 +1,450 @@
|
|
|
+<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.xtframe</groupId>
|
|
|
+ <version>0.1.3-SNAPSHOT</version>
|
|
|
+ <packaging>pom</packaging>
|
|
|
+ <name>新通开发框架</name>
|
|
|
+ <artifactId>xtproject-oa</artifactId>
|
|
|
+ <description>基本功能运行稳定。港口OA系统专用版本</description>
|
|
|
+ <modules>
|
|
|
+ <module>modules/xtframe-core</module>
|
|
|
+ <module>modules/xtframe-util</module>
|
|
|
+ <module>modules/xtframe-security</module>
|
|
|
+ <module>modules/xtframe-workflow</module>
|
|
|
+ <module>modules/xtframe-io</module>
|
|
|
+ <module>modules/xtframe-web</module>
|
|
|
+ </modules>
|
|
|
+ <properties>
|
|
|
+ <!-- java 版本 -->
|
|
|
+ <jdk.version>1.7</jdk.version>
|
|
|
+ <!-- spring 版本 -->
|
|
|
+ <spring.version>4.1.2.RELEASE</spring.version>
|
|
|
+ <!-- hiberante 版本 -->
|
|
|
+ <hibernate.version>4.3.7.Final</hibernate.version>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ <aspectj.version>1.8.2</aspectj.version>
|
|
|
+ <shiro.version>1.2.3</shiro.version>
|
|
|
+ <activiti.version>5.16</activiti.version>
|
|
|
+ <junit.version>4.11</junit.version>
|
|
|
+ <commons-io.version>2.4</commons-io.version>
|
|
|
+ <slf4j.version>1.7.12</slf4j.version>
|
|
|
+ </properties>
|
|
|
+ <!-- 依赖管理 -->
|
|
|
+ <dependencyManagement>
|
|
|
+ <dependencies>
|
|
|
+ <!-- modules -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.xtframe</groupId>
|
|
|
+ <artifactId>xtutil-oa</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.xtframe</groupId>
|
|
|
+ <artifactId>xtCore-oa</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.xtframe</groupId>
|
|
|
+ <artifactId>xtio-oa</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.xtframe</groupId>
|
|
|
+ <artifactId>xtSecurity-oa</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.xtframe</groupId>
|
|
|
+ <artifactId>xtWorkflow-oa</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.xtframe</groupId>
|
|
|
+ <artifactId>xtweb-oa</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- spring -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
+ <artifactId>spring-framework-bom</artifactId>
|
|
|
+ <version>${spring.version}</version>
|
|
|
+ <type>pom</type>
|
|
|
+ <scope>import</scope>
|
|
|
+ </dependency>
|
|
|
+ <!-- hibernate -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.hibernate</groupId>
|
|
|
+ <artifactId>hibernate-core</artifactId>
|
|
|
+ <version>${hibernate.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.hibernate</groupId>
|
|
|
+ <artifactId>hibernate-entitymanager</artifactId>
|
|
|
+ <version>${hibernate.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- optional datasource pool -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-dbcp</groupId>
|
|
|
+ <artifactId>commons-dbcp</artifactId>
|
|
|
+ <version>1.4</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-pool</groupId>
|
|
|
+ <artifactId>commons-pool</artifactId>
|
|
|
+ <version>1.6</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.aspectj</groupId>
|
|
|
+ <artifactId>aspectjrt</artifactId>
|
|
|
+ <version>${aspectj.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.aspectj</groupId>
|
|
|
+ <artifactId>aspectjweaver</artifactId>
|
|
|
+ <version>${aspectj.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- apache -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-io</groupId>
|
|
|
+ <artifactId>commons-io</artifactId>
|
|
|
+ <version>2.1</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-codec</groupId>
|
|
|
+ <artifactId>commons-codec</artifactId>
|
|
|
+ <version>1.6</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- provided -->
|
|
|
+ <!-- j2ee web spec -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>javax.servlet.jsp</groupId>
|
|
|
+ <artifactId>jsp-api</artifactId>
|
|
|
+ <version>2.2</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>javax.servlet</groupId>
|
|
|
+ <artifactId>servlet-api</artifactId>
|
|
|
+ <version>2.5</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>javax.servlet</groupId>
|
|
|
+ <artifactId>jstl</artifactId>
|
|
|
+ <version>1.2</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>taglibs</groupId>
|
|
|
+ <artifactId>standard</artifactId>
|
|
|
+ <version>1.1.2</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- WEB end -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mockito</groupId>
|
|
|
+ <artifactId>mockito-core</artifactId>
|
|
|
+ <version>1.9.0</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- log -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>log4j</groupId>
|
|
|
+ <artifactId>log4j</artifactId>
|
|
|
+ <version>1.2.17</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
+ <artifactId>slf4j-api</artifactId>
|
|
|
+ <version>${slf4j.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
+ <artifactId>slf4j-log4j12</artifactId>
|
|
|
+ <version>${slf4j.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- SECURITY begin -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.shiro</groupId>
|
|
|
+ <artifactId>shiro-core</artifactId>
|
|
|
+ <version>${shiro.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.shiro</groupId>
|
|
|
+ <artifactId>shiro-spring</artifactId>
|
|
|
+ <version>${shiro.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.shiro</groupId>
|
|
|
+ <artifactId>shiro-web</artifactId>
|
|
|
+ <version>${shiro.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.shiro</groupId>
|
|
|
+ <artifactId>shiro-ehcache</artifactId>
|
|
|
+ <version>${shiro.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.shiro</groupId>
|
|
|
+ <artifactId>shiro-cas</artifactId>
|
|
|
+ <version>${shiro.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- SECURITY end -->
|
|
|
+ <!-- jackson -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
+ <artifactId>jackson-annotations</artifactId>
|
|
|
+ <version>2.2.0</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
+ <artifactId>jackson-core</artifactId>
|
|
|
+ <version>2.2.0</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
+ <artifactId>jackson-databind</artifactId>
|
|
|
+ <version>2.2.0</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.data</groupId>
|
|
|
+ <artifactId>spring-data-jpa</artifactId>
|
|
|
+ <version>1.7.1.RELEASE</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- activiti -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.activiti</groupId>
|
|
|
+ <artifactId>activiti-engine</artifactId>
|
|
|
+ <version>${activiti.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.activiti</groupId>
|
|
|
+ <artifactId>activiti-spring</artifactId>
|
|
|
+ <version>${activiti.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- test -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>junit</groupId>
|
|
|
+ <artifactId>junit</artifactId>
|
|
|
+ <version>${junit.version}</version>
|
|
|
+ <scope>test</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
+ <artifactId>spring-test</artifactId>
|
|
|
+ <version>${spring.version}</version>
|
|
|
+ <scope>test</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-io</groupId>
|
|
|
+ <artifactId>commons-io</artifactId>
|
|
|
+ <version>${commons-io.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- json -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>net.sf.json-lib</groupId>
|
|
|
+ <artifactId>json-lib</artifactId>
|
|
|
+ <version>2.4</version>
|
|
|
+ <classifier>jdk15</classifier>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ </dependencyManagement>
|
|
|
+ <build>
|
|
|
+ <!-- 插件配置 -->
|
|
|
+ <pluginManagement>
|
|
|
+ <plugins>
|
|
|
+ <!-- compiler插件, 设定JDK版本 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.0</version>
|
|
|
+ <configuration>
|
|
|
+ <source>${jdk.version}</source>
|
|
|
+ <target>${jdk.version}</target>
|
|
|
+ <showWarnings>true</showWarnings>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <!-- test插件, 增大内存且仅测试名称为*Test的类 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
+ <version>2.12.4</version>
|
|
|
+ <configuration>
|
|
|
+ <includes>
|
|
|
+ <include>**/*Test.java</include>
|
|
|
+ </includes>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-failsafe-plugin</artifactId>
|
|
|
+ <version>2.12</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>integration-test</id>
|
|
|
+ <goals>
|
|
|
+ <goal>integration-test</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- cobertura插件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>cobertura-maven-plugin</artifactId>
|
|
|
+ <version>2.5.1</version>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- war插件, 设定war名称不带版本号 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-war-plugin</artifactId>
|
|
|
+ <version>2.2</version>
|
|
|
+ <configuration>
|
|
|
+ <warName>${project.artifactId}</warName>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- resource插件, 设定编码 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
+ <version>2.5</version>
|
|
|
+ <configuration>
|
|
|
+ <encoding>${project.build.sourceEncoding}</encoding>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- jar相关插件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
+ <version>2.4</version>
|
|
|
+ <configuration>
|
|
|
+ <archive>
|
|
|
+ <manifest>
|
|
|
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
|
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
|
|
+ </manifest>
|
|
|
+ </archive>
|
|
|
+ <outputDirectory>${war.lib}</outputDirectory>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- clean插件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-clean-plugin</artifactId>
|
|
|
+ <version>2.4.1</version>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- install插件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-install-plugin</artifactId>
|
|
|
+ <version>2.3.1</version>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- eclipse插件,设定下载Source并屏蔽.svn文件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-eclipse-plugin</artifactId>
|
|
|
+ <version>2.9</version>
|
|
|
+ <configuration>
|
|
|
+ <sourceExcludes>
|
|
|
+ <sourceExclude>**/.svn/</sourceExclude>
|
|
|
+ </sourceExcludes>
|
|
|
+ <downloadSources>true</downloadSources>
|
|
|
+ <downloadJavadocs>false</downloadJavadocs>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- jetty插件,设定重载模式 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.mortbay.jetty</groupId>
|
|
|
+ <artifactId>jetty-maven-plugin</artifactId>
|
|
|
+ <version>${jetty.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <reload>manual</reload>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- dependency插件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-dependency-plugin</artifactId>
|
|
|
+ <version>2.6</version>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>versions-maven-plugin</artifactId>
|
|
|
+ <version>1.2</version>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- ant插件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-antrun-plugin</artifactId>
|
|
|
+ <version>1.7</version>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- assembly插件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
+ <version>2.4</version>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- source attach plugin -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-source-plugin</artifactId>
|
|
|
+ <version>2.1.2</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>attach-sources</id>
|
|
|
+ <goals>
|
|
|
+ <goal>jar</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.tomcat.maven</groupId>
|
|
|
+ <artifactId>tomcat6-maven-plugin</artifactId>
|
|
|
+ <version>2.0-beta-1</version>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.tomcat.maven</groupId>
|
|
|
+ <artifactId>tomcat7-maven-plugin</artifactId>
|
|
|
+ <version>2.0-beta-1</version>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-javadoc-plugin</artifactId>
|
|
|
+ <version>2.8.1</version>
|
|
|
+ <configuration>
|
|
|
+ <aggregate>true</aggregate>
|
|
|
+ <charset>UTF-8</charset>
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
+ <docencoding>UTF-8</docencoding>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>attach-javadocs</id>
|
|
|
+ <goals>
|
|
|
+ <goal>jar</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </pluginManagement>
|
|
|
+ </build>
|
|
|
+ <distributionManagement>
|
|
|
+ <repository>
|
|
|
+ <id>xt-repository-snapshots</id>
|
|
|
+ <name>xt Repository Snapshots</name>
|
|
|
+ <url>http://192.168.57.74:8081/nexus/content/repositories/xt-repository-snapshots/</url>
|
|
|
+ </repository>
|
|
|
+ </distributionManagement>
|
|
|
+</project>
|