summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/unreleased
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-04-01 12:08:48 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-04-01 12:08:48 +0000
commitd7d3418a0b6615ab40c84b3174221b6ef33121e0 (patch)
tree5e0a07251d02ea55ff8307482b53cf4af2d901c3 /sca-java-2.x/trunk/unreleased
parent3a14b468303ff0e0a47c8fa958edd3ded2c4b626 (diff)
Update the scaclient sample to use the tuscany plugin to invoke the sample main method
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1087673 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/unreleased')
-rw-r--r--sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-scaclient/README10
-rw-r--r--sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-scaclient/pom.xml19
2 files changed, 15 insertions, 14 deletions
diff --git a/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-scaclient/README b/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-scaclient/README
index 2bbda2cd15..0cfd8df590 100644
--- a/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-scaclient/README
+++ b/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-scaclient/README
@@ -9,12 +9,16 @@ This project has a Java class with a main method which uses the SCAClient API to
service in a remote SCA domain.
Before running this sample you must have a helloworld service running in a SCA domain somewhere,
-for example, you may do using a separate command prompt and running the Tuscany
-"Getting Started - Helloworld Sample" with the command "mvn tuscany:run -DdomainURI=uri:default".
+for example, you can do that by using a separate command prompt to run the Tuscany
+"Getting Started - Helloworld Sample" with the command
+ mvn tuscany:run -DdomainURI=uri:default
+
+(including that domainURI parameter activates the Tuscany distributed domain)
+
You can then run this SCAClient sample with the Maven command:
- mvn exec:java
+ mvn tuscany:run
You should see the following oputput:
diff --git a/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-scaclient/pom.xml b/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-scaclient/pom.xml
index f10cb6d343..4b916a6bca 100644
--- a/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-scaclient/pom.xml
+++ b/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-scaclient/pom.xml
@@ -57,12 +57,14 @@
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-base-runtime</artifactId>
<version>${tuscany.version}</version>
+ <scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-domain-hazelcast</artifactId>
<version>${tuscany.version}</version>
+ <scope>test</scope>
</dependency>
</dependencies>
@@ -70,21 +72,16 @@
<build>
<plugins>
+
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.1.1</version>
- <executions>
- <execution>
- <goals>
- <goal>java</goal>
- </goals>
- </execution>
- </executions>
+ <groupId>org.apache.tuscany.maven.plugins</groupId>
+ <artifactId>maven-tuscany-plugin</artifactId>
+ <version>${tuscany.version}</version>
<configuration>
<mainClass>sample.HelloworldSCAClient</mainClass>
</configuration>
- </plugin>
+ </plugin>
+
</plugins>
</build>
</project>