[seam-commits] Seam SVN: r10567 - in modules/trunk: jsf-upgrade-tool and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Apr 21 22:33:18 EDT 2009


Author: dan.j.allen
Date: 2009-04-21 22:33:18 -0400 (Tue, 21 Apr 2009)
New Revision: 10567

Added:
   modules/trunk/jsf-upgrade-tool/
   modules/trunk/jsf-upgrade-tool/pom.xml
Log:
add module/tool for upgrading JSF 2.0 libraries on JBoss AS 5



Property changes on: modules/trunk/jsf-upgrade-tool
___________________________________________________________________
Name: svn:ignore
   + target


Added: modules/trunk/jsf-upgrade-tool/pom.xml
===================================================================
--- modules/trunk/jsf-upgrade-tool/pom.xml	                        (rev 0)
+++ modules/trunk/jsf-upgrade-tool/pom.xml	2009-04-22 02:33:18 UTC (rev 10567)
@@ -0,0 +1,105 @@
+<?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.jboss.seam</groupId>
+      <artifactId>seam-version-matrix</artifactId>
+      <version>3.0.0-SNAPSHOT</version>
+   </parent>
+
+   <artifactId>jsf-upgrade-tool</artifactId>
+   <packaging>pom</packaging>
+   <name>JSF Upgrade Tool</name>
+
+   <description>
+      The sole purpose of this Maven project is to upgrade the JSF libraries on JBoss AS 5 (or any other app server this
+      build is made to support). It works by copying the dependencies (JSF) directly to the application server. In the
+      case of JBoss AS 5, that is the jbossweb.sar in the domain's deploy directory.
+
+      WARNING: The existing JSF libraries are overwritten, so you may want to back them up first.
+   
+      To run the project, type mvn from the commandline. The package goal will execute and perform the deployment.
+   </description>
+
+   <build>
+      <defaultGoal>package</defaultGoal>
+      <plugins>
+
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-enforcer-plugin</artifactId>
+            <executions>
+               <execution>
+                  <id>validate-jboss-home</id>
+                  <phase>package</phase>
+                  <goals>
+                     <goal>enforce</goal>
+                  </goals>
+                  <configuration>
+                     <failFast>true</failFast>
+                     <rules>
+                        <requireProperty>
+                           <property>jboss.home</property>
+                           <message>Please set the JBOSS_HOME environment variable or set the jboss.home property in an active profile in your Maven 2 settings configuration</message>
+                        </requireProperty>
+                        <requireFilesExist>
+                           <files>
+                              <file>${jboss.home}</file>
+                              <file>${jboss.home}/server/${jboss.domain}/deploy/jbossweb.sar/jsf-libs</file>
+                           </files>
+                           <message>The property jboss.home does not point to a valid JBoss AS 5 installation</message>
+                        </requireFilesExist>
+                     </rules>
+                  </configuration>
+               </execution>
+            </executions>
+         </plugin>
+
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-dependency-plugin</artifactId>
+            <executions>
+               <execution>
+                  <id>copy-dependencies</id>
+                  <phase>package</phase>
+                  <goals>
+                     <goal>copy-dependencies</goal>
+                  </goals>
+                  <configuration>
+                     <outputDirectory>${jboss.home}/server/${jboss.domain}/deploy/jbossweb.sar/jsf-libs</outputDirectory>
+                     <overWriteIfNewer>true</overWriteIfNewer>
+                     <excludeTransitive>true</excludeTransitive>
+                     <stripVersion>true</stripVersion>
+                  </configuration>
+               </execution>
+            </executions>
+         </plugin>
+      </plugins>
+   </build>
+
+   <properties>
+      <jboss.home>${env.JBOSS_HOME}</jboss.home>
+      <jboss.domain>default</jboss.domain>
+   </properties>
+
+   <dependencies>
+
+      <dependency>
+         <groupId>javax.faces</groupId>
+         <artifactId>jsf-api</artifactId>
+         <version>2.0.0-PR2</version>
+      </dependency>
+
+      <dependency>
+         <groupId>javax.faces</groupId>
+         <artifactId>jsf-impl</artifactId>
+         <version>2.0.0-PR2</version>
+      </dependency>
+
+   </dependencies>
+
+</project>
+




More information about the seam-commits mailing list