You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by sk...@apache.org on 2014/03/26 15:04:54 UTC
svn commit: r1581846 -
/olingo/site/trunk/content/doc/tutorials/OlingoV2BasicClientSample.mdtext
Author: sklevenz
Date: Wed Mar 26 14:04:54 2014
New Revision: 1581846
URL: http://svn.apache.org/r1581846
Log:
CMS commit to olingo by sklevenz
Modified:
olingo/site/trunk/content/doc/tutorials/OlingoV2BasicClientSample.mdtext
Modified: olingo/site/trunk/content/doc/tutorials/OlingoV2BasicClientSample.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/tutorials/OlingoV2BasicClientSample.mdtext?rev=1581846&r1=1581845&r2=1581846&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/tutorials/OlingoV2BasicClientSample.mdtext (original)
+++ olingo/site/trunk/content/doc/tutorials/OlingoV2BasicClientSample.mdtext Wed Mar 26 14:04:54 2014
@@ -47,7 +47,7 @@ Therefore it just requires an installed
-DgroupId=com.sample
-DartifactId=my-car-service
-DarchetypeGroupId=org.apache.olingo
- -DarchetypeArtifactId=olingo-odata2-sample-cars-annotation-archetype-incubating
+ -DarchetypeArtifactId=olingo-odata2-sample-cars-annotation-archetype
-DarchetypeVersion=1.2.0-SNAPSHOT
</div>
3. Go into from archetype created folder `my-car-service` and just run `mvn` to start the Sample Service on a *Jetty Web Server* at [http://localhost:8080](http://localhost:8080).
@@ -574,7 +574,7 @@ The `print` methods are only for simplif
##### Sample Service
That the sample Clients `main` method generates real output it is necessary that an OData Service with corresponding *Data Model (EDM)* is available at the `service url` defined in the `main` method (which is in the sample `http://localhost:8080/MyFormula.svc`).
-This can easily achieved if the Apache Olingo archetype (with id: `olingo-odata2-sample-cars-annotation-archetype-incubating`) is used.
+This can easily achieved if the Apache Olingo archetype (with id: `olingo-odata2-sample-cars-annotation-archetype`) is used.
To use the archtype and create this sample project Maven must be called as shown below:
mvn archetype:generate \
@@ -583,7 +583,7 @@ To use the archtype and create this samp
-DgroupId=com.sample \
-DartifactId=my-car-service \
-DarchetypeGroupId=org.apache.olingo \
- -DarchetypeArtifactId=olingo-odata2-sample-cars-annotation-archetype-incubating \
+ -DarchetypeArtifactId=olingo-odata2-sample-cars-annotation-archetype \
-DarchetypeVersion=1.2.0-SNAPSHOT
In the generated sample project you now can simply run Maven with the default goal (run `mvn` in the shell) which compiles the sources and starts a *Jetty Web Server* at [http://localhost:8080](http://localhost:8080).
@@ -610,7 +610,7 @@ To use it just copy both blocks into fil
Then run `mvn` to build the project.
After successfull build the sample client (i.e. its `main`) can be executed via `java -cp target/OlingoSampleClient.jar org.apache.olingo.sample.client.OlingoSampleApp`.
-If the corresponding OData Service based on the *archetypeArtifactId=olingo-odata2-sample-cars-annotation-archetype-incubating* (see Olingo Annotation Archetype) is running on [http://localhost:8080/MyFormula.svc](http://localhost:8080/MyFormula.svc) the sample work and log some information to the console.
+If the corresponding OData Service based on the *archetypeArtifactId=olingo-odata2-sample-cars-annotation-archetype* (see Olingo Annotation Archetype) is running on [http://localhost:8080/MyFormula.svc](http://localhost:8080/MyFormula.svc) the sample work and log some information to the console.
<a name="copypaste"></a>
##### Copy and Paste
@@ -688,12 +688,12 @@ Maven project POM (`pom.xml`)
<dependencies>
<dependency>
<groupId>org.apache.olingo</groupId>
- <artifactId>olingo-odata2-api-incubating</artifactId>
+ <artifactId>olingo-odata2-api</artifactId>
<version>${version.olingo}</version>
</dependency>
<dependency>
<groupId>org.apache.olingo</groupId>
- <artifactId>olingo-odata2-core-incubating</artifactId>
+ <artifactId>olingo-odata2-core</artifactId>
<version>${version.olingo}</version>
<exclusions>
<exclusion>