<?xml version="1.0"?>
<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <artifactId>portletunit2-top-level</artifactId>
        <groupId>net.sf.portletunit</groupId>
        <version>1.0.2</version>
    </parent>
    <groupId>net.sf.portletunit</groupId>
    <artifactId>portletunit2</artifactId>
    <version>1.0.7</version>
    <name>portletunit2</name>
    <description>
        PortletUnit is a jUnit Java Unit Testing Framework for testing JSR-168 portlets. It is built on ServletUnit and Pluto. It provides a mock portlet container as ServletUnit provides a mock servlet container.
    </description>
    <url>http://portletunit.sf.net/portletunit2</url>
    <scm>
        <connection>scm:cvs:ext:m0smith@portletunit.cvs.sourceforge.net:/cvsroot/portletunit:portletunit2/modules/top-level/portletunit2</connection>
        <developerConnection>scm:cvs:ext:m0smith@portletunit.cvs.sourceforge.net:/cvsroot/portletunit:portletunit2/modules/top-level/portletunit2/</developerConnection>
        <url>http://portletunit.cvs.sourceforge.net/viewvc/portletunit/portletunit2/modules/top-level/portletunit2/</url>
    <tag>portletunit2-1_0_7</tag>
  </scm>
 

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.5</version>
                <configuration>
                    <useSystemClassLoader>false</useSystemClassLoader>
                </configuration>
            </plugin>
	    <plugin>
              <groupId>org.apache.portals.pluto</groupId>
              <artifactId>maven-pluto-plugin</artifactId>
              <version>2.0.2</version>
              <configuration>
                <webXml>src/test/resources/web.xml</webXml>
                <portletXml>src/test/resources/portlet.xml</portletXml>
	      </configuration>
              <executions>
		<execution>
		  <phase>generate-resources</phase>
		  <goals>
                    <goal>assemble</goal>
		  </goals>
		</execution>
              </executions>
            </plugin>
            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <version>6.1.14</version>
                <artifactId>maven-jetty-plugin</artifactId>
                <configuration>
                    <webXml>${project.build.directory}/pluto-resources/web.xml</webXml>
                    <webAppConfig>
                        <contextPath>/${project.artifactId}</contextPath>
                        <defaultsDescriptor>/WEB-INF/jetty-pluto-web-default.xml</defaultsDescriptor>
                    </webAppConfig>

                    <systemProperties>
                        <systemProperty>
                            <name>org.apache.pluto.embedded.portletIds</name>
                            <value>MyPortletAsDefinedInPortletXml,MyOtherPortletInTheSameApp</value>
                        </systemProperty>
			<systemProperty>
			  <name>org.apache.pluto.embedded.principalName</name>
			  <value>theUserName</value>
			</systemProperty>
			<systemProperty>
			  <name>org.apache.pluto.embedded.principalRoles</name>
			  <value>role1,role2</value>
			</systemProperty>
                    </systemProperties>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-changes-plugin</artifactId>
                <inherited>false</inherited>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>changes-report</report>
                        </reports>
                    </reportSet>
                </reportSets>
                <configuration>
                    <issueLinkTemplate>http://sourceforge.net/support/tracker.php?aid=%ISSUE%</issueLinkTemplate>
                </configuration>
            </plugin>
        </plugins>
    </reporting>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.7</version>
        </dependency>
      
        <dependency>
            <groupId>net.sourceforge.jwebunit</groupId>
            <artifactId>jwebunit-htmlunit-plugin</artifactId>
            <version>3.1</version>
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>servlet-api</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
	<dependency>
	  <groupId>org.mortbay.jetty</groupId>
	  <artifactId>jsp-2.1</artifactId>
	  <version>6.1.8</version>
	</dependency>
	<dependency>
	  <groupId>org.mortbay.jetty</groupId>
	  <artifactId>jetty</artifactId>
	  <version>6.1.8</version>
	</dependency>
        <dependency>
	  <groupId>javax.servlet</groupId>
	  <artifactId>servlet-api</artifactId>
	  <version>2.5</version>
	</dependency>
        <dependency>
            <groupId>net.sf.portletunit</groupId>
            <artifactId>maven-jetty-pluto-embedded</artifactId>
            <version>2.0</version>
        </dependency>
        <dependency>
            <groupId>javax.portlet</groupId>
            <artifactId>portlet-api</artifactId>
            <version>2.0</version>
        </dependency>
        <dependency>
            <groupId>org.codehaus.castor</groupId>
            <artifactId>castor</artifactId>
            <version>1.2</version>
        </dependency>
        <dependency>
            <groupId>xalan</groupId>
            <artifactId>xalan</artifactId>
            <version>2.7.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
        	<groupId>net.sf.beanrunner</groupId>
        	<artifactId>beanrunner</artifactId>
        	<version>0.0.5</version>
        	<type>jar</type>
        </dependency>
    </dependencies>
</project>

