码迷,mamicode.com
首页 > 其他好文 > 详细

Maven Super POM

时间:2016-05-19 14:47:37      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

Maven super POM defines some properties.

Three ways to find it

  • ${M2_HOME}/lib/maven-model-builder-3.0.3.jar.

   Nevigate to org/apache/maven/model

  • Maven Github project. 

       https://github.com/apache/maven/blob/trunk/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml#L53

  • Maven POM reference

   http://maven.apache.org/pom.html#The_Super_POM

Important Properties

<project>
    ...
    <build>
        <directory>${project.basedir}/target</directory>
        <outputDirectory>${project.build.directory}/classes</outputDirectory>
        <finalName>${project.artifactId}-${project.version}</finalName>
        <testOutputDirectory>${project.build.directory}/test-classes</testOutputDirectory>
        <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
        <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
        <testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
        <resources>
            <resource>
                <directory>${project.basedir}/src/main/resources</directory>
            </resource>
        </resources>
        <testResources>
            <testResource>
                <directory>${project.basedir}/src/test/resources</directory>
            </testResource>
        </testResources>
        ...
    </build>
    ...
</project>

 

Maven Super POM

标签:

原文地址:http://www.cnblogs.com/qingwen/p/5508456.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!