Merge r1022644 TUSCANY-3726: Include store-dojo and its runtime dependencies in the binary distribution

git-svn-id: https://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk@1027555 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/samples/store-dojo/README b/samples/store-dojo/README
index 46e71bf..8e9bbb9 100644
--- a/samples/store-dojo/README
+++ b/samples/store-dojo/README
@@ -1,8 +1,8 @@
-Store Sample
+Store Dojo Sample
 ======================================
 
-This is a sample store scenario that is used as a getting started guide
-for Tuscany SCA. For detailed information, please see:
+This sample demonstrates how the Dojo Toolkit can be used to implement the user interface of the sample store scenario
+that is used as a getting started guide for Tuscany SCA. For detailed information on this scenario, please see:
 
 http://tuscany.apache.org/getting-started-with-tuscany.html
 
@@ -11,18 +11,28 @@
 http://tuscany.apache.org/getting-started-with-tuscany-using-tuscany-eclipse-plugin.html
 
 
-Building And Running The Sample Using Ant
+Running And Building The Sample Using Ant
 -----------------------------------------
-With the binary distribution the sample can be built using Ant as follows:
+With the binary distribution the sample can be run using Ant as follows:
 
-cd store
-ant compile
-
-and then, to run:
-
+cd store-dojo
 ant run
 
-Once the store application is running use your browser to visit the following
+Once the application is running use your browser to visit the following
 URL:
 
 http://localhost:8080/store/
+
+If you want to build it before running it, you can do:
+
+cd store-dojo
+ant compile
+ant run
+
+Building The Sample Using Maven
+-------------------------------
+With the source and binary distributions the sample can be built using Maven
+as follows:
+
+cd store-dojo
+mvn
diff --git a/samples/store-dojo/pom.xml b/samples/store-dojo/pom.xml
index 80620b9..bd7562a 100644
--- a/samples/store-dojo/pom.xml
+++ b/samples/store-dojo/pom.xml
@@ -121,7 +121,24 @@
     </dependencies>
     
     <build>
-       <finalName>${artifactId}</finalName>
+        <finalName>${artifactId}</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.tuscany.sca</groupId>
+                <artifactId>tuscany-maven-ant-generator</artifactId>
+                <version>1.6.1-SNAPSHOT</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>generate</goal>
+                        </goals>
+                        <configuration>
+                            <mainClass>launch.Launch</mainClass>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
     </build>
 
 </project>