<?xml version="1.0" encoding="UTF-8"?>
<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.0</modelVersion>

    <groupId>org.jboss.spring.archetypes</groupId>
    <artifactId>spring-mvc-webapp</artifactId>
    <version>1.0.0.CR6</version>
    <packaging>maven-archetype</packaging>

    <name>JBoss AS7 - Spring MVC Application</name>
   <description>An archetype that generates a starter Spring MVC application with Java EE persistence settings (server bootstrapped JPA, JTA transaction management) for JBoss AS7</description>
   
    <url>http://jboss.org/jbossas</url>

    <scm>
        <connection>scm:git:git@github.com:jboss-eap/wfk-archetypes.git</connection>
        <developerConnection>scm:git:git@github.com:jboss-eap/wfk-archetypes.git</developerConnection>
        <url>scm:git:git@github.com:jboss-eap/wfk-archetypes.git</url>
    </scm>

    <developers>
        <developer>
            <name>Marius Bogoevici</name>
            <email>mariusb@redhat.com</email>
            <organization>Red Hat, Inc.</organization>
            <organizationUrl>http://redhat.com/jboss</organizationUrl>
        </developer>
        <developer>
            <name>Karel Piwko</name>
            <email>kpiwko@redhat.com</email>
            <organization>Red Hat, Inc.</organization>
            <organizationUrl>http://redhat.com/jboss</organizationUrl>
        </developer>
    </developers>
    
    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <build>
       <testResources>
        <testResource>
          <directory>src/test/resources</directory>
          <filtering>true</filtering>
        </testResource>
       </testResources>

       <extensions>
            <extension>
                <groupId>org.apache.maven.archetype</groupId>
                <artifactId>archetype-packaging</artifactId>
                <version>2.1</version>
            </extension>
        </extensions>

        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-archetype-plugin</artifactId>
                    <version>2.2</version>
                </plugin>
            </plugins>
        </pluginManagement>
        

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.1.2</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <properties>
      <enterprise.available>false</enterprise.available>
    </properties>
   
    <profiles>
     <!-- Build with -Penterprise to test against an EAP / WFK repository -->
      <profile>
        <id>enterprise</id>
        <properties>
          <enterprise.available>true</enterprise.available>
        </properties>
      </profile>
    </profiles>
</project>
