Maven的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>反写的公司网址+项目名groupId>
  
  <artifactId>项目名+模块名artifactId>
  
  <version>0.0.1-SNAPSHOTversion>
  
  <packaging>jarpackaging>

  
  <name>name>
  
  <url>http://maven.apache.orgurl>
  
  <description>description>
  
  <developers>developers>
  
  <licenses>licenses>
  
  <organization>organization>

  
  <properties>
    <project.build.sourceEncoding>UTF-8project.build.sourceEncoding>
  properties>

  
  <dependencies>
    <dependency>
      
      <groupId>junitgroupId>
      <artifactId>junitartifactId>
      <version>3.8.1version>
      
      <type>type>
      
      <scope>testscope>
      
      <optional>optional>
      
      <exclusions>
        <exclusion>
            <groupId>groupId>
            <artifactId>artifactId>
        exclusion>
      exclusions>
    dependency>
  dependencies>

  
  <dependencyManagement>
    <dependencies>
        <dependency>dependency>
    dependencies>
  dependencyManagement>

  
  <build>
    
    <plugins>
        <plugin>
            <groupId>groupId>
            <artifactId>artifactId>
            <version>version>
        plugin>   
    plugins>
  build>

  
  <parent>
    <groupId>groupId>
    <artifactId>artifactId>
    <version>version>
  parent>

  
  <modules>
    <module>module>
  modules>
project>

你可能感兴趣的:(Maven)