Example of Maven POM file 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">

    <parent>

        <groupId>pnv-rc</groupId>

        <artifactId>pnv</artifactId>

        <version>1.0</version>

    </parent>



    <modelVersion>4.0.0</modelVersion>

    <groupId>pnv-rc</groupId>

    <artifactId>edsejb</artifactId>

    <packaging>ejb</packaging>

    <version>rc</version>

    <name>eds ejb module</name>

    <url>http://maven.apache.org</url>



    <description> EJB Classes for PNV</description>

    <dependencies>



        <dependency>

            <groupId>db2java</groupId>

            <artifactId>db2java</artifactId>

            <version>1.2</version>

            <type>jar</type>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>drools</groupId>

            <artifactId>drools</artifactId>

            <version>2.0-beta-11</version>

            <type>jar</type>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>commons-betwixt</groupId>

            <artifactId>commons-betwixt</artifactId>

            <version>1.0-alpha-1</version>

            <type>jar</type>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>commons-digester</groupId>

            <artifactId>commons-digester</artifactId>
            <version>1.5</version>

            <type>jar</type>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>commons-discovery</groupId>

            <artifactId>commons-discovery</artifactId>

            <version>20030211.213356</version>

            <type>jar</type>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>commons-jelly</groupId>

            <artifactId>commons-jelly</artifactId>

            <version>20030609.133047</version>

            <type>jar</type>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>commons-jexl</groupId>

            <artifactId>commons-jexl</artifactId>

            <version>1.0-beta-2</version>

            <type>jar</type>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>commons-logging</groupId>

            <artifactId>commons-logging</artifactId>

            <version>1.0.3</version>

            <type>jar</type>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>commons-net</groupId>

            <artifactId>commons-net</artifactId>

            <version>1.0.1</version>

            <type>jar</type>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>jaxrpc</groupId>

            <artifactId>jaxrpc</artifactId>

            <version>1.0</version>

            <type>jar</type>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>jython</groupId>

            <artifactId>jython</artifactId>

            <version>20020827-no-oro</version>

            <type>jar</type>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>log4j</groupId>

            <artifactId>log4j</artifactId>

            <version>1.2.8</version>

            <type>jar</type>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>saaj</groupId>

            <artifactId>saaj</artifactId>

            <version>1.0</version>

            <scope>provided</scope>

            <type>jar</type>

        </dependency>

        <dependency>

            <groupId>soap</groupId>

            <artifactId>soap</artifactId>

            <version>2.3.1</version>

            <scope>provided</scope>

            <type>jar</type>

        </dependency>

        <dependency>

            <groupId>struts</groupId>

            <artifactId>struts</artifactId>

            <version>1.1</version>

            <scope>provided</scope>

            <type>jar</type>

        </dependency>

        <dependency>

            <groupId>xerces</groupId>

            <artifactId>xerces</artifactId>

            <version>2.3.0</version>

            <scope>provided</scope>

            <type>jar</type>

        </dependency>

        <dependency>

            <groupId>xml-apis</groupId>

            <artifactId>xml-apis</artifactId>

            <version>2.0.2</version>

            <scope>provided</scope>

            <type>jar</type>

        </dependency>

    </dependencies>



    <build>

        <sourceDirectory>${basedir}/src/java</sourceDirectory>

        <outputDirectory>target\classes</outputDirectory>


        <testSourceDirectory>${basedir}/src/test</testSourceDirectory>

        <testOutputDirectory>target/classes</testOutputDirectory>



        <resources>
            <resource>

                <directory>src/resources</directory>

            </resource>

            <resource>

                <directory>src</directory>

                <includes>

                    <include>**/*.properties</include>

                    <include>**/*.xml</include>

                    <include>**/*.xmi</include>

                    <include>**/*.qab</include>

                </includes>

            </resource>

        </resources>

        <testResources>

            <testResource>

                <directory>src/test</directory>

            </testResource>

            <testResource>

                <directory>src/test</directory>

                <includes>

                    <include>**/*.properties</include>

                </includes>

            </testResource>

        </testResources>

    </build>

</project>