Repository: helix
Updated Branches:
refs/heads/master 525a7723e -> eb82c9516
Adds a Maven archetype to create OnlineOffline application
(Addressing comments from review)
RB=37704
Project: http://git-wip-us.apache.org/repos/asf/helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/eb82c951
Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/eb82c951
Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/eb82c951
Branch: refs/heads/master
Commit: eb82c9516fc45c2f523964a19c8803ef8c645aaf
Parents: 525a772
Author: Greg Brandt <brandt.greg@gmail.com>
Authored: Sun Aug 23 17:49:39 2015 -0700
Committer: Greg Brandt <brandt.greg@gmail.com>
Committed: Sun Aug 23 17:50:11 2015 -0700
----------------------------------------------------------------------
helix-archetype/README.md | 18 ++++++++----------
.../main/resources/archetype-resources/pom.xml | 1 -
helix-archetype/src/test/conf/testng.xml | 4 ++--
3 files changed, 10 insertions(+), 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/helix/blob/eb82c951/helix-archetype/README.md
----------------------------------------------------------------------
diff --git a/helix-archetype/README.md b/helix-archetype/README.md
index 86b6bad..b7e1087 100644
--- a/helix-archetype/README.md
+++ b/helix-archetype/README.md
@@ -25,21 +25,13 @@ A maven archetype that sets up a sample [Apache Helix](http://helix.apache.org/)
Generate
--------
-First, clone this repository and install the archetype
-
-```
-git clone git@github.com:brandtg/helix-archetype.git
-cd helix-archetype
-mvn install
-```
-
-Then generate your application
+Then generate your application, substituting `project.version` as appropriate.
```
mvn archetype:generate \
-DarchetypeGroupId=org.apache.helix \
-DarchetypeArtifactId=helix-archetype \
- -DarchetypeVersion=1.0-SNAPSHOT \
+ -DarchetypeVersion=${project.version} \
-DgroupId=com.example \
-DartifactId=my-app \
-Dname=MyApp \
@@ -93,3 +85,9 @@ Rebalance the resource (should work...)
```
java -jar target/my-app-1.0-SNAPSHOT.jar setup --zkSvr localhost:2191 --rebalance TEST_CLUSTER
test 1
```
+
+Clean up temporary ZooKeeper files, after finished
+
+```
+rm -rf /tmp/zk
+```
http://git-wip-us.apache.org/repos/asf/helix/blob/eb82c951/helix-archetype/src/main/resources/archetype-resources/pom.xml
----------------------------------------------------------------------
diff --git a/helix-archetype/src/main/resources/archetype-resources/pom.xml b/helix-archetype/src/main/resources/archetype-resources/pom.xml
index a1df913..637504a 100644
--- a/helix-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/helix-archetype/src/main/resources/archetype-resources/pom.xml
@@ -20,7 +20,6 @@ under the License.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
-
<groupId>\${groupId}</groupId>
<artifactId>\${artifactId}</artifactId>
<version>\${version}</version>
http://git-wip-us.apache.org/repos/asf/helix/blob/eb82c951/helix-archetype/src/test/conf/testng.xml
----------------------------------------------------------------------
diff --git a/helix-archetype/src/test/conf/testng.xml b/helix-archetype/src/test/conf/testng.xml
index 70045c9..3ea81b2 100644
--- a/helix-archetype/src/test/conf/testng.xml
+++ b/helix-archetype/src/test/conf/testng.xml
@@ -21,7 +21,7 @@ under the License.
<suite name="Suite" parallel="none">
<test name="Test" preserve-order="true">
<packages>
- <package name="org.apache.helix.*"/>
+ <package name="org.apache.helix.*"/>
<!--
<package name="org.apache.helix.messaging.handling"/>
<package name="org.apache.helix.agent.file"/>
@@ -39,4 +39,4 @@ under the License.
-->
</packages>
</test>
-</suite>
+</suite>
|