通过Webapp骨架创建Maven的项目,所以不用全部复制,若是使用AspectJ的话,就直接复制我标记的依赖就可以了。

<?xml version="1.0" encoding="UTF-8"?>

<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.example</groupId>
   <artifactId>Spring1</artifactId>
   <version>1.0-SNAPSHOT</version>
   <packaging>war</packaging>

<name>Spring1 Maven Webapp</name>
   <!-- FIXME change it to the project's website -->
   <url>http://www.example.com</url>

<properties>
       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
       <maven.compiler.source>1.7</maven.compiler.source>
       <maven.compiler.target>1.7</maven.compiler.target>
   </properties>

<dependencies>

       <!--AspectJ 开始-->
       <dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-aspects</artifactId>
           <version>5.2.7.RELEASE</version>
       </dependency>

<dependency>
           <groupId>org.aspectj</groupId>
           <artifactId>aspectjtools</artifactId>
           <version>1.9.5</version>
       </dependency>

<dependency>
           <groupId>aopalliance</groupId>
           <artifactId>aopalliance</artifactId>
           <version>1.0</version>
       </dependency>

<dependency>
           <groupId>org.aspectj</groupId>
           <artifactId>aspectjweaver</artifactId>
           <version>1.9.0</version>
       </dependency>

<dependency>
           <groupId>cglib</groupId>
           <artifactId>cglib</artifactId>
           <version>3.3.0</version>
       </dependency>
       <!--AspectJ 结束-->

<dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-aop</artifactId>
           <version>4.3.14.RELEASE</version>
       </dependency>

<dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
           <version>4.12</version>
           <scope>test</scope>
       </dependency>

<dependency>
           <groupId>commons-logging</groupId>
           <artifactId>commons-logging</artifactId>
           <version>1.2</version>
       </dependency>

<dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-beans</artifactId>
           <version>4.3.14.RELEASE</version>
       </dependency>

<dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-context</artifactId>
           <version>4.3.14.RELEASE</version>
       </dependency>

<dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-core</artifactId>
           <version>4.3.14.RELEASE</version>
       </dependency>

<dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-expression</artifactId>
           <version>4.3.14.RELEASE</version>
       </dependency>

<dependency>
           <groupId>com.alibaba</groupId>
           <artifactId>druid</artifactId>
           <version>1.1.23</version>
       </dependency>

<dependency>
           <groupId>mysql</groupId>
           <artifactId>mysql-connector-java</artifactId>
           <version>5.1.49</version>
       </dependency>

</dependencies>


   <build>
       <finalName>Spring1</finalName>
       <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
           <plugins>
               <plugin>
                   <artifactId>maven-clean-plugin</artifactId>
                   <version>3.1.0</version>
               </plugin>
               <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
               <plugin>
                   <artifactId>maven-resources-plugin</artifactId>
                   <version>3.0.2</version>
               </plugin>
               <plugin>
                   <artifactId>maven-compiler-plugin</artifactId>
                   <version>3.8.0</version>
               </plugin>
               <plugin>
                   <artifactId>maven-surefire-plugin</artifactId>
                   <version>2.22.1</version>
               </plugin>
               <plugin>
                   <artifactId>maven-war-plugin</artifactId>
                   <version>3.2.2</version>
               </plugin>
               <plugin>
                   <artifactId>maven-install-plugin</artifactId>
                   <version>2.5.2</version>
               </plugin>
               <plugin>
                   <artifactId>maven-deploy-plugin</artifactId>
                   <version>2.8.2</version>
               </plugin>
           </plugins>
       </pluginManagement>
   </build>
</project>

©著作权归作者所有:来自51CTO博客作者mb6066e453ca35b的原创作品,如需转载,请注明出处,否则将追究法律责任

更多相关文章

  1. 高可用数据库主从复制延时的解决
  2. 探索 Linux 上的 /run
  3. mySql 在Linux上安装
  4. 架构秘笈:移花接木。使用mysql模拟redis
  5. 第4部分- Linux ARM汇编首个程序
  6. 想把Java代码写的更漂亮么?了解一下Try吧
  7. 将java进程转移到“解剖台”之前,法医都干了什么?
  8. 牛气的JavaScript,让雪花算法成为空气
  9. Centos 如何安装 MongoDB

随机推荐

  1. 创建56个民族的sql语句
  2. SQL恢复XP_CMDSHLL 以及XPLOG70.DLL被删
  3. 使用带有派生列的SQL排名函数
  4. vs2012连接sql2012,SQLDriverConnect问题
  5. MySQL数据查询之单表查询
  6. 5 - SQL Server 2008 之 四则运算、比较
  7. Mysql查询需要太多时间来执行。
  8. 做了一个工程(VB+SQLServer)后,老板又要我将
  9. kali攻防第6章 SQLMAP介绍及ASP网站渗透
  10. sql2000 数据库文件突然丢失