maven-pom文件说明

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/xsd/maven-4.0.0.xsd">

    
    <modelVersion>4.0.0modelVersion>

    
    <groupId>com.examplegroupId>
    
    <artifactId>bootdemoartifactId>
    
    <version>0.0.1-SNAPSHOTversion>
    
    <packaging>jarpackaging>
    
    <name>bootdemoname>
    
    <url>http://maven.apache.orgurl>

    
    <description>A maven project for studying maven and springBoot.description>

    
    <prerequisites>
        
        <maven/>
    prerequisites>
    <properties>
      <project.build.sourceEncoding>UTF-8project.build.sourceEncoding>
    properties>

    
    <parent>
        
        <groupId>org.springframework.bootgroupId>
        
        <artifactId>spring-boot-starter-parentartifactId>
        
        <version>1.4.0.RELEASEversion>
    parent>

    
    <dependencies>
        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starter-webartifactId>
        dependency>
        <dependency>
            <groupId>junitgroupId>
            <artifactId>junitartifactId>
            
            <scope>testscope>
        dependency>
    dependencies>

    
    <build>
        
        <plugins>
            <plugin>
                <groupId>org.springframework.bootgroupId>
                <artifactId>spring-boot-maven-pluginartifactId>
            plugin>
        plugins>
    build>
project>

你可能感兴趣的:(maven,xml)