<!--
  ~ Embedded Jopr Project
  ~ Copyright (C) 2006-2010 Red Hat, Inc.
  ~ All rights reserved.
  ~
  ~ This program is free software; you can redistribute it and/or modify
  ~ it under the terms of the GNU Lesser General Public License as
  ~ published by the Free Software Foundation; either version 2.1 of
  ~ the License, or (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  ~ Lesser General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Lesser General Public
  ~ License along with this program; if not, write to the Free Software
  ~ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  -->
<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>

    <!-- NOTE: We extend the RHQ parent pom, because we essentially want all the same
               base settings - plugins, dependencies, etc. -->
    <parent>
        <groupId>org.rhq</groupId>
        <artifactId>rhq-parent</artifactId>
        <version>3.0.0</version>
    </parent>

    <groupId>org.jboss.jopr</groupId>
    <artifactId>jopr-embedded-parent</artifactId>
    <version>1.4.0.SP2</version>
    <packaging>pom</packaging>
    <name>Embedded Jopr</name>
    <description>a web application that provides administration and monitoring of the app server instance to which it is deployed</description>
    <url>http://jboss.org/embjopr/</url>
    <inceptionYear>2007</inceptionYear>

    <organization>
        <name>JBoss, by Red Hat</name>
        <url>http://jboss.com/</url>
    </organization>
    
    <scm>
        <connection>scm:svn:http://anonsvn.jboss.org/repos/embjopr/tags/EmbJopr_1_4_0_SP2</connection>
        <developerConnection>scm:svn:https://svn.jboss.org/repos/embjopr/tags/EmbJopr_1_4_0_SP2</developerConnection>
        <url>http://fisheye.jboss.org/browse/EMBJOPR/tags/EmbJopr_1_4_0_SP2</url>
    </scm>
    
    <issueManagement>
        <system>jira</system>
        <url>https://jira.jboss.org/jira/browse/EMBJOPR</url>
    </issueManagement>


    <properties>
        <jbas4.finalName>admin-console</jbas4.finalName>
        <jbas5.finalName>admin-console</jbas5.finalName>
        <jbas6.finalName>admin-console</jbas6.finalName>

        <!-- dependency groupIds -->
        <rhq.groupId>org.rhq</rhq.groupId>
        <jopr.groupId>org.jboss.on</jopr.groupId>
        <seam.groupId>org.jboss.seam</seam.groupId>
        <seam.embedded.groupId>org.jboss.seam.embedded</seam.embedded.groupId>
        
        <!-- dependency versions -->
        <jaxb.version>2.1.9</jaxb.version>
        <jboss.web.version>3.0.0-beta-2</jboss.web.version>        
        <richfaces.version>3.3.3.Final</richfaces.version>
        <rhq.version>3.0.0</rhq.version>
        <jopr.version>${rhq.version}</jopr.version>
        <seam.version>2.1.0.SP1</seam.version>
        <seam.embedded.version>beta3.SP3</seam.embedded.version>
        <!-- This is a special patched version of not-yet-released Facelets 1.1.15,
             which is required in order for Facelets to work in AS5.
             (see https://jira.jboss.org/jira/browse/JBSEAM-3066) -->
        <facelets.version>1.1.15.B1</facelets.version>
    </properties>

                    
    <build>
        <plugins>

            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <useCache>false</useCache>
                    
                    <archive>
                        <manifest>
                           <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                           <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                        </manifest>
                        <manifestEntries>
                           <!-- TODO: This isn't working, because the build number plugin hasn't run yet
                                      at the time the buildNumber prop below is resolved. -->
                           <Build-Number>${buildNumber}</Build-Number>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
            
            <plugin>
                 <artifactId>maven-antrun-plugin</artifactId>
                 <dependencies>
                    <dependency>
                      <groupId>org.apache.ant</groupId>
                      <artifactId>ant-nodeps</artifactId>
                      <version>1.7.1</version>
                    </dependency>
                    <dependency>
                      <groupId>org.apache.ant</groupId>
                      <artifactId>ant-apache-regexp</artifactId>
                      <version>1.7.1</version>
                    </dependency>
                    <dependency>
                      <artifactId>jakarta-regexp</artifactId>
                      <groupId>jakarta-regexp</groupId>
                      <version>1.4</version>
                    </dependency>
                 </dependencies>                      
             </plugin>
     
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>generate-build-number-properties</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                        <configuration>
                            <executable>git</executable>
                            <skip>true</skip>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>properties-maven-plugin</artifactId>
            <executions>       
              <execution>
                <id>read-build-properties</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>read-project-properties</goal>
                </goals>
                <configuration>
                  <files />
                </configuration>
              </execution>
            </executions>
          </plugin>
       
        </plugins>
    </build>


    <modules>
        <module>core</module>
        <!-- Comment out the jbas4 and jbas5 modules, since we currently
             only use trunk to build the AS6 admin console. -->
        <!--<module>jbas4</module>-->
        <!--<module>jbas5</module>-->
        <module>jbas6</module>
        <!-- Removed until we solve the "Cannot find parent: org.jboss.jopr:jopr-embedded-parent" problem. -->
        <!--<module>jsfunit</module> -->
    </modules>


    <repositories>

        <!-- TODO: Do we still need this? -->
        <repository>
           <id>jboss-old</id>
           <name>JBoss Old</name>
           <url>https://repository.jboss.org/maven2/</url>
           <snapshots>
             <enabled>false</enabled>
           </snapshots>
        </repository>

        <!-- for the RHQ jars -->
        <repository>
           <id>jboss-releases</id>
           <name>JBoss Releases</name>
           <url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
           <snapshots>
             <enabled>false</enabled>
           </snapshots>
        </repository>

    </repositories>

</project>
