You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by mi...@apache.org on 2015/04/30 16:44:14 UTC

svn commit: r1677009 - /olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read_mvn.mdtext

Author: mibo
Date: Thu Apr 30 14:44:14 2015
New Revision: 1677009

URL: http://svn.apache.org/r1677009
Log:
CMS commit to olingo by mibo

Modified:
    olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read_mvn.mdtext

Modified: olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read_mvn.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read_mvn.mdtext?rev=1677009&r1=1677008&r2=1677009&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read_mvn.mdtext (original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read_mvn.mdtext Thu Apr 30 14:44:14 2015
@@ -42,3 +42,35 @@ To implement the Demo Service see sectio
 
 ### Append Jetty to pom
 
+To add support for run the Demo Service via Maven and the Jetty plugin add following part into the `pom.xml`:
+
+
+    <build>
+      <finalName>${project.artifactId}</finalName>
+      <defaultGoal>package jetty:run</defaultGoal>
+      <resources>
+        <resource>
+          <directory>src/main/version</directory>
+          <filtering>true</filtering>
+          <targetPath>../${project.build.finalName}/gen</targetPath>
+        </resource>
+        <resource>
+          <directory>src/main/resources</directory>
+          <filtering>true</filtering>
+        </resource>
+        <resource>
+          <directory>target/maven-shared-archive-resources</directory>
+        </resource>
+      </resources>
+
+      <plugins>
+        <plugin>
+          <groupId>org.mortbay.jetty</groupId>
+          <artifactId>jetty-maven-plugin</artifactId>
+          <version>8.1.14.v20131031</version>
+        </plugin>
+      </plugins>
+    </build>
+
+
+Afterwards it is possible to call `mvn` (or `mvn jetty:run`) on the console to build the project and start the Jetty server on <http://localhost:8080>
\ No newline at end of file