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

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

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

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

[html] view plain copy
 
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
  2.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">  
  3.     <modelVersion>4.0.0</modelVersion>  
  4.     <groupId>org.micaicms</groupId>  
  5.     <artifactId>micaicms-pom</artifactId>  
  6.     <version>1.0</version>  
  7.     <packaging>pom</packaging>  
  8.   
  9.     <name>MICAICMS POM</name>  
  10.     <description>MICAICMS ROOT POM</description>  
  11.   
  12.     <properties>  
  13.         <!-- 前端 Java开发工具 -->  
  14.         <!-- 1.Servlet -->  
  15.         <servlet-api.version>3.0.1</servlet-api.version>  
  16.         <!-- 2.Jsp -->  
  17.         <jsp-api.version>2.2</jsp-api.version>  
  18.         <!-- 3.Jstl -->  
  19.         <jstl.version>1.2</jstl.version>  
  20.         <standard.version>1.1.2</standard.version>  
  21.   
  22.         <!-- 4.Echart-java -->  
  23.         <ECharts.version>2.1.8.3</ECharts.version>  
  24.         <!-- 5.Freemarker -->  
  25.         <freemarker.version>2.3.2</freemarker.version>  
  26.         <!-- 6.Json -->  
  27.         <jackson.version>1.9.13</jackson.version>  
  28.         <jackson-databind.version>2.5.1</jackson-databind.version>  
  29.   
  30.         <!-- Spring -->  
  31.         <spring-framework.version>4.0.6.RELEASE</spring-framework.version>  
  32.   
  33.         <!-- 面向切面工具 -->  
  34.         <aspectjweaver.version>1.8.1</aspectjweaver.version>  
  35.   
  36.         <!-- 文本处理工具 -->  
  37.         <!-- 1.Dom4j -->  
  38.         <dom4j.version>1.6.1</dom4j.version>  
  39.         <!-- 2.Poi -->  
  40.         <poi.version>3.10-FINAL</poi.version>  
  41.         <!-- 3.IText -->  
  42.         <itext.version>5.5.4</itext.version>  
  43.   
  44.         <!-- 数据库开发工具 -->  
  45.         <!-- 1.tomcat-jdbc -->  
  46.         <tomcat-jdbc.version>7.0.52</tomcat-jdbc.version>  
  47.         <!-- 2.Mybatis -->  
  48.         <mybatis.version>3.2.2</mybatis.version>  
  49.         <mybatis-paginator.version>1.2.15</mybatis-paginator.version>  
  50.         <mybatis-spring.version>1.2.2</mybatis-spring.version>  
  51.         <!-- 3.Mysql connector -->  
  52.         <mysql-connector.version>5.1.30</mysql-connector.version>  
  53.   
  54.         <!-- 日志工具 -->  
  55.         <!-- 1.slf4j -->  
  56.         <slf4j.version>1.7.7</slf4j.version>  
  57.         <!-- 2.log4j -->  
  58.         <log4j.version>2.1</log4j.version>  
  59.   
  60.         <!-- Quartz -->  
  61.         <quartz.version>2.1.7</quartz.version>  
  62.         <!-- Activiti -->  
  63.         <activiti.version>5.16.3</activiti.version>  
  64.         <!-- cas_client -->  
  65.         <cas_client.version>3.3.0</cas_client.version>  
  66.         <!-- Test -->  
  67.         <junit.version>4.10</junit.version>  
  68.         <!-- JDK -->  
  69.         <jdk.version>1.8</jdk.version>  
  70.   
  71.         <!-- 后台验证工具 -->  
  72.         <!-- 1.hibernate-validator -->  
  73.         <hibernate-validator.version>5.1.3.Final</hibernate-validator.version>  
  74.   
  75.         <!-- 文件上传工具 -->  
  76.         <!-- 1.commons-fileupload -->  
  77.         <commons-fileupload.version>1.3.1</commons-fileupload.version>  
  78.   
  79.         <!-- 润乾报表工具 -->  
  80.         <!-- 1.runqian_report -->  
  81.         <runqian.version>4.5.0-RELEASE</runqian.version>  
  82.   
  83.   
  84.         <!-- 1.ckeditor -->  
  85.         <ckeditor.version>4.4.7</ckeditor.version>  
  86.         <!-- 2.bootstrap -->  
  87.         <bootstrap.version>3.3.0</bootstrap.version>  
  88.         <!-- 3.echarts -->  
  89.         <echarts.version>2.1.10</echarts.version>  
  90.         <!-- 4.jquery -->  
  91.         <jquery.version>1.11.1</jquery.version>  
  92.         <!-- 5.jqwidgets -->  
  93.         <jqwidgets.version>3.8.0</jqwidgets.version>  
  94.         <jquery-ui.version>1.11.1</jquery-ui.version>  
  95.         <jquery-form.version>3.51</jquery-form.version>  
  96.   
  97.         <!-- 校验工具 -->  
  98.         <jquery.validate.js.version>1.13.1</jquery.validate.js.version>  
  99.         <!-- 文件上传工具 -->  
  100.         <jquery-file-upload.version>9.8.1</jquery-file-upload.version>  
  101.   
  102.     </properties>  
  103.   
  104.     <dependencyManagement>  
  105.         <dependencies>  
  106.             <!-- 前端 Java开发工具 -->  
  107.             <!-- 1.Servlet -->  
  108.             <dependency>  
  109.                 <groupId>javax.servlet</groupId>  
  110.                 <artifactId>javax.servlet-api</artifactId>  
  111.                 <version>${servlet-api.version}</version>  
  112.                 <scope>provided</scope>  
  113.             </dependency>  
  114.             <!-- 2.Jsp -->  
  115.             <dependency>  
  116.                 <groupId>javax.servlet.jsp</groupId>  
  117.                 <artifactId>jsp-api</artifactId>  
  118.                 <version>${jsp-api.version}</version>  
  119.                 <scope>provided</scope>  
  120.             </dependency>  
  121.             <!-- 3.jstl -->  
  122.             <dependency>  
  123.                 <groupId>javax.servlet</groupId>  
  124.                 <artifactId>jstl</artifactId>  
  125.                 <version>${jstl.version}</version>  
  126.                 <scope>runtime</scope>  
  127.             </dependency>  
  128.             <dependency>  
  129.                 <groupId>taglibs</groupId>  
  130.                 <artifactId>standard</artifactId>  
  131.                 <version>${standard.version}</version>  
  132.             </dependency>  
  133.             <!-- 4.spring-mvc -->  
  134.             <dependency>  
  135.                 <groupId>org.springframework</groupId>  
  136.                 <artifactId>spring-webmvc</artifactId>  
  137.                 <version>${spring-framework.version}</version>  
  138.             </dependency>  
  139.             <!-- 5.Echart-java -->  
  140.             <dependency>  
  141.                 <groupId>com.github.abel533</groupId>  
  142.                 <artifactId>ECharts</artifactId>  
  143.                 <version>${ECharts.version}</version>  
  144.             </dependency>  
  145.             <!-- 6.Freemarker -->  
  146.             <dependency>  
  147.                 <groupId>freemarker</groupId>  
  148.                 <artifactId>freemarker</artifactId>  
  149.                 <version>${freemarker.version}</version>  
  150.             </dependency>  
  151.             <!-- 7.Json -->  
  152.             <dependency>  
  153.                 <groupId>org.codehaus.jackson</groupId>  
  154.                 <artifactId>jackson-mapper-asl</artifactId>  
  155.                 <version>${jackson.version}</version>  
  156.             </dependency>  
  157.             <dependency>  
  158.                 <groupId>com.fasterxml.jackson.core</groupId>  
  159.                 <artifactId>jackson-databind</artifactId>  
  160.                 <version>${jackson-databind.version}</version>  
  161.             </dependency>  
  162.   
  163.             <!-- Spring and Transactions -->  
  164.             <dependency>  
  165.                 <groupId>org.springframework</groupId>  
  166.                 <artifactId>spring-context</artifactId>  
  167.                 <version>${spring-framework.version}</version>  
  168.             </dependency>  
  169.             <dependency>  
  170.                 <groupId>org.springframework</groupId>  
  171.                 <artifactId>spring-jdbc</artifactId>  
  172.                 <version>${spring-framework.version}</version>  
  173.             </dependency>  
  174.             <dependency>  
  175.                 <groupId>org.springframework</groupId>  
  176.                 <artifactId>spring-tx</artifactId>  
  177.                 <version>${spring-framework.version}</version>  
  178.             </dependency>  
  179.             <dependency>  
  180.                 <groupId>org.springframework</groupId>  
  181.                 <artifactId>spring-aop</artifactId>  
  182.                 <version>${spring-framework.version}</version>  
  183.             </dependency>  
  184.             <dependency>  
  185.                 <groupId>org.aspectj</groupId>  
  186.                 <artifactId>aspectjweaver</artifactId>  
  187.                 <version>${aspectjweaver.version}</version>  
  188.             </dependency>  
  189.   
  190.             <!-- 文本处理 -->  
  191.             <!-- 1.Dom4j -->  
  192.             <dependency>  
  193.                 <groupId>dom4j</groupId>  
  194.                 <artifactId>dom4j</artifactId>  
  195.                 <version>${dom4j.version}</version>  
  196.             </dependency>  
  197.             <dependency>  
  198.                 <groupId>org.springframework</groupId>  
  199.                 <artifactId>spring-oxm</artifactId>  
  200.                 <version>${spring-framework.version}</version>  
  201.                 <exclusions>  
  202.                     <exclusion>  
  203.                         <groupId>commons-lang</groupId>  
  204.                         <artifactId>commons-lang</artifactId>  
  205.                     </exclusion>  
  206.                 </exclusions>  
  207.             </dependency>  
  208.             <!-- 2.Poi -->  
  209.             <dependency>  
  210.                 <groupId>org.apache.poi</groupId>  
  211.                 <artifactId>poi</artifactId>  
  212.                 <version>${poi.version}</version>  
  213.             </dependency>  
  214.             <!-- 3.IText -->  
  215.             <dependency>  
  216.                 <groupId>com.itextpdf</groupId>  
  217.                 <artifactId>itextpdf</artifactId>  
  218.                 <version>${itext.version}</version>  
  219.             </dependency>  
  220.   
  221.             <!-- 数据库开发 -->  
  222.             <!-- 1.数据库连接池 -->  
  223.             <dependency>  
  224.                 <groupId>org.apache.tomcat</groupId>  
  225.                 <artifactId>tomcat-jdbc</artifactId>  
  226.                 <version>${tomcat-jdbc.version}</version>  
  227.                 <scope>runtime</scope>  
  228.             </dependency>  
  229.             <!-- 2.mybatis -->  
  230.             <dependency>  
  231.                 <groupId>org.mybatis</groupId>  
  232.                 <artifactId>mybatis</artifactId>  
  233.                 <version>${mybatis.version}</version>  
  234.             </dependency>  
  235.             <!-- 3.mybatis分页插件 -->  
  236.             <dependency>  
  237.                 <groupId>com.github.miemiedev</groupId>  
  238.                 <artifactId>mybatis-paginator</artifactId>  
  239.                 <version>${mybatis-paginator.version}</version>  
  240.             </dependency>  
  241.             <!-- 4.mybatis与spring集成 -->  
  242.             <dependency>  
  243.                 <groupId>org.mybatis</groupId>  
  244.                 <artifactId>mybatis-spring</artifactId>  
  245.                 <version>${mybatis-spring.version}</version>  
  246.             </dependency>  
  247.             <!-- 5.Mysql 数据库驱动 -->  
  248.             <dependency>  
  249.                 <groupId>mysql</groupId>  
  250.                 <artifactId>mysql-connector-java</artifactId>  
  251.                 <version>${mysql-connector.version}</version>  
  252.             </dependency>  
  253.             <!-- Quartz -->  
  254.             <dependency>  
  255.                 <groupId>org.quartz-scheduler</groupId>  
  256.                 <artifactId>quartz</artifactId>  
  257.                 <version>${quartz.version}</version>  
  258.             </dependency>  
  259.             <!-- CAS -->  
  260.             <dependency>  
  261.                 <groupId>org.jasig.cas.client</groupId>  
  262.                 <artifactId>cas-client-core</artifactId>  
  263.                 <version>${cas_client.version}</version>  
  264.             </dependency>  
  265.             <!-- Activiti -->  
  266.             <dependency>  
  267.                 <groupId>org.activiti</groupId>  
  268.                 <artifactId>activiti-engine</artifactId>  
  269.                 <version>${activiti.version}</version>  
  270.             </dependency>  
  271.             <dependency>  
  272.                 <groupId>org.activiti</groupId>  
  273.                 <artifactId>activiti-spring</artifactId>  
  274.                 <version>${activiti.version}</version>  
  275.             </dependency>  
  276.   
  277.             <!-- 日志工具 -->  
  278.             <dependency>  
  279.                 <groupId>org.slf4j</groupId>  
  280.                 <artifactId>slf4j-api</artifactId>  
  281.                 <version>${slf4j.version}</version>  
  282.             </dependency>  
  283.             <dependency>  
  284.                 <groupId>org.apache.logging.log4j</groupId>  
  285.                 <artifactId>log4j-slf4j-impl</artifactId>  
  286.                 <version>${log4j.version}</version>  
  287.             </dependency>  
  288.             <dependency>  
  289.                 <groupId>org.apache.logging.log4j</groupId>  
  290.                 <artifactId>log4j-core</artifactId>  
  291.                 <version>${log4j.version}</version>  
  292.                 <scope>runtime</scope>  
  293.             </dependency>  
  294.             <dependency>  
  295.                 <groupId>org.apache.logging.log4j</groupId>  
  296.                 <artifactId>log4j-web</artifactId>  
  297.                 <version>${log4j.version}</version>  
  298.                 <scope>runtime</scope>  
  299.             </dependency>  
  300.   
  301.             <!-- Test Artifacts -->  
  302.             <dependency>  
  303.                 <groupId>org.springframework</groupId>  
  304.                 <artifactId>spring-test</artifactId>  
  305.                 <version>${spring-framework.version}</version>  
  306.                 <scope>test</scope>  
  307.             </dependency>  
  308.             <dependency>  
  309.                 <groupId>junit</groupId>  
  310.                 <artifactId>junit</artifactId>  
  311.                 <version>${junit.version}</version>  
  312.                 <scope>test</scope>  
  313.             </dependency>  
  314.   
  315.             <!-- 后台验证工具 -->  
  316.             <dependency>  
  317.                 <groupId>org.hibernate</groupId>  
  318.                 <artifactId>hibernate-validator</artifactId>  
  319.                 <version>${hibernate-validator.version}</version>  
  320.             </dependency>  
  321.   
  322.             <!-- 上传附件工具 -->  
  323.             <dependency>  
  324.                 <groupId>commons-fileupload</groupId>  
  325.                 <artifactId>commons-fileupload</artifactId>  
  326.                 <version>${commons-fileupload.version}</version>  
  327.             </dependency>  
  328.   
  329.             <!-- 润乾报表工具 -->  
  330.             <dependency>  
  331.                 <groupId>com.runqian</groupId>  
  332.                 <artifactId>ruanqian_report</artifactId>  
  333.                 <version>${runqian.version}</version>  
  334.                 <type>pom</type>  
  335.             </dependency>  
  336.   
  337.             <!-- 1.ckeditor -->  
  338.             <dependency>  
  339.                 <groupId>org.webjars</groupId>  
  340.                 <artifactId>ckeditor</artifactId>  
  341.                 <version>${ckeditor.version}</version>  
  342.             </dependency>  
  343.             <!-- 2.bootstrap -->  
  344.             <dependency>  
  345.                 <groupId>org.webjars</groupId>  
  346.                 <artifactId>bootstrap</artifactId>  
  347.                 <version>${bootstrap.version}</version>  
  348.             </dependency>  
  349.             <!-- 3.echarts -->  
  350.             <dependency>  
  351.                 <groupId>org.webjars</groupId>  
  352.                 <artifactId>echarts</artifactId>  
  353.                 <version>${echarts.version}</version>  
  354.             </dependency>  
  355.             <!-- 4.jquery -->  
  356.             <dependency>  
  357.                 <groupId>org.webjars</groupId>  
  358.                 <artifactId>jquery</artifactId>  
  359.                 <version>${jquery.version}</version>  
  360.             </dependency>  
  361.             <!-- 5.jqwidgets -->  
  362.             <dependency>  
  363.                 <groupId>org.webjars</groupId>  
  364.                 <artifactId>jqwidgets</artifactId>  
  365.                 <version>${jqwidgets.version}</version>  
  366.             </dependency>  
  367.             <dependency>  
  368.                 <groupId>org.webjars</groupId>  
  369.                 <artifactId>jquery-ui</artifactId>  
  370.                 <version>${jquery-ui.version}</version>  
  371.             </dependency>  
  372.             <dependency>  
  373.                 <groupId>org.webjars</groupId>  
  374.                 <artifactId>jquery-form</artifactId>  
  375.                 <version>${jquery-form.version}</version>  
  376.             </dependency>  
  377.   
  378.             <dependency>  
  379.                 <groupId>org.webjars</groupId>  
  380.                 <artifactId>jquery.validate.js</artifactId>  
  381.                 <version>${jquery.validate.js.version}</version>  
  382.             </dependency>  
  383.   
  384.             <!-- 文件操作工具 -->  
  385.             <dependency>  
  386.                 <groupId>org.webjars</groupId>  
  387.                 <artifactId>jquery-file-upload</artifactId>  
  388.                 <version>${jquery-file-upload.version}</version>  
  389.             </dependency>  
  390.   
  391.         </dependencies>  
  392.     </dependencyManagement>  
  393.   
  394.     <build>  
  395.         <pluginManagement>  
  396.             <plugins>  
  397.                 <plugin>  
  398.                     <artifactId>maven-eclipse-plugin</artifactId>  
  399.                     <version>2.9</version>  
  400.                     <configuration>  
  401.                         <additionalProjectnatures>  
  402.                             <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>  
  403.                         </additionalProjectnatures>  
  404.                         <additionalBuildcommands>  
  405.                             <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>  
  406.                         </additionalBuildcommands>  
  407.                         <downloadSources>true</downloadSources>  
  408.                         <downloadJavadocs>true</downloadJavadocs>  
  409.                     </configuration>  
  410.                 </plugin>  
  411.                 <plugin>  
  412.                     <groupId>org.apache.maven.plugins</groupId>  
  413.                     <artifactId>maven-compiler-plugin</artifactId>  
  414.                     <version>2.5.1</version>  
  415.                     <configuration>  
  416.                         <source>${jdk.version}</source>  
  417.                         <target>${jdk.version}</target>  
  418.                         <showWarnings>true</showWarnings>  
  419.                         <showDeprecation>true</showDeprecation>  
  420.                         <encoding>UTF-8</encoding>  
  421.                     </configuration>  
  422.                 </plugin>  
  423.                 <plugin>  
  424.                     <groupId>org.apache.maven.plugins</groupId>  
  425.                     <artifactId>maven-resources-plugin</artifactId>  
  426.                     <version>2.7</version>  
  427.                 </plugin>  
  428.                 <plugin>  
  429.                     <groupId>org.apache.maven.plugins</groupId>  
  430.                     <artifactId>maven-surefire-plugin</artifactId>  
  431.                     <version>2.18.1</version>  
  432.                 </plugin>  
  433.                 <plugin>  
  434.                     <groupId>org.apache.maven.plugins</groupId>  
  435.                     <artifactId>maven-failsafe-plugin</artifactId>  
  436.                     <version>2.18.1</version>  
  437.                 </plugin>  
  438.                 <plugin>  
  439.                     <groupId>org.apache.maven.plugins</groupId>  
  440.                     <artifactId>maven-verifier-plugin</artifactId>  
  441.                     <version>1.0</version>  
  442.                 </plugin>  
  443.                 <plugin>  
  444.                     <groupId>org.apache.maven.plugins</groupId>  
  445.                     <artifactId>maven-source-plugin</artifactId>  
  446.                     <version>2.4</version>  
  447.                 </plugin>  
  448.                 <plugin>  
  449.                     <groupId>org.apache.maven.plugins</groupId>  
  450.                     <artifactId>maven-javadoc-plugin</artifactId>  
  451.                     <version>2.10.1</version>  
  452.                 </plugin>  
  453.                 <plugin>  
  454.                     <groupId>org.mybatis.generator</groupId>  
  455.                     <artifactId>mybatis-generator-maven-plugin</artifactId>  
  456.                     <version>1.3.0</version>  
  457.                     <configuration>  
  458.                         <verbose>true</verbose>  
  459.                         <overwrite>true</overwrite>  
  460.                     </configuration>  
  461.                 </plugin>  
  462.                 <plugin>  
  463.                     <groupId>org.apache.maven.plugins</groupId>  
  464.                     <artifactId>maven-surefire-report-plugin</artifactId>  
  465.                     <version>2.18.1</version>  
  466.                 </plugin>  
  467.                 <plugin>  
  468.                     <groupId>org.apache.maven.plugins</groupId>  
  469.                     <artifactId>maven-assembly-plugin</artifactId>  
  470.                     <version>2.5.3</version>  
  471.                 </plugin>  
  472.                 <plugin>  
  473.                     <groupId>org.apache.maven.plugins</groupId>  
  474.                     <artifactId>maven-dependency-plugin</artifactId>  
  475.                     <version>2.10</version>  
  476.                 </plugin>  
  477.                 <plugin>  
  478.                     <groupId>org.apache.maven.plugins</groupId>  
  479.                     <artifactId>maven-enforcer-plugin</artifactId>  
  480.                     <version>1.4</version>  
  481.                 </plugin>  
  482.                 <plugin>  
  483.                     <groupId>org.apache.maven.plugins</groupId>  
  484.                     <artifactId>maven-release-plugin</artifactId>  
  485.                     <version>2.5.1</version>  
  486.                 </plugin>  
  487.                 <plugin>  
  488.                     <groupId>org.codehaus.cargo</groupId>  
  489.                     <artifactId>cargo-maven2-plugin</artifactId>  
  490.                     <version>1.4.12</version>  
  491.                 </plugin>  
  492.                 <plugin>  
  493.                     <groupId>org.apache.maven.plugins</groupId>  
  494.                     <artifactId>maven-checkstyle-plugin</artifactId>  
  495.                     <version>2.14</version>  
  496.                     <dependencies>  
  497.                         <dependency>  
  498.                             <groupId>com.puppycrawl.tools</groupId>  
  499.                             <artifactId>checkstyle</artifactId>  
  500.                             <version>6.0</version>  
  501.                         </dependency>  
  502.                     </dependencies>  
  503.                     <configuration>  
  504.                         <encoding>UTF-8</encoding>  
  505.                     </configuration>  
  506.                 </plugin>  
  507.                 <plugin>  
  508.                     <groupId>org.codehaus.mojo</groupId>  
  509.                     <artifactId>findbugs-maven-plugin</artifactId>  
  510.                     <version>3.0.0</version>  
  511.                 </plugin>  
  512.                 <plugin>  
  513.                     <groupId>org.apache.maven.plugins</groupId>  
  514.                     <artifactId>maven-scm-plugin</artifactId>  
  515.                     <version>1.9.2</version>  
  516.                 </plugin>  
  517.                 <plugin>  
  518.                     <groupId>org.codehaus.mojo</groupId>  
  519.                     <artifactId>exec-maven-plugin</artifactId>  
  520.                     <version>1.2.1</version>  
  521.                 </plugin>  
  522.                 <plugin>  
  523.                     <groupId>org.apache.maven.plugins</groupId>  
  524.                     <artifactId>maven-jar-plugin</artifactId>  
  525.                     <version>2.5</version>  
  526.                 </plugin>  
  527.                 <plugin>  
  528.                     <groupId>org.apache.maven.plugins</groupId>  
  529.                     <artifactId>maven-war-plugin</artifactId>  
  530.                     <version>2.6</version>  
  531.                 </plugin>  
  532.                 <plugin>  
  533.                     <groupId>org.apache.tomcat.maven</groupId>  
  534.                     <artifactId>tomcat7-maven-plugin</artifactId>  
  535.                     <version>2.2</version>  
  536.                     <configuration>  
  537.                         <charset>UTF-8</charset>  
  538.                     </configuration>  
  539.                 </plugin>  
  540.             </plugins>  
  541.         </pluginManagement>  
  542.     </build>  
  543.       
  544.     <repositories>  
  545.         <repository>  
  546.             <id>micaicms</id>  
  547.             <name>Micaicms Repositories</name>  
  548.             <url>http://127.0.0.1:8081/nexus/content/groups/public/</url>  
  549.             <releases>  
  550.                 <enabled>true</enabled>  
  551.             </releases>  
  552.             <snapshots>  
  553.                 <enabled>true</enabled>  
  554.             </snapshots>  
  555.         </repository>  
  556.     </repositories>  
  557.     <pluginRepositories>  
  558.         <pluginRepository>  
  559.             <id>Micaicms</id>  
  560.             <name>Micaicms Plugin Repositories</name>  
  561.             <url>http://127.0.0.1:8081/nexus/content/groups/public/</url>  
  562.             <releases>  
  563.                 <enabled>true</enabled>  
  564.             </releases>  
  565.             <snapshots>  
  566.                 <enabled>true</enabled>  
  567.             </snapshots>  
  568.         </pluginRepository>  
  569.     </pluginRepositories>  
  570.       
  571.     <distributionManagement>  
  572.         <repository>  
  573.             <id>releases</id>  
  574.             <name>Micaicms Releases</name>  
  575.             <url>http://127.0.0.1:8081/nexus/content/repositories/releases/</url>  
  576.         </repository>  
  577.         <snapshotRepository>  
  578.             <id>snapshots</id>  
  579.             <name>Micaicms Releases</name>  
  580.             <url>http://127.0.0.1:8081/nexus/content/repositories/snapshots/</url>  
  581.         </snapshotRepository>  
  582.     </distributionManagement>  
  583. </project>  

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

原文地址:https://www.cnblogs.com/telwanggs/p/6419935.html