You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by so...@apache.org on 2009/10/07 12:28:58 UTC

svn commit: r822647 - /myfaces/portlet-bridge/testsuite/trunk/pom.xml

Author: sobryan
Date: Wed Oct  7 10:28:57 2009
New Revision: 822647

URL: http://svn.apache.org/viewvc?rev=822647&view=rev
Log:
Modified base pom file to provide Portlet Runtime Environment

Modified:
    myfaces/portlet-bridge/testsuite/trunk/pom.xml

Modified: myfaces/portlet-bridge/testsuite/trunk/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/testsuite/trunk/pom.xml?rev=822647&r1=822646&r2=822647&view=diff
==============================================================================
--- myfaces/portlet-bridge/testsuite/trunk/pom.xml (original)
+++ myfaces/portlet-bridge/testsuite/trunk/pom.xml Wed Oct  7 10:28:57 2009
@@ -19,21 +19,20 @@
   <parent>
     <artifactId>portlet-bridge-master-pom</artifactId>
     <groupId>org.apache.myfaces.portlet-bridge</groupId>
-    <version>1</version>
+    <version>2</version>
   </parent>
 
-  <properties>
-    <latestRelease>1.0.0-beta-2</latestRelease>
-    <portletSpecVersion>1.0</portletSpecVersion>
-    <jsfSpecVersion>1.2</jsfSpecVersion>
-    <specVersion>1.0</specVersion>
-    <jsrNumber>301</jsrNumber>
-    <specLink>http://www.jcp.org/en/jsr/detail?id=${jsrNumber}</specLink>
-    <specName>Portlet ${portletSpecVersion} Bridge for JavaServer Faces ${jsfSpecVersion}</specName>
-    <projectSeries>1.x</projectSeries>
-    <jetty-plugin.version>6.1.16</jetty-plugin.version>
-    <pluto-embedded.version>1.0.1</pluto-embedded.version>
-    <jsf.version>1.2_03</jsf.version>
+  <properties>
+    <servlet.version>2.4</servlet.version>
+    <jsp.version>2.1</jsp.version>    
+    <portlet.version>1.0</portlet.version>
+    <bridge.version>1.0.0-SNAPSHOT</bridge.version>
+    <jetty.version>6.1.10</jetty.version>
+    <pluto-embedded.version>1.0.1</pluto-embedded.version>
+    <pluto.version>1.1.4</pluto.version>
+    <jsf.version>1.2_03</jsf.version>
+    <selenium.version>1.0-beta-1</selenium.version>
+    <junit.version>4.7</junit.version>
   </properties>
   
   <!-- issueManagement is in parent -->
@@ -43,160 +42,129 @@
   <!-- contributors are in parent -->
 
   <scm>
-    <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/portlet-bridge/core/trunk/</connection>
-    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/myfaces/portlet-bridge/core/trunk/</developerConnection>
-    <url>http://svn.apache.org/viewcvs.cgi/myfaces/portlet-bridge/core/trunk/</url>
+    <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/portlet-bridge/testsuite/trunk/</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/myfaces/portlet-bridge/testsuite/trunk/</developerConnection>
+    <url>http://svn.apache.org/viewcvs.cgi/myfaces/portlet-bridge/testsuite/trunk/</url>
   </scm>
 
   <distributionManagement>
     <site>
       <id>apache-site</id>
-      <url>scpexe://minotaur.apache.org/www/myfaces.apache.org/portlet-bridge/1.0</url>
+      <url>scpexe://minotaur.apache.org/www/myfaces.apache.org/portlet-bridge/testsuite</url>
     </site>
-  </distributionManagement>
+  </distributionManagement>
+  
+  <repositories>
+    <!-- For selenium dependency -->
+    <repository>
+      <id>openqa</id>
+      <name>OpenQA Repository</name>
+      <url>http://nexus.openqa.org/content/repositories/releases/</url>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+    </repository>
+  </repositories>  
+  
+  
+  <pluginRepositories>
+    <!-- For selenium plugin -->    
+    <pluginRepository>
+      <id>codehaus snapshot repository</id>
+      <url>http://snapshots.repository.codehaus.org/</url>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+    </pluginRepository>
+  </pluginRepositories>
 
