加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom.xml 8.99 KB
一键复制 编辑 原始数据 按行查看 历史
home 提交于 2019-11-20 11:35 . assembly package plugin
<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.sun</groupId>
<artifactId>eshop_project</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>商城项目</name>
<description>基于soa架构的商城项目</description>
<properties>
<servlet-version>3.0.1</servlet-version>
<jsp-version>2.2</jsp-version>
<jstl-version>1.2</jstl-version>
<spring-version>4.1.6.RELEASE</spring-version>
<aspectjweaver-version>1.8.6</aspectjweaver-version>
<mybatis-version>3.2.7</mybatis-version>
<mybatis-spring-version>1.2.3</mybatis-spring-version>
<log4j-version>1.2.17</log4j-version>
<mysql-connector-java-version>5.1.38</mysql-connector-java-version>
<jackson-version>2.4.1</jackson-version>
<slf4j-api-version>1.7.21</slf4j-api-version>
<slf4j-log4j12-version>1.7.21</slf4j-log4j12-version>
<commons-fileupload-version>1.3.1</commons-fileupload-version>
<dubbo-version>2.5.3</dubbo-version>
<zkclient-version>0.10</zkclient-version>
<tomcat-plugin-version>2.2</tomcat-plugin-version>
<commons-beanutils-version>1.8.0</commons-beanutils-version>
<jedis-version>2.8.1</jedis-version>
<pagehelper-version>4.1.6</pagehelper-version>
<commons-net-version>3.3</commons-net-version>
<solr-version>5.3.1</solr-version>
<httpclient-version>4.4.1</httpclient-version>
<!-- <javassist-version>3.20.0-GA</javassist-version> -->
<eshop-service-version>0.0.1-SNAPSHOT</eshop-service-version>
<eshop-pojo-version>0.0.1-SNAPSHOT</eshop-pojo-version>
<eshop-common-version>0.0.1-SNAPSHOT</eshop-common-version>
<eshop-redis-version>0.0.1-SNAPSHOT</eshop-redis-version>
</properties>
<dependencyManagement>
<dependencies>
<!-- 编辑和创建Java字节码的类库 dubbo自带的版本陈旧 这里重新导入依赖 最新版即可 -->
<!-- <dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>${javassist-version}</version>最新版即可
</dependency> -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${servlet-version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>${jsp-version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>${jstl-version}</version>
</dependency>
<!-- spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring-version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectjweaver-version}</version>
</dependency>
<!-- mybatis -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>${mybatis-version}</version>
</dependency>
<!-- mybatis和spring整合 -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>${mybatis-spring-version}</version>
</dependency>
<!-- log4j 日志 -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j-version}</version>
</dependency>
<!-- 整合一下slf4j -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j-api-version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j-log4j12-version}</version>
</dependency>
<!-- mysql 驱动类 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector-java-version}</version>
</dependency>
<!-- jackson -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson-version}</version>
</dependency>
<!-- apache 图片上传 -->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>${commons-fileupload-version}</version>
</dependency>
<!-- dubbo -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>${dubbo-version}</version>
<exclusions>
<!-- dubbo自带的spring版本已经过时,这里排除spring包然后重新导入新版本spring -->
<exclusion>
<artifactId>spring</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<!-- Dubbo自带的很多包都比较旧了,javassist是编辑和创建Java字节码的类库 在JDK1.8上运行会报错-->
<!-- <exclusion>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
</exclusion> -->
</exclusions>
</dependency>
<!-- 访问zookeeper的客户端jar -->
<dependency>
<groupId>com.101tec</groupId>
<artifactId>zkclient</artifactId>
<version>${zkclient-version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${commons-beanutils-version}</version>
</dependency>
<!-- jedis -->
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>${jedis-version}</version>
</dependency>
<!-- pagehelper mybatis分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>${pagehelper-version}</version>
</dependency>
<!-- ftpclient -->
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>${commons-net-version}</version>
</dependency>
<!-- SolrJ -->
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>${solr-version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient-version}</version>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>eshop_pojo</artifactId>
<version>${eshop-pojo-version}</version>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>eshop_common</artifactId>
<version>${eshop-common-version}</version>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>eshop_service</artifactId>
<version>${eshop-service-version}</version>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>eshop_redis</artifactId>
<version>${eshop-redis-version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<resources>
<!-- 打包时将xml与properties文件一同打包 -->
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>${tomcat-plugin-version}</version>
<configuration>
<!-- 控制tomcat端口号 -->
<port>80</port>
<!-- 项目发布到tomcat后的名称 -->
<!-- / 相当于把项目发布名称为ROOT -->
<!-- /abc -->
<path>/</path>
</configuration>
</plugin>
<!-- java编译插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<modules>
<module>eshop_pojo</module>
<module>eshop_common</module>
<module>eshop_service</module>
<module>eshop_service_impl</module>
<module>eshop_webmanage</module>
<module>eshop_portal</module>
<module>eshop_item</module>
<module>eshop_search</module>
<module>eshop_redis</module>
<module>eshop_passport</module>
<module>eshop_cart</module>
<module>eshop_order</module>
</modules>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化