Maven之自定义pom类型的基础项目

摘要:在当前的软件开发场景中,大都是通过maven管理项目,而如果使用maven的话,其实也会有很多问题,比如项目中依赖的版本管理就
是一个很头疼的事,如果一个项目中有很多人同时开发那么这就很可能造成大家添加的依赖的版本不一致的情况,那样的话会给项目开发
带来很多不必要的麻烦,所以为了让所有的依赖的版本能一致,就需要我们先自定义一个统一依赖版本的基础项目,其他的项目在引用依赖

的时候直接继承该项目即可,这样所有的开发人员使用的依赖版本就能保持一致性。


一:micaicms-pom项目的pom.xml:

<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>org.micaicms</groupId><artifactId>micaicms-pom</artifactId><version>1.0</version><packaging>pom</packaging><name>MICAICMS POM</name><description>MICAICMS ROOT POM</description><properties><!-- 前端 Java开发工具 --><!-- 1.Servlet --><servlet-api.version>3.0.1</servlet-api.version><!-- 2.Jsp --><jsp-api.version>2.2</jsp-api.version><!-- 3.Jstl --><jstl.version>1.2</jstl.version><standard.version>1.1.2</standard.version><!-- 4.Echart-java --><ECharts.version>2.1.8.3</ECharts.version><!-- 5.Freemarker --><freemarker.version>2.3.2</freemarker.version><!-- 6.Json --><jackson.version>1.9.13</jackson.version><jackson-databind.version>2.5.1</jackson-databind.version><!-- Spring --><spring-framework.version>4.0.6.RELEASE</spring-framework.version><!-- 面向切面工具 --><aspectjweaver.version>1.8.1</aspectjweaver.version><!-- 文本处理工具 --><!-- 1.Dom4j --><dom4j.version>1.6.1</dom4j.version><!-- 2.Poi --><poi.version>3.10-FINAL</poi.version><!-- 3.IText --><itext.version>5.5.4</itext.version><!-- 数据库开发工具 --><!-- 1.tomcat-jdbc --><tomcat-jdbc.version>7.0.52</tomcat-jdbc.version><!-- 2.Mybatis --><mybatis.version>3.2.2</mybatis.version><mybatis-paginator.version>1.2.15</mybatis-paginator.version><mybatis-spring.version>1.2.2</mybatis-spring.version><!-- 3.Mysql connector --><mysql-connector.version>5.1.30</mysql-connector.version><!-- 日志工具 --><!-- 1.slf4j --><slf4j.version>1.7.7</slf4j.version><!-- 2.log4j --><log4j.version>2.1</log4j.version><!-- Quartz --><quartz.version>2.1.7</quartz.version><!-- Activiti --><activiti.version>5.16.3</activiti.version><!-- cas_client --><cas_client.version>3.3.0</cas_client.version><!-- Test --><junit.version>4.10</junit.version><!-- JDK --><jdk.version>1.8</jdk.version><!-- 后台验证工具 --><!-- 1.hibernate-validator --><hibernate-validator.version>5.1.3.Final</hibernate-validator.version><!-- 文件上传工具 --><!-- 1.commons-fileupload --><commons-fileupload.version>1.3.1</commons-fileupload.version><!-- 润乾报表工具 --><!-- 1.runqian_report --><runqian.version>4.5.0-RELEASE</runqian.version><!-- 1.ckeditor --><ckeditor.version>4.4.7</ckeditor.version><!-- 2.bootstrap --><bootstrap.version>3.3.0</bootstrap.version><!-- 3.echarts --><echarts.version>2.1.10</echarts.version><!-- 4.jquery --><jquery.version>1.11.1</jquery.version><!-- 5.jqwidgets --><jqwidgets.version>3.8.0</jqwidgets.version><jquery-ui.version>1.11.1</jquery-ui.version><jquery-form.version>3.51</jquery-form.version><!-- 校验工具 --><jquery.validate.js.version>1.13.1</jquery.validate.js.version><!-- 文件上传工具 --><jquery-file-upload.version>9.8.1</jquery-file-upload.version></properties><dependencyManagement><dependencies><!-- 前端 Java开发工具 --><!-- 1.Servlet --><dependency><groupId>javax.servlet</groupId><artifactId>javax.servlet-api</artifactId><version>${servlet-api.version}</version><scope>provided</scope></dependency><!-- 2.Jsp --><dependency><groupId>javax.servlet.jsp</groupId><artifactId>jsp-api</artifactId><version>${jsp-api.version}</version><scope>provided</scope></dependency><!-- 3.jstl --><dependency><groupId>javax.servlet</groupId><artifactId>jstl</artifactId><version>${jstl.version}</version><scope>runtime</scope></dependency><dependency><groupId>taglibs</groupId><artifactId>standard</artifactId><version>${standard.version}</version></dependency><!-- 4.spring-mvc --><dependency><groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>${spring-framework.version}</version></dependency><!-- 5.Echart-java --><dependency><groupId>com.github.abel533</groupId><artifactId>ECharts</artifactId><version>${ECharts.version}</version></dependency><!-- 6.Freemarker --><dependency><groupId>freemarker</groupId><artifactId>freemarker</artifactId><version>${freemarker.version}</version></dependency><!-- 7.Json --><dependency><groupId>org.codehaus.jackson</groupId><artifactId>jackson-mapper-asl</artifactId><version>${jackson.version}</version></dependency><dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId><version>${jackson-databind.version}</version></dependency><!-- Spring and Transactions --><dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><version>${spring-framework.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-jdbc</artifactId><version>${spring-framework.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-tx</artifactId><version>${spring-framework.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-aop</artifactId><version>${spring-framework.version}</version></dependency><dependency><groupId>org.aspectj</groupId><artifactId>aspectjweaver</artifactId><version>${aspectjweaver.version}</version></dependency><!-- 文本处理 --><!-- 1.Dom4j --><dependency><groupId>dom4j</groupId><artifactId>dom4j</artifactId><version>${dom4j.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-oxm</artifactId><version>${spring-framework.version}</version><exclusions><exclusion><groupId>commons-lang</groupId><artifactId>commons-lang</artifactId></exclusion></exclusions></dependency><!-- 2.Poi --><dependency><groupId>org.apache.poi</groupId><artifactId>poi</artifactId><version>${poi.version}</version></dependency><!-- 3.IText --><dependency><groupId>com.itextpdf</groupId><artifactId>itextpdf</artifactId><version>${itext.version}</version></dependency><!-- 数据库开发 --><!-- 1.数据库连接池 --><dependency><groupId>org.apache.tomcat</groupId><artifactId>tomcat-jdbc</artifactId><version>${tomcat-jdbc.version}</version><scope>runtime</scope></dependency><!-- 2.mybatis --><dependency><groupId>org.mybatis</groupId><artifactId>mybatis</artifactId><version>${mybatis.version}</version></dependency><!-- 3.mybatis分页插件 --><dependency><groupId>com.github.miemiedev</groupId><artifactId>mybatis-paginator</artifactId><version>${mybatis-paginator.version}</version></dependency><!-- 4.mybatis与spring集成 --><dependency><groupId>org.mybatis</groupId><artifactId>mybatis-spring</artifactId><version>${mybatis-spring.version}</version></dependency><!-- 5.Mysql 数据库驱动 --><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>${mysql-connector.version}</version></dependency><!-- Quartz --><dependency><groupId>org.quartz-scheduler</groupId><artifactId>quartz</artifactId><version>${quartz.version}</version></dependency><!-- CAS --><dependency><groupId>org.jasig.cas.client</groupId><artifactId>cas-client-core</artifactId><version>${cas_client.version}</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><!-- 日志工具 --><dependency><groupId>org.slf4j</groupId><artifactId>slf4j-api</artifactId><version>${slf4j.version}</version></dependency><dependency><groupId>org.apache.logging.log4j</groupId><artifactId>log4j-slf4j-impl</artifactId><version>${log4j.version}</version></dependency><dependency><groupId>org.apache.logging.log4j</groupId><artifactId>log4j-core</artifactId><version>${log4j.version}</version><scope>runtime</scope></dependency><dependency><groupId>org.apache.logging.log4j</groupId><artifactId>log4j-web</artifactId><version>${log4j.version}</version><scope>runtime</scope></dependency><!-- Test Artifacts --><dependency><groupId>org.springframework</groupId><artifactId>spring-test</artifactId><version>${spring-framework.version}</version><scope>test</scope></dependency><dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>${junit.version}</version><scope>test</scope></dependency><!-- 后台验证工具 --><dependency><groupId>org.hibernate</groupId><artifactId>hibernate-validator</artifactId><version>${hibernate-validator.version}</version></dependency><!-- 上传附件工具 --><dependency><groupId>commons-fileupload</groupId><artifactId>commons-fileupload</artifactId><version>${commons-fileupload.version}</version></dependency><!-- 润乾报表工具 --><dependency><groupId>com.runqian</groupId><artifactId>ruanqian_report</artifactId><version>${runqian.version}</version><type>pom</type></dependency><!-- 1.ckeditor --><dependency><groupId>org.webjars</groupId><artifactId>ckeditor</artifactId><version>${ckeditor.version}</version></dependency><!-- 2.bootstrap --><dependency><groupId>org.webjars</groupId><artifactId>bootstrap</artifactId><version>${bootstrap.version}</version></dependency><!-- 3.echarts --><dependency><groupId>org.webjars</groupId><artifactId>echarts</artifactId><version>${echarts.version}</version></dependency><!-- 4.jquery --><dependency><groupId>org.webjars</groupId><artifactId>jquery</artifactId><version>${jquery.version}</version></dependency><!-- 5.jqwidgets --><dependency><groupId>org.webjars</groupId><artifactId>jqwidgets</artifactId><version>${jqwidgets.version}</version></dependency><dependency><groupId>org.webjars</groupId><artifactId>jquery-ui</artifactId><version>${jquery-ui.version}</version></dependency><dependency><groupId>org.webjars</groupId><artifactId>jquery-form</artifactId><version>${jquery-form.version}</version></dependency><dependency><groupId>org.webjars</groupId><artifactId>jquery.validate.js</artifactId><version>${jquery.validate.js.version}</version></dependency><!-- 文件操作工具 --><dependency><groupId>org.webjars</groupId><artifactId>jquery-file-upload</artifactId><version>${jquery-file-upload.version}</version></dependency></dependencies></dependencyManagement><build><pluginManagement><plugins><plugin><artifactId>maven-eclipse-plugin</artifactId><version>2.9</version><configuration><additionalProjectnatures><projectnature>org.springframework.ide.eclipse.core.springnature</projectnature></additionalProjectnatures><additionalBuildcommands><buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand></additionalBuildcommands><downloadSources>true</downloadSources><downloadJavadocs>true</downloadJavadocs></configuration></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>2.5.1</version><configuration><source>${jdk.version}</source><target>${jdk.version}</target><showWarnings>true</showWarnings><showDeprecation>true</showDeprecation><encoding>UTF-8</encoding></configuration></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>2.7</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><version>2.18.1</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-failsafe-plugin</artifactId><version>2.18.1</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-verifier-plugin</artifactId><version>1.0</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-source-plugin</artifactId><version>2.4</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-javadoc-plugin</artifactId><version>2.10.1</version></plugin><plugin><groupId>org.mybatis.generator</groupId><artifactId>mybatis-generator-maven-plugin</artifactId><version>1.3.0</version><configuration><verbose>true</verbose><overwrite>true</overwrite></configuration></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-report-plugin</artifactId><version>2.18.1</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-assembly-plugin</artifactId><version>2.5.3</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><version>2.10</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-enforcer-plugin</artifactId><version>1.4</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-release-plugin</artifactId><version>2.5.1</version></plugin><plugin><groupId>org.codehaus.cargo</groupId><artifactId>cargo-maven2-plugin</artifactId><version>1.4.12</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-checkstyle-plugin</artifactId><version>2.14</version><dependencies><dependency><groupId>com.puppycrawl.tools</groupId><artifactId>checkstyle</artifactId><version>6.0</version></dependency></dependencies><configuration><encoding>UTF-8</encoding></configuration></plugin><plugin><groupId>org.codehaus.mojo</groupId><artifactId>findbugs-maven-plugin</artifactId><version>3.0.0</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-scm-plugin</artifactId><version>1.9.2</version></plugin><plugin><groupId>org.codehaus.mojo</groupId><artifactId>exec-maven-plugin</artifactId><version>1.2.1</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>2.5</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-war-plugin</artifactId><version>2.6</version></plugin><plugin><groupId>org.apache.tomcat.maven</groupId><artifactId>tomcat7-maven-plugin</artifactId><version>2.2</version><configuration><charset>UTF-8</charset></configuration></plugin></plugins></pluginManagement></build><repositories><repository><id>micaicms</id><name>Micaicms Repositories</name><url>http://127.0.0.1:8081/nexus/content/groups/public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories><pluginRepositories><pluginRepository><id>Micaicms</id><name>Micaicms Plugin Repositories</name><url>http://127.0.0.1:8081/nexus/content/groups/public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository></pluginRepositories><distributionManagement><repository><id>releases</id><name>Micaicms Releases</name><url>http://127.0.0.1:8081/nexus/content/repositories/releases/</url></repository><snapshotRepository><id>snapshots</id><name>Micaicms Releases</name><url>http://127.0.0.1:8081/nexus/content/repositories/snapshots/</url></snapshotRepository></distributionManagement>
</project>


二:micaicms-pom项目的源码地址: micaicms-pom

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/443428.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Maven之搭建本地私服(nexus)仓库

摘要&#xff1a;现在越来越多的项目都在使用Maven管理项目&#xff0c;尤其是在大型的项目团队中使用Maven能带来更加多的好处&#xff0c;私服的好处我相信大家都明白&#xff0c;在这里我就不多说了&#xff0c;它最重要的作用就是可以让项目团队成员更加方便的下载对应的项…

项目管理4321方法论

文章目录 一、项目立项准备&#xff08;4步&#xff09;case1、识别价值---解决背后痛点的才是价值&#xff0c;价值是做任何事情的出发点case2、明确目标---支撑价值实现的&#xff0c;目标是 具体/可衡量/可达到/相关性/有时限的case3、识别干系人---找对人才能做对事&#x…

Maven之自定义archetype生成项目骨架(一)

摘要&#xff1a;使用过Maven的人都知道maven中有许多功能都是通过插件来提供的&#xff0c;今天我们来说一下其中的一个插件&#xff1a;maven-archetype-plugin&#xff0c;通过该插件可以自定义符合我们自己需求的archetype。 一:什么是Archetype 总之&#xff0c;原型是一…

匆匆那年之Java程序员之最近两周的面试总结:

匆匆那年之Java程序员之最近两周的面试总结&#xff1a; (一):匆匆那年之来帝都之初&#xff1a; 还记得那是2011年的冬天&#xff0c;我们一行20多个同学一起来到了这个一直向往的城市首都&#xff0c;刚到北京是凌晨4点30&#xff0c;负责送我们的老师 已经安排好了我们的住处…

Exception in thread main com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport e

摘要&#xff1a;在调用webservice客户端代码的时候报如下错误 Invoking reportLossByRdid... Exception in thread "main" com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: java.net.UnknownHostException: opacat com.sun.xml.in…

org.springframework.http.converter.HttpMessageNotWritableException:

摘要&#xff1a;在使用SpringHibernate搭建RESTful API时&#xff0c;在Hibernate查询出数据实体类使用jackson序列化为json时&#xff0c;返回页面的时候报如下错误&#xff1a; 一&#xff1a;错误信息&#xff1a; HTTP Status 500 - Could not write JSON: No serializer …

Hessian Binary Web Service Protocol远程接口调用入门

摘要&#xff1a;Hessian是一个轻量级的remoting onhttp工具&#xff0c;使用简单的方法提供了RMI的功能. 相比WebService&#xff0c;Hessian更简单、快捷。采用的是二进制RPC协议&#xff0c;因为采用的是二进制协议&#xff0c;所以它很适合于发送二进制数据。 hessian类似于…

Windows+Nginx+Tomcat搭建负载均衡和集群环境同时实现session共享(一)

摘要&#xff1a;随着网站的访问量越来越多&#xff0c;所以就考虑给网站增加服务器了&#xff0c;现在比较流行的做法就是给网站做集群环境&#xff0c;下面我把我做的过程记录一下&#xff0c;方便日后查看&#xff0c;同时也希望可以帮助到有需要的朋友&#xff01; 一&…

Android开发中调用Spring CXF整合发布的WebService接口为什么抛出异常错误?

摘要&#xff1a;最近在协助同事搞Android调用WebService接口&#xff0c;再测试的过程中发现老师报错&#xff0c;经过baidu&#xff0c;google&#xff0c;终于解决了&#xff0c;现在记录一下&#xff1a; 一&#xff1a;错误信息&#xff1a; 2015-10-28 18:50:39 org.apac…

Eclipse,MyEclipse 安装SVN插件

摘要&#xff1a;MyEclipse10.5安装SVN插件最简单的方式&#xff1a; 一&#xff1a;先到SVN官网下载对应版本的SVN插件包&#xff0c;我这里下载的site-1.10.10版本 下载地址&#xff1a;http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID2240 二&#xf…

MyEclipse 10.5 安装SVN插件

摘要&#xff1a;MyEclipse10.5安装SVN插件最简单的方式&#xff1a; 一&#xff1a;先到SVN官网下载对应版本的SVN插件包&#xff0c;我这里下载的site-1.10.10版本 下载地址&#xff1a;http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID2240 二&#xf…

PHP获取服务器端的相关信息

摘要&#xff1a;PHP获取服务端端的相关信息 一&#xff1a;代码&#xff1a; <!DOCTYPE html> <html> <head><title>第一个PHP程序(获取服务器信息)</title><meta http-equiv"content-type" content"text/html"; charse…

log4j 标准配置模板:

摘要&#xff1a;log4j在开发中是少不了的&#xff0c;下面贴上我的log4j的配置&#xff0c;该配置文件实现的结果是&#xff0c;每天会生成一个日子文件到指定的目录下&#xff0c;这样方便我们随时查看日志信息&#xff01; log4j.propertieslog4j.rootLoggerINFO,CONSOLE,A …

Sql Server 2005 分页

摘要&#xff1a;Sql Server 分页查询sql! Sql Server 2005分页查询数据&#xff0c;适用于手机端和服务器端交互 一&#xff1a;Dao代码&#xff1a; /*** 分页查询研讯分类下的新闻列表*/Overridepublic List<TblNews> getListByYunXunNewId(int cId, int start, int…

Spring+Hibernate+SpringMVC+MySql实现配置多个数据源!

摘要&#xff1a;在日常的工作中&#xff0c;很多时候我们进行项目开发的时候&#xff0c;一个项目有可能不止用到一个数据源&#xff0c;为了提高数据库的水平伸缩性&#xff0c;需要对多个数据库实例进行管理&#xff0c;需要配置多数据源! 一&#xff1a;代码截图&#xff…

Java之Base64实现文件和字符串之间的转换

摘要&#xff1a;Java通过Base64加密解密实现文件和字符串之间的转换&#xff01; Base64.java package com.qdexam.util;import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputS…

app中使用用户名/邮箱/手机号登录的思路分析

摘要&#xff1a;app中使用用户名/邮箱/手机号登录的思路分析 1.客户端 客户端需要传递2个参数 account 代表&#xff1a;用户名/邮箱/手机号 password 代表&#xff1a;密码这里问题来了&#xff0c;那么如何判断识别用户输入的是用户名还是邮箱&#xff0c;还是手机号就需要…

java实现ListObject转List实体类,java实现Object转对象,java实现Object转实体类

摘要&#xff1a;在java开发中&#xff0c;我们常常会遇到Object转对象的情况&#xff0c;最近我就遇到了这个问题&#xff0c;现在记录一下&#xff0c;方便日后自己查看复习&#xff01; 一&#xff1a;查询Object类型的集合对象的方法如下&#xff1a; List topicList top…

MySql实现分页查询的SQL,mysql实现分页查询的sql语句

摘要&#xff1a;MySql数据库实现分页查询的SQL语句写法&#xff01; 一&#xff1a;分页需求&#xff1a; 客户端通过传递start(页码)&#xff0c;limit(每页显示的条数)两个参数去分页查询数据库表中的数据&#xff0c;那我们知道MySql数据库提供了分页的函数limit m,n&…

CentOS下安装Memcached,Linux下安装Memcached,centos下安装memcached,linux下安装memcached...

摘要&#xff1a;最近在看《大型分布式网站架构设计与实践》这本书&#xff0c;把其中的学习过程记录一下&#xff0c;以便日后复习。 一&#xff1a;Memcached简单介绍和描述&#xff1a; Memcached 是一个高性能的分布式内存对象缓存系统&#xff0c;用于动态Web应用以减轻数…