123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589 |
- <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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>platform-b2b</artifactId>
- <packaging>war</packaging>
- <name>platform-b2b Maven Webapp</name>
- <url>http://maven.apache.org</url>
- <parent>
- <groupId>com.uas.platform</groupId>
- <artifactId>platform</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </parent>
- <profiles>
- <profile>
- <!-- 默认 -->
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <!-- 开发环境 -->
- <id>dev</id>
- <properties>
- <profile>dev</profile>
- <!-- static plugin -->
- <static-path>static</static-path>
- </properties>
- </profile>
- <profile>
- <!-- 生产环境 -->
- <id>ptest</id>
- <properties>
- <profile>ptest</profile>
- <!-- static plugin -->
- <static-path>static</static-path>
- </properties>
- </profile>
- <profile>
- <!-- 腾讯云环境 -->
- <id>txcloud</id>
- <properties>
- <profile>txcloud</profile>
- <!-- static plugin -->
- <static-path>static</static-path>
- </properties>
- </profile>
- <profile>
- <!-- 预部署环境 -->
- <id>pre</id>
- <properties>
- <profile>pre</profile>
- <!-- static plugin -->
- <static-path>static</static-path>
- </properties>
- </profile>
- </profiles>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- <skipTests>true</skipTests>
- </properties>
- <dependencies>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>javax.servlet-api</artifactId>
- <version>3.0.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.uas.platform</groupId>
- <artifactId>platform-core</artifactId>
- </dependency>
- <!-- spring -->
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-context</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-context-support</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-webmvc</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-jdbc</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-tx</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-aop</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-aspects</artifactId>
- </dependency>
- <!-- jpa -->
- <dependency>
- <groupId>org.springframework.data</groupId>
- <artifactId>spring-data-jpa</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-test</artifactId>
- <version>4.1.6.RELEASE</version>
- <scope>test</scope>
- </dependency>
- <!-- -->
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>1.3.1</version>
- </dependency>
- <!-- sendMsg -->
- <dependency>
- <groupId>org.apache.axis</groupId>
- <artifactId>axis</artifactId>
- <version>1.6.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.axis.jaxrpc</groupId>
- <artifactId>axis-jaxrpc</artifactId>
- <version>1.4</version>
- </dependency>
- <dependency>
- <groupId>commons-discovery</groupId>
- <artifactId>commons-discovery</artifactId>
- <version>0.4</version>
- </dependency>
- <dependency>
- <groupId>com.ibm</groupId>
- <artifactId>wsdl4j</artifactId>
- <version>1.4</version>
- </dependency>
- <!-- hibernate -->
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-entitymanager</artifactId>
- <exclusions>
- <exclusion>
- <groupId>cglib</groupId>
- <artifactId>cglib</artifactId>
- </exclusion>
- <exclusion>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- </dependency>
- <dependency>
- <groupId>org.aspectj</groupId>
- <artifactId>aspectjrt</artifactId>
- </dependency>
- <dependency>
- <groupId>org.aspectj</groupId>
- <artifactId>aspectjweaver</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-lang3</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.validation</groupId>
- <artifactId>validation-api</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.transaction</groupId>
- <artifactId>jta</artifactId>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-ehcache</artifactId>
- </dependency>
- <!-- jdbc -->
- <!--oracle-->
- <dependency>
- <groupId>com.oracle</groupId>
- <artifactId>ojdbc6</artifactId>
- </dependency>
- <!-- mysql -->
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.21</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-orm</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-pool</groupId>
- <artifactId>commons-pool</artifactId>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid</artifactId>
- <version>1.1.6</version>
- </dependency>
- <!-- spring mobile -->
- <dependency>
- <groupId>org.springframework.mobile</groupId>
- <artifactId>spring-mobile-device</artifactId>
- </dependency>
- <!--json-lib -->
- <dependency>
- <groupId>net.sf.json-lib</groupId>
- <artifactId>json-lib</artifactId>
- <classifier>jdk15</classifier>
- </dependency>
- <dependency>
- <groupId>org.codehaus.jackson</groupId>
- <artifactId>jackson-core-asl</artifactId>
- </dependency>
- <dependency>
- <groupId>org.codehaus.jackson</groupId>
- <artifactId>jackson-mapper-asl</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-core</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-databind</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-annotations</artifactId>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- </dependency>
- <!-- velocity -->
- <dependency>
- <groupId>org.apache.velocity</groupId>
- <artifactId>velocity</artifactId>
- </dependency>
- <!-- mail -->
- <dependency>
- <groupId>javax.mail</groupId>
- <artifactId>mail</artifactId>
- </dependency>
- <!-- xinge -->
- <dependency>
- <groupId>tencent</groupId>
- <artifactId>xinge</artifactId>
- <version>1.1.4</version>
- </dependency>
- <!-- jxls -->
- <dependency>
- <groupId>net.sf.jxls</groupId>
- <artifactId>jxls-core</artifactId>
- <version>1.0.4</version>
- </dependency>
- <dependency>
- <groupId>net.sf.jxls</groupId>
- <artifactId>jxls-reader</artifactId>
- <version>1.0.4</version>
- </dependency>
- <!-- redis -->
- <dependency>
- <groupId>redis.clients</groupId>
- <artifactId>jedis</artifactId>
- <version>2.7.3</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.data</groupId>
- <artifactId>spring-data-redis</artifactId>
- <version>1.6.0.RELEASE</version>
- </dependency>
- <!-- 邮件 -->
- <dependency>
- <groupId>com.uas.message</groupId>
- <artifactId>message-mail-api</artifactId>
- </dependency>
- <!-- 消息-->
- <dependency>
- <groupId>com.uas.message</groupId>
- <artifactId>message-sms-api</artifactId>
- </dependency>
- <dependency>
- <groupId>com.uas.account</groupId>
- <artifactId>account-common</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.uas.sso</groupId>
- <artifactId>sso-common</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <exclusions>
- <exclusion>
- <artifactId>tomcat-embed-core</artifactId>
- <groupId>org.apache.tomcat.embed</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.uas.ps</groupId>
- <artifactId>ps-core</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </dependency>
- <!--lombok-->
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <scope>provided</scope>
- <version>1.16.20</version>
- </dependency>
- <!-- hessian -->
- <dependency>
- <groupId>com.caucho</groupId>
- <artifactId>hessian</artifactId>
- </dependency>
- <!-- search on dubbo -->
- <dependency>
- <groupId>com.uas.search</groupId>
- <artifactId>search-api-b2b</artifactId>
- <version>0.1.9-SNAPSHOT</version>
- </dependency>
- <!-- dfs on dubbo -->
- <dependency>
- <groupId>com.uas.dfs</groupId>
- <artifactId>dfs-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <version>1.16.20</version>
- </dependency>
- <!-- spring-rabbit -->
- <dependency>
- <groupId>org.springframework.amqp</groupId>
- <artifactId>spring-rabbit</artifactId>
- <version>1.7.7.RELEASE</version>
- </dependency>
- <dependency>
- <groupId>com.rabbitmq</groupId>
- <artifactId>amqp-client</artifactId>
- <version>4.2.0</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-core</artifactId>
- <version>4.1.6.RELEASE</version>
- </dependency>
- </dependencies>
- <build>
- <finalName>platform-b2b</finalName>
- <!-- 受profile影响的目录 -->
- <resources>
- <resource>
- <directory>${basedir}/src/main/resources</directory>
- <filtering>true</filtering>
- <excludes>
- <exclude>**/*.xls</exclude>
- </excludes>
- </resource>
- <!-- xls文件不能filter处理,需区分出来 -->
- <resource>
- <directory>${basedir}/src/main/resources</directory>
- <filtering>false</filtering>
- <includes>
- <include>**/*.xls</include>
- </includes>
- </resource>
- </resources>
- <!-- 在maven生命周期validate阶段生成timestamp -->
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>buildnumber-maven-plugin</artifactId>
- <version>1.3</version>
- <executions>
- <execution>
- <phase>validate</phase>
- <goals>
- <goal>create-timestamp</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
- <items>
- <item>timestamp</item>
- </items>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>${maven.compiler.source}</source>
- <target>${maven.compiler.target}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>com.samaxes.maven</groupId>
- <artifactId>minify-maven-plugin</artifactId>
- <version>1.7.4</version>
- <!-- 静态文件压缩 -->
- <executions>
- <execution>
- <id>default-minify</id>
- <phase>prepare-package</phase>
- <configuration>
- <charset>UTF-8</charset>
- <skipMerge>true</skipMerge>
- <closureLanguage>ECMASCRIPT5</closureLanguage>
- <closureAngularPass>true</closureAngularPass>
- <nosuffix>true</nosuffix>
- <webappTargetDir>${project.build.directory}/minify</webappTargetDir>
- <cssSourceDir>resources</cssSourceDir>
- <cssEngine>YUI</cssEngine>
- <jsSourceDir>resources</jsSourceDir>
- <jsEngine>CLOSURE</jsEngine>
- <cssSourceIncludes>
- <cssSourceInclude>css/**/*.css</cssSourceInclude>
- <cssSourceInclude>data/**/*.json</cssSourceInclude>
- </cssSourceIncludes>
- <cssSourceExcludes>
- <cssSourceExclude>css/**/*.min.css</cssSourceExclude>
- </cssSourceExcludes>
- <jsSourceIncludes>
- <jsSourceInclude>js/**/*.js</jsSourceInclude>
- </jsSourceIncludes>
- <jsSourceExcludes>
- <jsSourceExclude>js/**/*.min.js</jsSourceExclude>
- </jsSourceExcludes>
- </configuration>
- <goals>
- <goal>minify</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-resources</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/minify</outputDirectory>
- <overwrite>false</overwrite>
- <resources>
- <resource>
- <directory>${basedir}/src/main/webapp</directory>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>com.uas.plugins</groupId>
- <artifactId>static-maven-plugin</artifactId>
- <version>0.0.2-SNAPSHOT</version>
- <!-- 静态资源分离 -->
- <executions>
- <execution>
- <id>default-static</id>
- <phase>prepare-package</phase>
- <configuration>
- <pathMatcher>static</pathMatcher>
- <staticUrl>${static-path}</staticUrl>
- <webappDir>${project.build.directory}/minify</webappDir>
- <sourceDir>/</sourceDir>
- <targetDir>${project.build.directory}/statics</targetDir>
- <staticDir>/</staticDir>
- <sourceIncludes>
- <sourceInclude>resources/js/**/*.js</sourceInclude>
- <sourceInclude>resources/data/**/*.json</sourceInclude>
- <sourceInclude>resources/tpl/**/*.html</sourceInclude>
- <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
- </sourceIncludes>
- <!--http://static.ubtob.com/css/index.css?_v=1450321871828-->
- <versionSuffix>
- <suffix>?_v=${timestamp}</suffix>
- <exclude>*/require.js,*.min.js,*.min.css</exclude>
- </versionSuffix>
- </configuration>
- <goals>
- <goal>static</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.4</version>
- <configuration>
- <webResources>
- <resource>
- <directory>${project.build.directory}/statics</directory>
- </resource>
- <resource>
- <directory>${project.build.directory}/minify</directory>
- </resource>
- </webResources>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.tomcat.maven</groupId>
- <artifactId>tomcat7-maven-plugin</artifactId>
- <version>2.2</version>
- <configuration>
- <port>8090</port>
- <path>/platform-b2b</path>
- <uriEncoding>utf-8</uriEncoding>
- </configuration>
- </plugin>
- </plugins>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.eclipse.m2e</groupId>
- <artifactId>lifecycle-mapping</artifactId>
- <version>1.0.0</version>
- <configuration>
- <lifecycleMappingMetadata>
- <pluginExecutions>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>
- org.codehaus.mojo
- </groupId>
- <artifactId>
- buildnumber-maven-plugin
- </artifactId>
- <versionRange>
- [1.3,)
- </versionRange>
- <goals>
- <goal>
- create-timestamp
- </goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore></ignore>
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMappingMetadata>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
- </project>
|