
<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>org.codehaus.groovy.modules.scriptom</groupId>
    <artifactId>scriptom-module-pom</artifactId>
    <packaging>pom</packaging>
    <name>Scriptom COM Scripting</name>
    <version>1.6.0</version>
    <description>Windows COM scripting for Groovy.  Based on the JACOB (Java COM Bridge) library for Java, with syntax that is closer to VBScript.</description>
    <prerequisites>
        <maven>2.0.9</maven>
    </prerequisites>
    <modules>
      	<module>scriptom</module>
		<module>scriptom-office-2k3</module>
		<module>scriptom-wbem</module>
		<module>scriptom-sapi</module>
		<module>scriptom-wsh</module>
		<module>scriptom-ie-6</module>
		<module>scriptom-scripting</module>
		<module>scriptom-all-assembly</module>
    </modules>

    <url>http://groovy.codehaus.org/COM+Scripting</url>

    <inceptionYear>2009</inceptionYear>

    <organization>
        <name>Groovy</name>
        <url>http://groovy.codehaus.org</url>
    </organization>

    <mailingLists>
        <mailingList>
            <name>Development List</name>
            <subscribe>dev-subscribe@groovy.codehaus.org</subscribe>
            <unsubscribe>dev-unsubscribe@groovy.codehaus.org</unsubscribe>
            <post>dev@groovy.codehaus.org</post>
            <archive>http://archive.groovy.codehaus.org/dev</archive>
        </mailingList>
        <mailingList>
            <name>User List</name>
            <subscribe>user-subscribe@groovy.codehaus.org</subscribe>
            <unsubscribe>user-unsubscribe@groovy.codehaus.org</unsubscribe>
            <post>user@groovy.codehaus.org</post>
            <archive>http://archive.groovy.codehaus.org/user</archive>
        </mailingList>
        <mailingList>
            <name>Commits List</name>
            <subscribe>scm-subscribe@groovy.codehaus.org</subscribe>
            <unsubscribe>scm-unsubscribe@groovy.codehaus.org</unsubscribe>
            <archive>http://archive.groovy.codehaus.org/scm</archive>
        </mailingList>
    </mailingLists>
    
    <issueManagement>
        <system>jira</system>
        <url>http://jira.codehaus.org/browse/GMOD</url>
    </issueManagement>
    
    <scm>
        <connection>scm:svn:http://svn.codehaus.org/groovy/modules/scriptom/trunk</connection>
        <developerConnection>scm:svn:https://svn.codehaus.org/groovy/modules/scriptom/trunk</developerConnection>
        <url>http://fisheye.codehaus.org/browse/groovy/modules/scriptom/trunk</url>
    </scm>
    
    <distributionManagement>
        <repository>
            <id>codehaus.org</id>
            <name>Groovy Central Repository</name>
            <url>dav:https://dav.codehaus.org/repository/groovy</url>
        </repository>
        <snapshotRepository>
            <id>codehaus.org.snapshots</id>
            <name>Groovy Central Development Repository</name>
            <url>dav:https://dav.codehaus.org/snapshots.repository/groovy</url>
        </snapshotRepository>
        <site>
            <id>codehaus.org.snapshots</id>
            <name>Groovy Website</name>
            <url>dav:https://dav.codehaus.org/groovy/scriptom-generated</url>
        </site>
    </distributionManagement>
    <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>
            </testResource>
            <testResource>
                <directory>${project.build.directory}/test-resources</directory>
            </testResource>
        </testResources>
        
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-webdav</artifactId>
                <version>1.0-beta-2</version>
            </extension>
        </extensions>

        <defaultGoal>install</defaultGoal>

        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>2.4</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.groovy.maven</groupId>
                    <artifactId>gmaven-plugin</artifactId>
                    <version>1.0-rc-5</version>  
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.4.2</version>                    
                </plugin>
            </plugins>
        </pluginManagement>        
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <quiet>true</quiet>
                    <links>
                        <link>http://java.sun.com/javase/6/docs/api</link>
                    </links>
                </configuration>
                <executions>
                    <execution>
                        <id>Add JavaDoc Artifact</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>   
            </plugin>             
            <plugin>
                <!--  Download sources that are viewable in eclipse. -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-eclipse-plugin</artifactId>
                <configuration>
                    <downloadSources>true</downloadSources>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.groovy.maven</groupId>
                <artifactId>gmaven-plugin</artifactId>
                <configuration>
                    <providerSelection>1.6</providerSelection>
                </configuration> 
                <executions>
                    <execution>
                        <goals>
                            <goal>generateStubs</goal>
                            <goal>compile</goal>
                            <goal>generateTestStubs</goal>
                            <goal>testCompile</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>Add JACOB support</id>
                        <phase>validate</phase>
                        <goals><goal>execute</goal></goals>
                        <configuration>
                            <source>
                            <![CDATA[
                                import com.jacob.com.LibraryLoader
								
                                File testResources = new File(project.build.directory + '/test-resources')
                                testResources.mkdirs()
								File dll = project.artifacts.find {it.id.startsWith("net.sf.jacob-project:jacob:dll:${LibraryLoader.shouldLoad32Bit()?'x86':'x64'}:")}.file
                                new File(testResources, '/jacob-dll-path.properties').withWriter {it << 'jacob.dll.path=' + dll.canonicalPath.replace('\\', '/')}
                            ]]>
                            </source>
                        </configuration>
                    </execution>
                </executions> 
            </plugin>         
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireJavaVersion>
                                    <version>[1.6,1.6.0-99]</version>
                                </requireJavaVersion>
                                <requireMavenVersion>
                                    <version>[2.0.9,)</version>
                                </requireMavenVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>Add Source Artifact</id>                      
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>   
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>net.sf.jacob-project</groupId>
            <artifactId>jacob</artifactId>
            <version>1.14.3</version>
            <type>jar</type>
        </dependency>                     
        <dependency>
            <groupId>net.sf.jacob-project</groupId>
            <artifactId>jacob</artifactId>
            <version>1.14.3</version>
            <type>dll</type>
            <classifier>x64</classifier>
            <scope>provided</scope>
        </dependency> 
        <dependency>
            <groupId>net.sf.jacob-project</groupId>
            <artifactId>jacob</artifactId>
            <version>1.14.3</version>
            <type>dll</type>
            <classifier>x86</classifier>
            <scope>provided</scope>
        </dependency> 
    </dependencies>
    <developers>
        <developer>
            <id>jasonsmith</id>
            <name>Jason Smith</name>
            <email>jsmith@infotrustgroup.com</email>
            <roles>
                <role>Project Lead</role>
                <role>Developer</role>
            </roles>
        </developer> 
        <developer>
            <id>?</id>
            <name>Guillaume Laforge</name>
            <roles><role>Developer</role></roles>
        </developer> 
		<developer>
			<id>?</id>
            <name>Dierk Koenig</name>
            <roles><role>Developer</role></roles>
        </developer>
        <developer>
        	<id>?</id>
            <name>Marc Guillemot</name>
            <roles><role>Developer</role></roles>
        </developer>
    </developers>
    <reporting>
	    <plugins>
	        <plugin>
	            <groupId>org.apache.maven.plugins</groupId>
	            <artifactId>maven-javadoc-plugin</artifactId>
		    </plugin>
		    <plugin>
		        <groupId>org.apache.maven.plugins</groupId>
		        <artifactId>maven-surefire-report-plugin</artifactId>
		        <version>2.4.2</version>
      		</plugin>
	    </plugins>
    </reporting>
</project>