Permalink
Browse files

Removed leftover jaxrs and cdi version properties and updated the doc…

…s that referred to them.
  • Loading branch information...
1 parent e45edd5 commit ce8cc4a14ed24c07de75e4d7a4e97a2ab10b0f32 @jfuerth jfuerth committed Apr 18, 2012
Showing with 26 additions and 9 deletions.
  1. +26 −7 README.txt
  2. +0 −1 cdi-quickstart/pom.xml
  3. +0 −1 jaxrs-quickstart/pom.xml
View
@@ -1,16 +1,35 @@
-
Errai Quickstart Archetypes
=======================================
-Build using: mvn clean install
+Build using:
+
+ mvn clean install
+
+By default, the project version of the archetypes themselves will be used as the version of Errai.
+So if this archetype parent pom is version 2.0.Final, then the archetypes will generate projects
+that depend on Errai 2.0.Final.
+
+Sometimes, you will want to release archetypes whose versions don't match the version of Errai
+they depend on. For example, if there was an error in the 2.0.Final archetypes themselves, you
+might want to relase archetypes with version 2.0.1.Final that still depend on Errai 2.0.Final.
+You would achieve that with the property:
+
+ -Derrai.target.version=x.y.z
+
+To illustrate the case above, you would update pom.xml in this directory to version 2.0.1.Final,
+then build like this:
+
+ mvn clean install -Derrai.target.version=2.0.Final
+
+
+Skipping the Tests
+=======================================
-Specify which versions of Errai the generated projects should depend on:
+The tests are very valuable, but also time-consuming because they depoloy to app servers. If
+you're just pulling in someone's already-tested changes. To skip the tests, just build like this:
--Derrai.target.version= (defaults to the project version of the archetype)
--Derrai.cdi.target.version= (defaults to errai.target.version)
--Derrai.jaxrs.target.version= (defaults to errai.target.version)
+ mvn clean install -Darchetype.test.skip=true
-e.g. mvn clean install -Derrai.target.version=2.0.pre0 -Derrai.cdi.target.version=2.0-SNAPSHOT -Derrai.jaxrs.target.version=2.0-SNAPSHOT
Troubleshooting
=======================================
View
@@ -14,7 +14,6 @@
<name>Errai CDI Quickstart Archetype</name>
<properties>
- <errai.cdi.target.version>${errai.target.version}</errai.cdi.target.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
View
@@ -28,7 +28,6 @@
<name>Errai JAX-RS Quickstart Archetype</name>
<properties>
- <errai.jaxrs.target.version>${errai.target.version}</errai.jaxrs.target.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

0 comments on commit ce8cc4a

Please sign in to comment.