-<!--
-  <modules>
-    <module>impl</module>
-  </modules>
--->
-
-
-  <!-- Versions and scope of dependencies -->
-  <dependencyManagement>
-    <dependencies>
-        <!-- Portlet 1.0 Bridge API -->
-        <dependency>
-          <groupId>portlet-bridge-api</groupId>
-          <artifactId>portlet-api</artifactId>
-          <version>1.0.0-SNAPSHOT</version>
-          <scope>provided</scope>
-        </dependency>
-
-        <!-- Portlet API -->
-        <dependency>
-          <groupId>portlet-api</groupId>
-          <artifactId>portlet-api</artifactId>
-          <version>1.0</version>
-          <scope>provided</scope>
-        </dependency>
-
-        <!-- Servlet API -->
-        <dependency>
-          <groupId>javax.servlet</groupId>
-          <artifactId>servlet-api</artifactId>
-          <version>2.4</version>
-          <scope>provided</scope>
-        </dependency>
-
-        <!-- JSP API -->
-        <dependency>
-          <groupId>javax.servlet.jsp</groupId>
-          <artifactId>jsp-api</artifactId>
-          <version>2.1</version>
-          <scope>provided</scope>
-        </dependency>
-
-        <!-- J2EE Annotations -->
-        <dependency>
-          <groupId>org.apache.geronimo.specs</groupId>
-          <artifactId>geronimo-annotation_1.0_spec</artifactId>
-          <version>1.0</version>
-          <scope>provided</scope>
-        </dependency>
-
-        <!-- MyFaces API -->
-        <dependency>
-          <groupId>org.apache.myfaces.core</groupId>
-          <artifactId>myfaces-api</artifactId>
-          <version>1.2.2</version>
-        </dependency>
-        
-        <dependency>
-          <groupId>org.apache.myfaces.core</groupId>
-          <artifactId>myfaces-impl</artifactId>
-          <version>1.2.2</version>
-          <scope>runtime</scope>
-        </dependency>
-        
-       <!-- JSF R.I. API -->
-        <dependency>
-          <groupId>javax.faces</groupId>
-          <artifactId>jsf-api</artifactId>
-          <!-- As per spec, 1.2_03 is the minimum R.I. for version 1.0 bridge -->
-          <version>${jsf.version}</version>
-          <scope>provided</scope>
-        </dependency>
-                
-        <!-- Jetty Pluto Plugin -->        
-        <dependency>
-          <groupId>com.bekk.boss</groupId>
-          <artifactId>maven-jetty-pluto-embedded</artifactId>
-          <version>${pluto-embedded.version}</version>
-        </dependency>
-      
-        <dependency>
-          <groupId>javax.activation</groupId>
-          <artifactId>activation</artifactId>
-          <version>1.1</version>
-        </dependency>
-
-        <!-- JSF Portlet Bridge API -->
-        <dependency>
-          <groupId>${pom.groupId}</groupId>
-          <artifactId>portlet-bridge-api</artifactId>
-          <version>${project.version}</version>
-        </dependency>
-
-        <!-- JSF Portlet Bridge Impl -->
-        <dependency>
-          <groupId>${pom.groupId}</groupId>
-          <artifactId>portlet-bridge-impl</artifactId>
-          <version>${project.version}</version>
-        </dependency>
-      </dependencies>
-  </dependencyManagement>
 
   <dependencies>
     <dependency>
-      <groupId>javax.faces</groupId>
-      <artifactId>jsf-api</artifactId>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>${servlet.version}</version>
+      <scope>provided</scope>
     </dependency>
-
+
     <dependency>
-      <groupId>portlet-api</groupId>
-      <artifactId>portlet-api</artifactId>
+      <groupId>javax.servlet.jsp</groupId>
+      <artifactId>jsp-api</artifactId>
+      <version>${jsp.version}</version>
+      <scope>provided</scope>
     </dependency>
-        
+
     <dependency>
