<?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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>org.sonatype.oss</groupId>
		<artifactId>oss-parent</artifactId>
		<version>7</version>
	</parent>

	<groupId>li.rudin.mavenjs</groupId>
    <artifactId>requirejs</artifactId>
	<version>2.1.11</version>
	
	<scm>
		<connection>scm:git:git@github.com:mavenjs/requirejs.git</connection>
		<developerConnection>scm:git:git@github.com:mavenjs/requirejs.git</developerConnection>
		<url>git@github.com:mavenjs/requirejs.git</url>
		<tag>HEAD</tag>
	</scm>
	
	<properties>
		<downloadUrl>http://requirejs.org/docs/release/${project.version}/comments</downloadUrl>
	</properties>


    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>wagon-maven-plugin</artifactId>
                <version>1.0-beta-4</version>
                <executions>
                    <execution>
                        <id>main-js</id>
                        <phase>process-resources</phase>
                        <goals>
							<goal>download-single</goal>
						</goals>
                        <configuration>
                            <url>${downloadUrl}</url>
                            <fromFile>require.js</fromFile>
                            <toFile>${project.build.outputDirectory}/js/require.js</toFile>
                        </configuration>
                    </execution>
					
					<execution>
                        <id>text-js</id>
                        <phase>process-resources</phase>
                        <goals>
							<goal>download-single</goal>
						</goals>
                        <configuration>
                            <url>https://raw.github.com/requirejs/text/latest</url>
                            <fromFile>text.js</fromFile>
                            <toFile>${project.build.outputDirectory}/js/text.js</toFile>
                        </configuration>
                    </execution>
					
					<execution>
                        <id>i18n-js</id>
                        <phase>process-resources</phase>
                        <goals>
							<goal>download-single</goal>
						</goals>
                        <configuration>
                            <url>https://raw.github.com/requirejs/i18n/latest</url>
                            <fromFile>i18n.js</fromFile>
                            <toFile>${project.build.outputDirectory}/js/i18n.js</toFile>
                        </configuration>
					</execution>
					
					<execution>
                        <id>domready-js</id>
                        <phase>process-resources</phase>
                        <goals>
							<goal>download-single</goal>
						</goals>
                        <configuration>
                            <url>https://raw.github.com/requirejs/domReady/latest</url>
                            <fromFile>domReady.js</fromFile>
                            <toFile>${project.build.outputDirectory}/js/domReady.js</toFile>
                        </configuration>
                    </execution>
					
					<execution>
                        <id>cs-js</id>
                        <phase>process-resources</phase>
                        <goals>
							<goal>download-single</goal>
						</goals>
                        <configuration>
                            <url>https://github.com/jrburke/require-cs/raw/latest</url>
                            <fromFile>cs.js</fromFile>
                            <toFile>${project.build.outputDirectory}/js/cs.js</toFile>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
	
	<developers>
		<developer>
			<id>Thomas</id>
			<name>Thomas Rudin</name>
			<email>thomas@rudin-informatik.ch</email>
			<roles>
				<role>Project Manager</role>
			</roles>
			<organization>rudin-informatik.ch</organization>
		</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>
</project>
