Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.60 KB | None | 0 0
  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/maven-v4_0_0.xsd">
  3.   <modelVersion>4.0.0</modelVersion>
  4.   <groupId>com.torch</groupId>
  5.   <artifactId>maven_test3</artifactId>
  6.   <packaging>war</packaging>
  7.   <version>0.0.1-SNAPSHOT</version>
  8.   <name>maven_test3 Maven Webapp</name>
  9.   <url>http://maven.apache.org</url>
  10.     <properties>
  11.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12.         <maven.compiler.source>1.8</maven.compiler.source>
  13.         <maven.compiler.target>1.8</maven.compiler.target>
  14.         <spring-context.version>5.0.5.RELEASE</spring-context.version>
  15.         <spring-core.version>5.0.5.RELEASE</spring-core.version>
  16.         <spring-beans.version>5.0.5.RELEASE</spring-beans.version>
  17.         <spring-expression.version>5.0.5.RELEASE</spring-expression.version>
  18.         <spring-web.version>5.0.5.RELEASE</spring-web.version>
  19.         <spring-webmvc.version>5.0.5.RELEASE</spring-webmvc.version>
  20.         <jackson.version>2.9.5</jackson.version>
  21.         <commons-logging.version>1.2</commons-logging.version>
  22.         <spring.version>5.0.5.RELEASE</spring.version>
  23.         <shiro.version>1.4.0</shiro.version>
  24.         <mybatis.version>3.4.6</mybatis.version>
  25.         <mysql-connector-java.version>8.0.11</mysql-connector-java.version>
  26.         <mybatis-spring.version>1.3.2</mybatis-spring.version>
  27.         <jackson-mapper-asl.version>1.9.13</jackson-mapper-asl.version>
  28.         <javaee.version>8.0</javaee.version>
  29.         <aspectjweaver.version>1.9.1</aspectjweaver.version>
  30.     </properties>
  31.   <dependencies>
  32. <!-- https://mvnrepository.com/artifact/com.github.jsimone/webapp-runner -->
  33.         <dependency>
  34.             <groupId>com.github.jsimone</groupId>
  35.             <artifactId>webapp-runner</artifactId>
  36.             <version>9.0.8.1</version>
  37.             <scope>provided</scope>
  38.         </dependency>
  39.         <dependency>
  40.             <groupId>junit</groupId>
  41.             <artifactId>junit</artifactId>
  42.             <version>4.11</version>
  43.             <scope>test</scope>
  44.         </dependency>
  45.         <!--引入javaEE包 -->
  46.         <dependency>
  47.             <groupId>javax</groupId>
  48.             <artifactId>javaee-api</artifactId>
  49.             <version>${javaee.version}</version>
  50.             <scope>provided</scope>
  51.         </dependency>
  52.  
  53.         <!--spring依赖日志包 -->
  54.         <dependency>
  55.             <groupId>commons-logging</groupId>
  56.             <artifactId>commons-logging</artifactId>
  57.             <version>${commons-logging.version}</version>
  58.         </dependency>
  59.  
  60.  
  61.         <!--springMVC 相关包 -->
  62.         <dependency>
  63.             <groupId>org.springframework</groupId>
  64.             <artifactId>spring-web</artifactId>
  65.             <version>${spring-web.version}</version>
  66.         </dependency>
  67.         <!--spring context扩展支持,用于mvc方面 -->
  68.         <dependency>
  69.             <groupId>org.springframework</groupId>
  70.             <artifactId>spring-context-support</artifactId>
  71.             <version>${spring.version}</version>
  72.         </dependency>
  73.         <dependency>
  74.             <groupId>org.springframework</groupId>
  75.             <artifactId>spring-webmvc</artifactId>
  76.             <version>${spring-webmvc.version}</version>
  77.         </dependency>
  78.         <!--springMVC 与前台交互json数据时需要用到jar包 -->
  79.         <!-- Json自动转换 -->
  80.         <dependency>
  81.             <groupId>com.fasterxml.jackson.core</groupId>
  82.             <artifactId>jackson-databind</artifactId>
  83.             <version>${jackson.version}</version>
  84.         </dependency>
  85.         <dependency>
  86.             <groupId>com.fasterxml.jackson.dataformat</groupId>
  87.             <artifactId>jackson-dataformat-xml</artifactId>
  88.             <version>${jackson.version}</version>
  89.         </dependency>
  90.         <dependency>
  91.             <groupId>com.fasterxml.jackson.core</groupId>
  92.             <artifactId>jackson-core</artifactId>
  93.             <version>${jackson.version}</version>
  94.         </dependency>
  95.         <dependency>
  96.             <groupId>com.fasterxml.jackson.core</groupId>
  97.             <artifactId>jackson-annotations</artifactId>
  98.             <version>${jackson.version}</version>
  99.         </dependency>
  100.  
  101.  
  102.  
  103.         <!--spring核心包 -->
  104.         <dependency>
  105.             <groupId>org.springframework</groupId>
  106.             <artifactId>spring-context</artifactId>
  107.             <version>${spring-context.version}</version>
  108.         </dependency>
  109.         <dependency>
  110.             <groupId>org.springframework</groupId>
  111.             <artifactId>spring-core</artifactId>
  112.             <version>${spring-core.version}</version>
  113.         </dependency>
  114.         <dependency>
  115.             <groupId>org.springframework</groupId>
  116.             <artifactId>spring-beans</artifactId>
  117.             <version>${spring-beans.version}</version>
  118.         </dependency>
  119.         <dependency>
  120.             <groupId>org.springframework</groupId>
  121.             <artifactId>spring-expression</artifactId>
  122.             <version>${spring-expression.version}</version>
  123.         </dependency>
  124.  
  125.  
  126.         <!--spring mybatis整合包 -->
  127.         <!--Mybatis数据库 -->
  128.         <dependency>
  129.             <groupId>org.mybatis</groupId>
  130.             <artifactId>mybatis-spring</artifactId>
  131.             <version>${mybatis-spring.version}</version>
  132.         </dependency>
  133.         <dependency>
  134.             <groupId>org.mybatis</groupId>
  135.             <artifactId>mybatis</artifactId>
  136.             <version>${mybatis.version}</version>
  137.         </dependency>
  138.         <dependency>
  139.             <groupId>mysql</groupId>
  140.             <artifactId>mysql-connector-java</artifactId>
  141.             <version>${mysql-connector-java.version}</version>
  142.         </dependency>
  143.         <!-- 数据库连接池druid -->
  144.         <dependency>
  145.             <groupId>com.alibaba</groupId>
  146.             <artifactId>druid</artifactId>
  147.             <version>1.1.9</version>
  148.         </dependency>
  149.         <dependency>
  150.             <groupId>org.springframework</groupId>
  151.             <artifactId>spring-jdbc</artifactId>
  152.             <version>${spring.version}</version>
  153.         </dependency>
  154.  
  155.  
  156.         <!--其他spring包 -->
  157.         <!--切面包 -->
  158.         <dependency>
  159.             <groupId>org.springframework</groupId>
  160.             <artifactId>spring-aop</artifactId>
  161.             <version>${spring.version}</version>
  162.         </dependency>
  163.         <!--事务包 -->
  164.         <dependency>
  165.             <groupId>org.springframework</groupId>
  166.             <artifactId>spring-tx</artifactId>
  167.             <version>${spring.version}</version>
  168.         </dependency>
  169.         <!--代理包 -->
  170.         <dependency>
  171.             <groupId>org.aspectj</groupId>
  172.             <artifactId>aspectjweaver</artifactId>
  173.             <version>${aspectjweaver.version}</version>
  174.         </dependency>
  175.  
  176.  
  177.  
  178.         <!-- 权限 -->
  179.         <dependency>
  180.             <groupId>org.apache.shiro</groupId>
  181.             <artifactId>shiro-spring</artifactId>
  182.             <version>${shiro.version}</version>
  183.         </dependency>
  184.         <dependency>
  185.             <groupId>org.apache.shiro</groupId>
  186.             <artifactId>shiro-core</artifactId>
  187.             <version>${shiro.version}</version>
  188.         </dependency>
  189.         <dependency>
  190.             <groupId>org.apache.shiro</groupId>
  191.             <artifactId>shiro-web</artifactId>
  192.             <version>${shiro.version}</version>
  193.         </dependency>
  194.         <dependency>
  195.             <groupId>org.apache.shiro</groupId>
  196.             <artifactId>shiro-ehcache</artifactId>
  197.             <version>${shiro.version}</version>
  198.         </dependency>
  199.   </dependencies>
  200.   <build>
  201.     <finalName>maven_test3</finalName>
  202.     <pluginManagement><!-- lock down plugins versions to avoid using Maven
  203.                 defaults (may be moved to parent pom) -->
  204.             <plugins>
  205.                 <plugin>
  206.                     <artifactId>maven-clean-plugin</artifactId>
  207.                     <version>3.1.0</version>
  208.                 </plugin>
  209.                 <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
  210.                 <plugin>
  211.                     <artifactId>maven-resources-plugin</artifactId>
  212.                     <version>3.0.2</version>
  213.                 </plugin>
  214.                 <plugin>
  215.                     <artifactId>maven-compiler-plugin</artifactId>
  216.                     <version>3.8.0</version>
  217.                 </plugin>
  218.                 <plugin>
  219.                     <artifactId>maven-surefire-plugin</artifactId>
  220.                     <version>2.22.1</version>
  221.                 </plugin>
  222.                 <plugin>
  223.                     <artifactId>maven-war-plugin</artifactId>
  224.                     <version>3.2.2</version>
  225.                 </plugin>
  226.                 <plugin>
  227.                     <artifactId>maven-install-plugin</artifactId>
  228.                     <version>2.5.2</version>
  229.                 </plugin>
  230.                 <plugin>
  231.                     <artifactId>maven-deploy-plugin</artifactId>
  232.                     <version>2.8.2</version>
  233.                 </plugin>
  234.                 <plugin>
  235.                     <groupId>org.apache.maven.plugins</groupId>
  236.                     <artifactId>maven-compiler-plugin</artifactId>
  237.                     <version>3.1</version>
  238.                     <configuration>
  239.                         <source>1.8</source>
  240.                         <target>1.8</target>
  241.                         <webResources>
  242.                             <resource>
  243.                                 <!-- this is relative to the pom.xml directory -->
  244.                                 <directory>/src/main/webapp/WEB-INF/web.xml</directory>
  245.                             </resource>
  246.                         </webResources>
  247.                     </configuration>
  248.                 </plugin>
  249.                 <!-- https://t.codebug.vip/questions-1858600.htm -->
  250.                 <!-- mvn org.codehaus.cargo:cargo-maven2-plugin:run -->
  251.                 <plugin>
  252.                     <groupId>org.codehaus.cargo</groupId>
  253.                     <artifactId>cargo-maven2-plugin</artifactId>
  254.                     <version>1.7.6</version>
  255.                       <configuration>
  256.                         <container>
  257.                           <containerId>tomcat9x</containerId>
  258.                           <type>embedded</type>
  259.                         </container>
  260.                         <configuration>
  261.                             <properties>
  262.                                 <cargo.servlet.port>8081</cargo.servlet.port>
  263.                             </properties>
  264.                         </configuration>
  265.                       </configuration>
  266.                 </plugin>
  267.             </plugins>
  268.         </pluginManagement>
  269.   </build>
  270. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement