<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>com.uphyca</groupId>
	<artifactId>android-junit3-extension-support-v4</artifactId>
	<version>0.1</version>
	<packaging>jar</packaging>

	<parent>
		<groupId>com.uphyca</groupId>
		<artifactId>android-junit4-parent</artifactId>
		<version>0.1</version>
	</parent>
	
	<dependencies>
		<dependency>
			<groupId>com.google.android</groupId>
			<artifactId>android</artifactId>
			<version>4.1.1.4</version>
			<scope>provided</scope>
		</dependency>
		
        <dependency>
            <groupId>com.google.android</groupId>
            <artifactId>android-test</artifactId>
            <version>4.1.1.4</version>
            <scope>provided</scope>
        </dependency>
		
        <dependency>
            <groupId>com.google.android</groupId>
            <artifactId>support-v4</artifactId>
            <version>r7</version>
            <scope>provided</scope>
        </dependency>
        
	</dependencies>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>2.5.1</version>
					<configuration>
						<source>1.6</source>
						<target>1.6</target>
						<encoding>utf-8</encoding>
					</configuration>
				</plugin>
            </plugins>
		</pluginManagement>
		<plugins>		    
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
				<version>2.9</version>
				<configuration>
                    <downloadSources>true</downloadSources>
                    <downloadJavadocs>true</downloadJavadocs>
				    <excludes>
				        <exclude>commons-logging:commons-logging</exclude>
				        <exclude>org.apache.httpcomponents:httpclient</exclude>
				        <exclude>org.apache.httpcomponents:httpcore</exclude>
				        <exclude>commons-codec:commons-codec</exclude>
				        <exclude>org.khronos:opengl-api</exclude>
				        <exclude>xerces:xmlParserAPIs</exclude>
				        <exclude>xpp3:xpp3</exclude>
                        <exclude>org.json:json</exclude>
                        <exclude>com.google.android:android</exclude>
                        <exclude>com.google.android:android-test</exclude>
                        <exclude>org.hamcrest:hamcrest-core</exclude>
                        <exclude>junit:junit</exclude>
				    </excludes>
				    <classpathContainersLast>true</classpathContainersLast>
					<classpathContainers>
                        <classpathContainer>com.android.ide.eclipse.adt.ANDROID_FRAMEWORK</classpathContainer>
                        <classpathContainer>com.android.ide.eclipse.adt.LIBRARIES</classpathContainer>
						<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
					</classpathContainers>
					<additionalBuildcommands>
                        <buildCommand>
                            <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
                            <arguments>
                            </arguments>
                        </buildCommand>
                        <buildCommand>
                            <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
                            <arguments>
                            </arguments>
                        </buildCommand>
                        <buildCommand>
                            <name>org.eclipse.jdt.core.javabuilder</name>
                            <arguments>
                            </arguments>
                        </buildCommand>
                        <buildCommand>
                            <name>com.android.ide.eclipse.adt.ApkBuilder</name>
                            <arguments>
                            </arguments>
                        </buildCommand>
                    </additionalBuildcommands>
                    <projectnatures>
                        <projectnature>com.android.ide.eclipse.adt.AndroidNature</projectnature>
                        <projectnature>org.eclipse.jdt.core.javanature</projectnature>
                    </projectnatures>
				</configuration>
			</plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>1.7</version>
                <executions>
                    <execution>
                        <id>add-source</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>add-source</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>${basedir}/gen</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
               <groupId>com.google.code.maven-replacer-plugin</groupId>
               <artifactId>replacer</artifactId>
               <version>1.5.0</version>
               <executions>
                   <execution>
                       <phase>process-resources</phase>
                       <goals>
                           <goal>replace</goal>
                       </goals>
                   </execution>
               </executions>
               <configuration>
                   <file>.classpath</file>
                   <ignoreMissingFile>true</ignoreMissingFile>
                   <replacements>
                       <replacement>
                           <token>&lt;classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/&gt;</token>
                           <value>&lt;!--&lt;classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/&gt;--&gt;</value>
                       </replacement>
                    </replacements>
                </configuration>
            </plugin>
	    <!--
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.5.1</version>
                <executions>
                    <execution>
                        <id>copy</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>junit</groupId>
                                    <artifactId>junit</artifactId>
                                    <version>4.10</version>
                                    <type>jar</type>
                                    <overWrite>false</overWrite>
                                    <outputDirectory>libs</outputDirectory>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.uphyca</groupId>
                                    <artifactId>android-junit4</artifactId>
                                    <version>0.1-SNAPSHOT</version>
                                    <type>jar</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>libs</outputDirectory>
                                </artifactItem>
                            </artifactItems>
                            <overWriteReleases>false</overWriteReleases>
                            <overWriteSnapshots>true</overWriteSnapshots>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
	    -->
		</plugins>
	</build>
</project>
