zoukankan      html  css  js  c++  java
  • Maven 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/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <!--反写的公司网址+项目名-->
      <groupId>cn.o</groupId>
      <!--项目名+模块名-->
      <artifactId>scm-standard</artifactId>
      <!--默认是jar,可以是pom,war,zip-->
      <packaging>war</packaging>
      <!--第一个0表示大版本号
        第二个0表示分支版本号
        第三个0表示小版本号
        snapshot:快照
        alpha:内部测试
        beta:公测
        release:稳定
        ga正式公布
      ---->
      <version>0.0.1-SNAPSHOT</version>
      <!--项目名称-->
      <name>scm-standard</name>
      <url>http://maven.apache.org</url>
      
      <properties>
            <!--指定Maven用什么编码来读取源码及文档 -->
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            <!--指定Maven用什么编码来呈现站点的HTML文件 -->
            <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        </properties>
        <!-- 指定maven仓库地址 59.42.53.226 -->
        <repositories>
            <repository>
                <id>nexus</id>
                <name>Team Nexus Repository</name>
                <url>http://59.42.53.226:8888/nexus/content/groups/public</url>
            </repository>
    
            <repository>
                <id>jwt</id>
                <name>Team jwt Repository</name>
                <url>http://repo1.maven.org/maven2/</url>
            </repository>
        </repositories>
    
    
        <pluginRepositories>
            <pluginRepository>
                <id>nexus</id>
                <name>Team Nexus Repository</name>
                <url>http://59.42.53.226:8888/nexus/content/groups/public</url>
            </pluginRepository>
        </pluginRepositories>
      <dependencies>
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>3.8.1</version>
          <scope>test</scope>
        </dependency>
        <dependency>
      <groupId>cn.o</groupId>
      <artifactId>activation</artifactId>
      <version>1.1</version>
        </dependency>
      </dependencies>
    <!--插件列表-->
      <build>
        <finalName>scm-standard</finalName>
          <plugins>
              <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-compiler-plugin</artifactId>
                  <configuration>
                      <source>1.6</source>
                      <target>1.6</target>
                  </configuration>
              </plugin>
          </plugins>
      </build>
    </project>
  • 相关阅读:
    maven_Error building POM (may not be this project's POM)错误
    jmeter经验---java 追加写入代码一例
    java I/O Stream 代码学习总结
    java 布尔值一种赋值方法
    Spring cloud config 使用gitHub或者gitee连接
    linux/mac下一键删除下载失败的maven jar包
    MYSQL主从复制制作配置方案
    centos7 下解决mysql-server找不到安装包问题
    基于存储过程的百万级测试数据自动生成
    mysql慢查询,死锁解决方案
  • 原文地址:https://www.cnblogs.com/zyxiaohuihui/p/8280536.html
Copyright © 2011-2022 走看看