-      <groupId>${pom.groupId}</groupId>
-      <artifactId>portlet-bridge-api</artifactId>
-    </dependency>
-
+      <groupId>javax.faces</groupId>
+      <artifactId>jsf-api</artifactId>
+      <version>${jsf.version}</version>
+      <scope>compile</scope>
+    </dependency>
+    
     <dependency>
-      <groupId>${pom.groupId}</groupId>
-      <artifactId>portlet-bridge-impl</artifactId>
-    </dependency>
+      <groupId>javax.faces</groupId>
+      <artifactId>jsf-impl</artifactId>
+      <version>${jsf.version}</version>
+      <scope>runtime</scope>
+    </dependency>
 
     <dependency>
-      <groupId>org.apache.geronimo.specs</groupId>
-      <artifactId>geronimo-annotation_1.0_spec</artifactId>
-    </dependency>
-
+      <groupId>portlet-api</groupId>
+      <artifactId>portlet-api</artifactId>
+      <version>${portlet.version}</version>
+      <scope>provided</scope>
+    </dependency>
+            
     <dependency>
-      <groupId>javax.servlet</groupId>
-      <artifactId>servlet-api</artifactId>
+      <groupId>${pom.groupId}</groupId>
+      <artifactId>portlet-bridge-api</artifactId>
+      <version>${bridge.version}</version>
+      <scope>compile</scope>
     </dependency>
 
     <dependency>
-      <groupId>javax.servlet.jsp</groupId>
-      <artifactId>jsp-api</artifactId>
+      <groupId>${pom.groupId}</groupId>
+      <artifactId>portlet-bridge-impl</artifactId>
+      <version>${bridge.version}</version>
+      <scope>runtime</scope>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.openqa.selenium.client-drivers</groupId>
+      <artifactId>selenium-java-client-driver</artifactId>
+      <version>${selenium.version}</version>
+      <scope>test</scope>
+    </dependency>
+    
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>${junit.version}</version>
+      <scope>test</scope>
+    </dependency>
+    
+    <dependency>
+      <groupId>com.bekk.boss</groupId>
+      <artifactId>maven-jetty-pluto-embedded</artifactId>
+      <version>${pluto-embedded.version}</version>
     </dependency>
-
   </dependencies>
   
   <build>
-    <plugins>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>selenium-maven-plugin</artifactId>
+      </plugin>
+      
+      <plugin>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.4.3</version>
+      </plugin>
+
       <plugin>
         <artifactId>maven-jdev-plugin</artifactId>
         <groupId>org.apache.myfaces.trinidadbuild</groupId>
@@ -258,16 +226,39 @@
           </archive>
         </configuration>
       </plugin>
+
+      <plugin>
+        <groupId>org.mortbay.jetty</groupId>
+        <artifactId>maven-jetty-plugin</artifactId>
+        <version>${jetty.version}</version>
+        <configuration>
+          <webDefaultXml>src/main/webapp/WEB-INF/jetty-pluto-web-default.xml</webDefaultXml>
+          <webXml>target/pluto-resources/web.xml</webXml>
+          <!-- see http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin systemPropertiesFile -->
+          <systemProperties>
+            <systemProperty>
+              <name>org.apache.pluto.embedded.portletIds</name>
+              <value>chapter3Tests-bridgeVersionTest-portlet,chapter6Tests-facesContextFactoryServiceProviderTest-portlet</value>
+            </systemProperty>
+          </systemProperties>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.pluto</groupId>
+        <artifactId>maven-pluto-plugin</artifactId>
+        <version>1.1.4</version>
+        <executions>
+          <execution>
+            <phase>generate-resources</phase>
+            <goals>
+              <goal>assemble</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
     </plugins>
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <groupId>org.mortbay.jetty</groupId>
-          <artifactId>maven-jetty-plugin</artifactId>
-          <version>${jetty-plugin.version}</version>
-        </plugin>
-      </plugins>
-    </pluginManagement>
   </build>
   
   <profiles>  
@@ -337,4 +328,4 @@
       </build>
     </profile>
   </profiles>      
-</project>
\ No newline at end of file
+</project>