[jboss-cvs] JBossAS SVN: r106512 - in projects/snowdrop/examples/trunk/sportsclub: jbossconf and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jul 8 12:19:37 EDT 2010


Author: marius.bogoevici
Date: 2010-07-08 12:19:37 -0400 (Thu, 08 Jul 2010)
New Revision: 106512

Modified:
   projects/snowdrop/examples/trunk/sportsclub/jbossconf/pom.xml
   projects/snowdrop/examples/trunk/sportsclub/readme.txt
Log:
create a special profile for installing only a datasource, and one for cleanup

Modified: projects/snowdrop/examples/trunk/sportsclub/jbossconf/pom.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/jbossconf/pom.xml	2010-07-08 16:18:49 UTC (rev 106511)
+++ projects/snowdrop/examples/trunk/sportsclub/jbossconf/pom.xml	2010-07-08 16:19:37 UTC (rev 106512)
@@ -21,6 +21,44 @@
 
     <profiles>
         <profile>
+            <id>cleanup</id>
+            <activation>
+                <activeByDefault>false</activeByDefault>
+            </activation>
+            <build>
+                <defaultGoal>package</defaultGoal>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.3</version>
+                        <executions>
+                            <execution>
+                                <id>setup</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <tasks>
+                                        <property file="${basedir}/jbossas.properties"/>
+                                        <property name="jboss.home" value="${env.JBOSS_HOME}"/>
+                                        <property name="jboss.deploy.destination"
+                                                  value="${jboss.home}/server/${jboss.server.name}/deploy"/>
+                                        <delete
+                                                file="${jboss.deploy.destination}/messaging/sportsclub-destinations-service.xml"
+                                                failonerror="false"/>
+                                        <delete
+                                                file="${jboss.deploy.destination}/sportsclub-ds.xml"
+                                                failonerror="false"/>
+                                    </tasks>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
             <id>install</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
@@ -40,7 +78,8 @@
                                 </goals>
                                 <configuration>
                                     <tasks>
-                                        <property file="${basedir}/jbossas.properties"/>                                      <property name="jboss.home" value="${env.JBOSS_HOME}"/>
+                                        <property file="${basedir}/jbossas.properties"/>
+                                        <property name="jboss.home" value="${env.JBOSS_HOME}"/>
                                         <property name="jboss.deploy.destination"
                                                   value="${jboss.home}/server/${jboss.server.name}/deploy"/>
                                         <delete
@@ -71,6 +110,52 @@
                 </plugins>
             </build>
         </profile>
+        <profile>
+            <id>install-only-ds</id>
+            <activation>
+                <activeByDefault>false</activeByDefault>
+            </activation>
+            <build>
+                <defaultGoal>package</defaultGoal>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.3</version>
+                        <executions>
+                            <execution>
+                                <id>setup</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <tasks>
+                                        <property file="${basedir}/jbossas.properties"/>
+                                        <property name="jboss.home" value="${env.JBOSS_HOME}"/>
+                                        <property name="jboss.deploy.destination"
+                                                  value="${jboss.home}/server/${jboss.server.name}/deploy"/>
+                                        <delete
+                                                file="${jboss.deploy.destination}/messaging/sportsclub-destinations-service.xml"
+                                                failonerror="false"/>
+                                        <delete
+                                                file="${jboss.deploy.destination}/sportsclub-ds.xml"
+                                                failonerror="false"/>
+
+                                        <copy todir="${jboss.deploy.destination}"
+                                              overwrite="true">
+                                            <fileset dir=".">
+                                                <include name="sportsclub-ds.xml"/>
+                                            </fileset>
+                                        </copy>
+                                    </tasks>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
     </profiles>
 
 </project>
\ No newline at end of file

Modified: projects/snowdrop/examples/trunk/sportsclub/readme.txt
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/readme.txt	2010-07-08 16:18:49 UTC (rev 106511)
+++ projects/snowdrop/examples/trunk/sportsclub/readme.txt	2010-07-08 16:19:37 UTC (rev 106512)
@@ -5,14 +5,8 @@
 
 A. Maven Repository setup
 
-The Maven project setup does not make any assumptions where the artifacts used
-in the project are coming from (which repository), as users may have different
-settings for their Maven repositories (direct access to community repositories,
-proxies, enterprise repository with approved artifacts). Therefore, the setup
-of the repositories is left to the user of the application.
+The example is pre-configured with JBoss repositories.
 
-The example is pre-configured with the JBoss community repositories.
-
 The pom.xml can be modified to include references to other repositories, or
 equivalent artifact versions (if the build environment uses an enterprise-wide
 repository in which the artifacts have different version numbers).
@@ -45,10 +39,20 @@
   b) modify the jbossconf/jbossas.properties file to indicate the correct location
   of the JBoss AS installation
 
-  c) execute the maven build:
+  c) execute the maven build with one of the two applicable profiles:
 
-    mvn -Pinstall
+    - for installing both the datasource and the JMS queue (e.g. for the default profile)
 
+       mvn -Pinstall
+
+    - for installing only the datasource (e.g. for the web profile)
+
+       mvn -Pinstall-only-ds
+
+    The installed files can be removed with the command:
+
+       mvn -Pcleanup
+
 3. Initialize the database
 
    a) enter the database directory
@@ -105,4 +109,4 @@
 
 
 
-      
+



More information about the jboss-cvs-commits mailing list