You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2011/04/01 14:34:41 UTC
svn commit: r1087684 - in
/tuscany/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-webapp:
README pom.xml
Author: antelder
Date: Fri Apr 1 12:34:41 2011
New Revision: 1087684
URL: http://svn.apache.org/viewvc?rev=1087684&view=rev
Log:
Update the webapp sample to use the tuscany plugin to run the webapp
Modified:
tuscany/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-webapp/README
tuscany/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-webapp/pom.xml
Modified: tuscany/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-webapp/README
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-webapp/README?rev=1087684&r1=1087683&r2=1087684&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-webapp/README (original)
+++ tuscany/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-webapp/README Fri Apr 1 12:34:41 2011
@@ -11,13 +11,11 @@ and there is a JSP page which shows how
As this sample creates a web application .war archive there is a manual step to deploy the WAR file
to your web application server. The archive is the helloworld-webapp-<version>.war in the target folder.
-Alternatively, you can run it by using the Maven Tomcat plugin by using the following command:
+Alternatively, you can run it by using the Tuscany Maven plugin by using the following command:
- mvn tomcat:run
+ mvn tuscany:run
-or if you prefer Jetty then:
-
- mvn jetty:run
+(or if you prefer using Jetty then mvn jetty:run, or with the Tomcat plugin mvn tomcat:run)
Once the web app is running use your browser to visit the following URL;
Modified: tuscany/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-webapp/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-webapp/pom.xml?rev=1087684&r1=1087683&r2=1087684&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-webapp/pom.xml (original)
+++ tuscany/sca-java-2.x/trunk/unreleased/samples/getting-started/helloworld-webapp/pom.xml Fri Apr 1 12:34:41 2011
@@ -80,7 +80,7 @@
<artifactItems>
<artifactItem>
<groupId>org.apache.tuscany.sca.samples</groupId>
- <artifactId>helloworld-contribution</artifactId>
+ <artifactId>helloworld</artifactId>
<version>${project.version}</version>
<!-- should really go in the target folder but i can't get jetty:run or tomcat:run to work using that -->
<outputDirectory>src/main/webapp/WEB-INF/sca-contributions</outputDirectory>
@@ -91,6 +91,13 @@
</executions>
</plugin>
+ <!-- to support running thw webapp with mvn tuscany:run -->
+ <plugin>
+ <groupId>org.apache.tuscany.maven.plugins</groupId>
+ <artifactId>maven-tuscany-plugin</artifactId>
+ <version>${tuscany.version}</version>
+ </plugin>
+
<!-- to support using mvn jetty:run and also to run the webapp for the integration test -->
<plugin>
<groupId>org.mortbay.jetty</groupId>