[seam-commits] Seam SVN: r13262 - examples/trunk/booking-simplified.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Jun 18 19:03:46 EDT 2010


Author: dan.j.allen
Date: 2010-06-18 19:03:46 -0400 (Fri, 18 Jun 2010)
New Revision: 13262

Modified:
   examples/trunk/booking-simplified/pom.xml
   examples/trunk/booking-simplified/readme.txt
Log:
fix jboss-maven-plugin and update docs


Modified: examples/trunk/booking-simplified/pom.xml
===================================================================
--- examples/trunk/booking-simplified/pom.xml	2010-06-18 22:33:37 UTC (rev 13261)
+++ examples/trunk/booking-simplified/pom.xml	2010-06-18 23:03:46 UTC (rev 13262)
@@ -47,10 +47,12 @@
          <name>JBoss Repository</name>
          <url>https://repository.jboss.org/nexus/content/groups/public</url>
          <releases>
+            <enabled>true</enabled>
             <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
             <enabled>true</enabled>
+            <updatePolicy>daily</updatePolicy>
          </snapshots>
       </repository>
    </repositories>
@@ -61,10 +63,12 @@
          <name>JBoss Repository</name>
          <url>https://repository.jboss.org/nexus/content/groups/public</url>
          <releases>
+            <enabled>true</enabled>
             <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
-            <enabled>false</enabled>
+            <enabled>true</enabled>
+            <updatePolicy>daily</updatePolicy>
          </snapshots>
       </pluginRepository>
    </pluginRepositories>
@@ -243,20 +247,6 @@
             </configuration>
          </plugin>
 
-         <!-- Configure the JBoss AS Maven deploy plugin -->
-         <plugin>
-            <groupId>org.codehaus.mojo</groupId>
-            <artifactId>jboss-maven-plugin</artifactId>
-            <version>1.4</version>
-            <configuration>
-               <jbossHome>${jboss.home}</jbossHome>
-               <serverName>${jboss.domain}</serverName>
-               <fileNames>
-                  <fileName>${project.build.directory}/${project.build.finalName}.war</fileName>
-               </fileNames>
-            </configuration>
-         </plugin>
-
       </plugins>
    </build>
 
@@ -291,11 +281,14 @@
                <plugin>
                   <groupId>org.codehaus.mojo</groupId>
                   <artifactId>jboss-maven-plugin</artifactId>
+                  <!-- only version 1.4.1 supports hard deploying multiple files -->
+                  <version>1.4.1-SNAPSHOT</version>
                   <configuration>
                      <jbossHome>${jboss.home}</jbossHome>
                      <serverName>${jboss.domain}</serverName>
                      <fileNames>
-                        <fileName>${project.build.directory}/${project.build.finalName}.war</fileName>
+                        <param>src/main/resources-jbossas/booking-ds.xml</param>
+                        <param>${project.build.directory}/${project.build.finalName}.war</param>
                      </fileNames>
                   </configuration>
                </plugin>

Modified: examples/trunk/booking-simplified/readme.txt
===================================================================
--- examples/trunk/booking-simplified/readme.txt	2010-06-18 22:33:37 UTC (rev 13261)
+++ examples/trunk/booking-simplified/readme.txt	2010-06-18 23:03:46 UTC (rev 13262)
@@ -4,10 +4,14 @@
 
 http://hudson.jboss.org/hudson/view/JBoss%20AS/job/JBoss-AS-6.0.x/lastSuccessfulBuild/artifact/JBossAS_6_0/build/target/jboss-6.0.x.zip
 
-You then need to copy the booking-ds.xml file to JBoss AS
+Extract the server, set the JBOSS_HOME environment variable and start it. Then, deploy the application:
 
-cp src/main/resources-jbossas/booking-ds.xml $JBOSS_HOME/server/default/deploy/
+ mvn package jboss:hard-deploy
 
+That command will deploy two files, booking-ds.xml and booking.war. You can undeploy using:
+
+ mvn jboss:hard-undeploy
+
 GlassFish
 ---------
 You will need to start JavaDB to make the application run on GlassFish



More information about the seam-commits mailing list