[jboss-cvs] JBossAS SVN: r106511 - in projects/snowdrop/examples/tags/sportsclub-1.0.0-WFK-1.1-CR2-updated: jbossconf and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jul 8 12:18:50 EDT 2010
Author: marius.bogoevici
Date: 2010-07-08 12:18:49 -0400 (Thu, 08 Jul 2010)
New Revision: 106511
Modified:
projects/snowdrop/examples/tags/sportsclub-1.0.0-WFK-1.1-CR2-updated/jbossconf/pom.xml
projects/snowdrop/examples/tags/sportsclub-1.0.0-WFK-1.1-CR2-updated/readme.txt
Log:
create a special profile for installing only a datasource, and one for cleanup
Modified: projects/snowdrop/examples/tags/sportsclub-1.0.0-WFK-1.1-CR2-updated/jbossconf/pom.xml
===================================================================
--- projects/snowdrop/examples/tags/sportsclub-1.0.0-WFK-1.1-CR2-updated/jbossconf/pom.xml 2010-07-08 14:53:35 UTC (rev 106510)
+++ projects/snowdrop/examples/tags/sportsclub-1.0.0-WFK-1.1-CR2-updated/jbossconf/pom.xml 2010-07-08 16:18:49 UTC (rev 106511)
@@ -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/tags/sportsclub-1.0.0-WFK-1.1-CR2-updated/readme.txt
===================================================================
--- projects/snowdrop/examples/tags/sportsclub-1.0.0-WFK-1.1-CR2-updated/readme.txt 2010-07-08 14:53:35 UTC (rev 106510)
+++ projects/snowdrop/examples/tags/sportsclub-1.0.0-WFK-1.1-CR2-updated/readme.txt 2010-07-08 16:18:49 UTC (rev 106511)
@@ -39,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
More information about the jboss-cvs-commits
mailing list