<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>
	<artifactId>rtgov-restapi</artifactId>
	<packaging>jar</packaging>
	<name>Overlord RTGov::Docs::REST API</name>

	<parent>
		<groupId>org.overlord.rtgov.docs</groupId>
		<artifactId>parent</artifactId>
		<version>2.0.0.Beta4</version>
	</parent>

    <dependencies>
        <dependency>
			<groupId>org.overlord.rtgov.activity-management</groupId>
			<artifactId>activity</artifactId>
		</dependency>
        <dependency>
			<groupId>org.overlord.rtgov.activity-management</groupId>
			<artifactId>activity-server-rests</artifactId>
            <classifier>sources</classifier>
		</dependency>
        <dependency>
			<groupId>org.overlord.rtgov.active-queries</groupId>
			<artifactId>active-collection</artifactId>
		</dependency>
	    <dependency>
		    <groupId>org.overlord.rtgov.active-queries</groupId>
		    <artifactId>active-collection-rests</artifactId>
            <classifier>sources</classifier>
	    </dependency>
		<dependency>
			<groupId>org.overlord.rtgov.activity-analysis</groupId>
			<artifactId>call-trace</artifactId>
		</dependency>
		<dependency>
			<groupId>org.overlord.rtgov.content.services</groupId>
			<artifactId>call-trace-rests</artifactId>
            <classifier>sources</classifier>
		</dependency>
	    <dependency>
		    <groupId>org.overlord.rtgov.content.services</groupId>
		    <artifactId>service-dependency-rests</artifactId>
            <classifier>sources</classifier>
	    </dependency>
		<dependency>
			<groupId>org.overlord.rtgov.activity-analysis</groupId>
			<artifactId>analytics</artifactId>
		</dependency>
		<dependency>
			<groupId>org.overlord.rtgov.activity-analysis</groupId>
			<artifactId>service-dependency</artifactId>
		</dependency>

		<dependency>
			<groupId>javax</groupId>
			<artifactId>javaee-api</artifactId>
		</dependency>
		<dependency>
			<groupId>org.jboss.spec</groupId>
			<artifactId>jboss-javaee-6.0</artifactId>
			<type>pom</type>
		</dependency>

		<dependency>
			<groupId>org.codehaus.enunciate</groupId>
			<artifactId>enunciate-core</artifactId>
            <scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.codehaus.enunciate</groupId>
			<artifactId>enunciate-core-annotations</artifactId>
            <scope>provided</scope>
		</dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.enunciate</groupId>
                <artifactId>maven-enunciate-plugin</artifactId>
                <!-- check for the latest version -->
                <version>1.28</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>docs</goal>
                        </goals>
                        <configuration> 
                            <configFile>enunciate.xml</configFile>

                            <!-- the directory where to put the docs -->
                            <docsDir>${project.build.directory}/docs</docsDir>
 
                        </configuration>
                    </execution>
                </executions>
            </plugin>
		    <plugin>
		        <artifactId>maven-assembly-plugin</artifactId>
		        <executions>
                    <execution>
                        <id>make-dist</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <finalName>overlord-rtgov-docs-restapi-${project.version}</finalName>
                            <attach>true</attach>
                            <descriptors>
                                <descriptor>src/main/assembly/dist.xml</descriptor>
                            </descriptors>
                            <tarLongFileMode>gnu</tarLongFileMode>
                            <appendAssemblyId>false</appendAssemblyId>
                            <archiverConfig>
                                <defaultDirectoryMode>0755</defaultDirectoryMode>
                            </archiverConfig>
                        </configuration>
                    </execution>
		        </executions>
		    </plugin>      
        </plugins>
    </build>
  
</project>
