• 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">
    
        <!-- 指定当前pom的版本信息 -->
        <modelVersion>4.0.0</modelVersion>
    
        <!-- 项目包名  -->
        <groupId>com.imooc.maven02</groupId>
        <!-- 模块名称 -->
        <artifactId>maven02-model</artifactId>
        <!-- 当前项目的版本号 -->
        <version>0.0.1</version>
        <!-- 默认是jar, 还可以是war zip pom -->
        <packaging>jar</packaging>
        <!--  项目名称 -->
        <name></name>
        <!--  项目地址 -->
        <url></url>
        <developers></developers>
        <licenses></licenses>
    
    
        <dependencies>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.10</version>
                <!-- 指定依赖所运行的范围, 三种classpath范围:编译、运行、测试。有点像npm中的dependency和devDependency的概念 -->
                <scope>test</scope>
                <!-- 设置依赖是否可选 -->
                <optional></optional>
                <!-- 排除依赖 -->
                <exclusions>
                    <exclusion></exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.imooc.maven01</groupId>
                <artifactId>maven01-model</artifactId>
                <version>0.0.1</version>
            </dependency>
        </dependencies>
    
        <!-- 依赖管理,项目不引入这里的依赖,这里的依赖只提供子项目继承所用 -->
        <dependencyManagement>
        </dependencyManagement>
    
        <build>
            <!-- 插件列表 -->
            <plugins>
            </plugins>
        </build>
    
        <!-- 用于指定为其他jar包的容器,作为父类 -->
    <!--     <parent>
            项目包名 
            <groupId>com.imooc.maven02</groupId>
            模块名称
            <artifactId>maven02-model2</artifactId>
            当前项目的版本号
            <version>0.0.1</version>
        </parent> -->
        
        <!-- 指定多个模块一起编译进仓库 -->
        <modules></modules>
    
    
    </project> 
  • 相关阅读:
    HttpContext.GetOwinContext().Authentication 报错 解决办法
    owin Claims-based认证登录实现
    angularjs初识ng-app、ng-model、ng-repeat指令
    SpringBoot配置slf4j logback-spring.xml日志
    idea时间注释模版
    oracel截取字符串
    win10官网下载地址
    使用HttpWebRequest实现basic身份认证
    mybatis常用jdbcType数据类型与mysql的类型对照
    修改IntelliJ IDEA 默认配置路径
  • 原文地址:https://www.cnblogs.com/linux-centos/p/10723434.html
Copyright © 2020-2023  润新知