码迷,mamicode.com
首页 > 其他好文 > 详细

Maven学习笔记

时间:2018-01-03 22:38:47      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:uil   aging   hot   XML   class   targe   mave   log   end   

1、完整的pom参考

<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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.csdn</groupId>
  <artifactId>mvn9</artifactId>
  <packaging>war</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>mvn9 Maven Webapp</name>
  <url>http://maven.apache.org</url>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <finalName>mvn9</finalName>
    <plugins>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.1</version>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>
<!--         <plugin> -->
<!--             <artifactId>maven-war-plugin</artifactId> -->
<!--             <version>2.4</version> -->
<!--         </plugin> -->
    </plugins>
  </build>
</project>

 

Maven学习笔记

标签:uil   aging   hot   XML   class   targe   mave   log   end   

原文地址:https://www.cnblogs.com/george93/p/8185553.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!