Version 3

    This page provides a template for a basic maven pom file.  All fields marked with "####" should be filled in with appropriate values.

     

    <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">
      <modelVersion>4.0.0</modelVersion>
      <groupId>####</groupId
      <artifactId>####</artifactId>
      <name>####</name>
      <version>####</version>
      <description>####</description>
      <licenses>
        <license>
          <name>####</name>
          <url>####</url>
        </license>
      </licenses>
    </project>
    
    

     

    For more information about the format of the pom, such as adding dependencies, see the Maven model.

     

    Here is a complete example pom, from the jboss-test project.  The license information in this example is inherited from the JBoss parent 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/maven-v4_0_0.xsd">
      <parent>
        <groupId>org.jboss</groupId>
        <artifactId>jboss-parent</artifactId>
        <version>4</version>
      </parent>
      <modelVersion>4.0.0</modelVersion>
      <groupId>org.jboss.test</groupId>
      <artifactId>jboss-test</artifactId>
      <packaging>jar</packaging>
      <name>JBoss Test</name>
      <version>1.1.5-SNAPSHOT</version>
      <description>Common test support classes</description>
      <url>http://www.jboss.org</url>
      <scm>
        <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/test/trunk</connection>
        <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/test/trunk</developerConnection>
      </scm>
    
      <properties>
        <version.apache.ant>1.7.0</version.apache.ant>
      </properties>
    
      <build>
        <plugins>
          <!-- Dependency Plugin Configuration -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
          </plugin>      
          <plugin>
            <!-- To call this plugin, use mvn assembly:assembly -->
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.2-beta-1</version>
            <configuration>
              <descriptors>
                <descriptor>src/main/assembly/dist.xml</descriptor>
              </descriptors>
            </configuration>
          </plugin>      
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>        
            <artifactId>maven-release-plugin</artifactId>        
            <configuration>
              <tagBase>https://svn.jboss.org/repos/jbossas/projects/test/tags</tagBase>
            </configuration>
          </plugin>
        </plugins>
      </build>
      
      <dependencies>
         <dependency>
           <groupId>org.apache.ant</groupId>
           <artifactId>ant</artifactId>
           <version>${version.apache.ant}</version>
         </dependency>     
         <dependency>
           <groupId>org.apache.ant</groupId>
           <artifactId>ant-junit</artifactId>
           <version>${version.apache.ant}</version>
         </dependency>
         <dependency>
           <groupId>org.jboss.logging</groupId>
           <artifactId>jboss-logging-spi</artifactId>
           <version>2.0.5.GA</version>
         </dependency>     
         <dependency>
           <groupId>org.jboss.logging</groupId>
           <artifactId>jboss-logging-log4j</artifactId>
           <version>2.0.5.GA</version>
         </dependency>     
         <dependency>
           <groupId>org.jboss</groupId>
           <artifactId>jboss-common-core</artifactId>
           <version>2.2.7.GA</version>
         </dependency>
         <dependency>
            <groupId>jboss.profiler.jvmti</groupId>
            <artifactId>jboss-profiler-jvmti</artifactId>
            <version>1.0.0.CR5</version>
         </dependency>
         <dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
           <version>3.8.1</version>
         </dependency>     
         <dependency>
           <groupId>log4j</groupId>
           <artifactId>log4j</artifactId>
           <version>1.2.14</version>
         </dependency>   
         <dependency>
           <groupId>org.jboss.jbossas</groupId>
           <artifactId>jboss-server-manager</artifactId>
           <version>1.0.3-alpha-2</version>
         </dependency>
       </dependencies>
       
    </project>