Maven pom.xml配置详解

POM的全称是“ProjectObjectModel(项目对象模型)”。

pom.xml详解

声明规范

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd">

4.0.0

基本内容

parent

groupId

org.codehaus.mojo

artifactId

my-project

version

1.0-SNAPSHOT

packaging

jar

dependencies

org.apache.maven

maven-artifact

3.8.1

jar

test

 

 

true

spring-core

org.springframework

true

 

dependencyManagement

......

modules

properties

No

 

编译设置

build

install

${basedir}/target

${artifactId}-${version}

    src/main/filters/filter.properties

false

${basedir}/src/main/resources

          configuration.xml

 

          **/*.properties

org.apache.maven.plugins

maven-jar-plugin

2.0

false

true

test

 

 

 

 

 

 

 

 

        

          

          

        

 

 

echodir

verify

run

false

Build Dir: ${project.build.directory}

.................

${basedir}/src/main/java

${basedir}/src/main/scripts

${basedir}/src/test/java

${basedir}/target/classes

${basedir}/target/test-classes

reporting

${basedir}/target/site

false

org.apache.maven.plugins

maven-project-info-reports-plugin

2.7

true

default

项目信息

name

banseon-maven

description

Amavenprojecttostudymaven.

url

http://www.baidu.com/banseon

inceptionYear

licenses

Apache2

http://www.baidu.com/banseon/LICENSE-2.0.txt

repo

Abusiness-friendlyOSSlicense

organization

demo

http://www.baidu.com/banseon

developers

HELLOWORLD

banseon

[email protected]

ProjectManager

Architect

demo

http://hi.baidu.com/banseon

-5

http://tinyurl.com/prv4t

contributors

环境设置

issueManagement

jira

http://jira.baidu.com/banseon

ciManagement

continuum

http://127.0.0.1:8080/continuum

mail

true

true

false

false

[email protected]

mailingLists

User List

[email protected]

[email protected]

[email protected]

http://127.0.0.1/user/

http://base.google.com/base/1/127.0.0.1

scm

scm:svn:http://127.0.0.1/svn/my-project

scm:svn:https://127.0.0.1/svn/my-project

HEAD

http://127.0.0.1/websvn/my-project

prerequisites

2.0.6

repositories

   

    

    

     

     codehausSnapshots

     

     Codehaus Snapshots

     

     

      

      false

      

      always

      

      warn

     

     

     

      

     

     

     http://snapshots.maven.codehaus.org/maven2

     

     default

    

   

pluginRepositories

distributionManagement

true

 

 

true

 

 

banseon-site

businessapiwebsite

scp://svn.baidu.com/banseon:/var/www/localhost/banseon-web

profiles

test

   

   

    

    false

    

    1.5

    

    

     

     Windows XP

     

     Windows

     

     x86

     

     5.1.2600

    

    

    

     

     mavenVersion

     

     2.0.3

    

    

    

     

     ${basedir}/file2.properties

     

     ${basedir}/file1.properties

    

   

......

......

......

 

......


转:http://www.cnblogs.com/zz0412/p/Maven_pom.html

你可能感兴趣的:(Maven)