Return-Path:
Delivered-To: apmail-velocity-commits-archive@minotaur.apache.org
Received: (qmail 23733 invoked from network); 26 Nov 2010 12:19:28 -0000
Received: from unknown (HELO mail.apache.org) (140.211.11.3)
by 140.211.11.9 with SMTP; 26 Nov 2010 12:19:28 -0000
Received: (qmail 69361 invoked by uid 500); 26 Nov 2010 12:19:27 -0000
Delivered-To: apmail-velocity-commits-archive@velocity.apache.org
Received: (qmail 69327 invoked by uid 500); 26 Nov 2010 12:19:26 -0000
Mailing-List: contact commits-help@velocity.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: dev@velocity.apache.org
Delivered-To: mailing list commits@velocity.apache.org
Received: (qmail 69315 invoked by uid 99); 26 Nov 2010 12:19:25 -0000
Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 12:19:25 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=10.0
tests=ALL_TRUSTED
X-Spam-Check-By: apache.org
Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 12:19:19 +0000
Received: by eris.apache.org (Postfix, from userid 65534)
id CBFA323888C2; Fri, 26 Nov 2010 12:17:45 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r1039326 - in /velocity/engine/branches/2.0_Exp/src/site:
apt/release.apt site.xml xdoc/build.xml xdoc/developer-guide.xml
xdoc/getting-started.xml xdoc/jar-dependencies.xml xdoc/user-guide.xml
Date: Fri, 26 Nov 2010 12:17:45 -0000
To: commits@velocity.apache.org
From: apetrelli@apache.org
X-Mailer: svnmailer-1.0.8
Message-Id: <20101126121745.CBFA323888C2@eris.apache.org>
X-Virus-Checked: Checked by ClamAV on apache.org
Author: apetrelli
Date: Fri Nov 26 12:17:45 2010
New Revision: 1039326
URL: http://svn.apache.org/viewvc?rev=1039326&view=rev
Log:
VELOCITY-788
Updated existing files and added release process guide.
Added:
velocity/engine/branches/2.0_Exp/src/site/apt/release.apt
Modified:
velocity/engine/branches/2.0_Exp/src/site/site.xml
velocity/engine/branches/2.0_Exp/src/site/xdoc/build.xml
velocity/engine/branches/2.0_Exp/src/site/xdoc/developer-guide.xml
velocity/engine/branches/2.0_Exp/src/site/xdoc/getting-started.xml
velocity/engine/branches/2.0_Exp/src/site/xdoc/jar-dependencies.xml
velocity/engine/branches/2.0_Exp/src/site/xdoc/user-guide.xml
Added: velocity/engine/branches/2.0_Exp/src/site/apt/release.apt
URL: http://svn.apache.org/viewvc/velocity/engine/branches/2.0_Exp/src/site/apt/release.apt?rev=1039326&view=auto
==============================================================================
--- velocity/engine/branches/2.0_Exp/src/site/apt/release.apt (added)
+++ velocity/engine/branches/2.0_Exp/src/site/apt/release.apt Fri Nov 26 12:17:45 2010
@@ -0,0 +1,348 @@
+~~ $Id$
+~~
+~~ Licensed to the Apache Software Foundation (ASF) under one
+~~ or more contributor license agreements. See the NOTICE file
+~~ distributed with this work for additional information
+~~ regarding copyright ownership. The ASF licenses this file
+~~ to you under the Apache License, Version 2.0 (the
+~~ "License"); you may not use this file except in compliance
+~~ with the License. You may obtain a copy of the License at
+~~
+~~ http://www.apache.org/licenses/LICENSE-2.0
+~~
+~~ Unless required by applicable law or agreed to in writing,
+~~ software distributed under the License is distributed on an
+~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+~~ KIND, either express or implied. See the License for the
+~~ specific language governing permissions and limitations
+~~ under the License.
+~~
+ -----------
+ Release Process
+ -----------
+
+Velocity Engine Release Process
+
+ Here you will find the steps to create releases for Velocity Engine.
+
+Prerequisites
+
+ To create a release you have to install:
+
+ * {{{http://java.sun.com/j2se/1.5.0/}Java 5.0}}. If you are using a newer
+ version of Java, it is suggested to <>
+ when calling Maven, so it points to an instance of Java 5.0;
+
+ * {{{http://maven.apache.org/}Maven 2}};
+
+ * {{{http://www.gnupg.org/}GnuPG}};
+
+ * {{{http://www.openssh.com/}OpenSSH}};
+
+One-time operations
+
+ These operations need to be performed only one time.
+
+* Create and publish your GPG key
+
+ To create a GPG key, follow the
+ {{{http://www.apache.org/dev/openpgp.html}guidelines}}.
+ Insert in the file you find on people.apache.org at the directory:
+
+-------------------------------------
+/www/www.apache.org/dist/velocity/
+-------------------------------------
+
+ Publish your GPG key in a PGP key server, such as
+ {{{http://pgp.mit.edu/} MIT Keyserver}}.
+
+* Create and upload yout SSH key
+
+ * Generate your SSH key (in this case we will use RSA encryption):
+
+---------------------------------
+ssh-keygen -t rsa
+---------------------------------
+
+ * Copy your public key to the server:
+
+--------------------------------------
+scp ~/.ssh/id_rsa.pub user@people.apache.org:.ssh/authorized_keys
+--------------------------------------
+
+ * Try to login:
+
+---------------------------------
+ssh user@people.apache.org
+---------------------------------
+
+ If it does not ask you a password, everything is ok.
+
+* Modify <<>>
+
+ Your <<>> must be modified to allow deployment.
+
+ This is the minimal configuration, obviously if you already have a <<>> file,
+ you must edit it:
+
+---------------------------
+
+
+
+ apache-site
+ YOUR_APACHE_USERNAME
+ 664
+ 775
+
+
+ apache.snapshots.https
+ YOUR_APACHE_USERNAME
+ YOUR_APACHE_PASSWORD
+
+
+ apache.releases.https
+ YOUR_APACHE_USERNAME
+ YOUR_APACHE_PASSWORD
+
+
+
+
+ release
+
+ YOUR_SECRET_PHRASE
+
+
+
+
+
+---------------------------
+
+Repeatable operations
+
+ These steps must be performed <> release.
+
+* Prepare the release tag
+
+ To prepare the release Subversion tag, check out the branch/trunk from where
+ you are preparing the release and type:
+
+-----------------------------------
+mvn release:prepare -Dusername=YOUR_SVN_USER -Dpassword=YOUR_SVN_PASSWORD
+-----------------------------------
+
+ The plugin interactively will ask you the version to release, the Subversion
+ tag to use and the next snapshot version. It is reccomended to use the tag:
+ <> (the default).
+
+* Perform the Release
+
+ To perform the release, i.e. creating and deploying Maven artifacts, use:
+
+-----------------------------------
+mvn release:perform
+-----------------------------------
+
+* Close the staging repository
+
+ Login to {{{https://repository.apache.org using} Nexus repository}} your Apache LDAP credentials.
+ Click on "Staging". Then click on "velocity" in the list of repositories.
+ In the panel below you should see an open repository that is linked to your username and ip.
+ Right click on this repository and select "Close".
+ This will close the repository from future deployments and make it available for others to view.
+ If you are staging multiple releases together, skip this step until you have staged everything.
+ Enter the name and version of the artifact being released in the "Description" field and then click "Close".
+ This will make it easier to identify it later.
+
+* Verify the staged artifacts
+
+ If you click on your repository, a tree view will appear below.
+ You can then browse the contents to ensure the artifacts are as you expect them.
+ Pay particular attention to the existence of *.asc (signature) files.
+ If the you don't like the content of the repository, right click your repository and choose "Drop".
+ You can then rollback your release and repeat the process.
+
+ Note the repository URL, you will need this in your vote email.
+
+* Digest and upload assemblies
+
+ * Go into the release assembly target directory:
+
+-----------------------------------
+cd target/checkout/assembly/target/assembly/out
+-----------------------------------
+
+ * Create MD5 and SHA1 files for each files (including ASC files). You can do
+ it with this simple shell script:
+
+-----------------------------------
+#!/bin/sh
+
+for fileitem in *
+do
+ openssl md5 < $fileitem > $fileitem.md5
+ openssl sha1 < $fileitem > $fileitem.sha1
+done
+-----------------------------------
+
+ * Upload everything to the build site:
+
+-----------------------------------
+scp * user@people.apache.org:/www/people.apache.org/builds/velocity-engine-parent/${version}
+-----------------------------------
+
+* Release the JIRA version
+
+ * In JIRA go to the version that you want to release and release it.
+
+ * Create a new version, if it has not been done before.
+
+ * Create the release notes and <> that it uses.
+
+* Send announcement for the test build
+
+ In <> send an announcement for the test build:
+
+-----------------------------------
+Subject: [ANNOUNCE] Velocity Engine ${version} test build available
+
+The test build of Velocity Engine ${version} is available.
+
+
+No determination as to the quality ('alpha,' 'beta,' or 'GA') of Velocity Engine
+${version} has been made, and at this time it is simply a "test build". We
+welcome any comments you may have, and will take all feedback into
+account if a quality vote is called for this build.
+
+Release notes:
+
+* ${jira.release.notes}
+
+Distribution:
+
+ * http://people.apache.org/builds/velocity-engine-parent/${version}/
+
+Maven 2 staging repository:
+
+ * https://repository.apache.org/content/repositories/velocity-[YOUR REPOSITORY ID]/
+
+A vote regarding the quality of this test build will be initiated
+within the next couple of days.
+-----------------------------------
+
+* Call for a vote
+
+ A few days after the test build announcement, call for a vote in
+ <>.
+
+-----------------------------------
+Subject: [VOTE] ${version} Release Quality
+
+The Velocity Engine ${version} test build has been available since ${testBuildDate}.
+
+Release notes:
+
+* ${jira.release.notes}
+
+Distribution:
+
+ * http://people.apache.org/builds/velocity-engine-parent/${version}/
+
+Maven 2 staging repository:
+
+ * https://repository.apache.org/content/repositories/velocity-[YOUR REPOSITORY ID]/
+
+If you have had a chance to review the test build, please respond with
+a vote on its quality:
+
+ [ ] Leave at test build
+ [ ] Alpha
+ [ ] Beta
+ [ ] General Availability (GA)
+
+
+Everyone who has tested the build is invited to vote. Votes by PMC
+members are considered binding. A vote passes if there are at least
+three binding +1s and more +1s than -1s.
+-----------------------------------
+
+* Post-vote operations
+
+ After a vote is finished, and it has been decided that is
+ <>, there is the need of a post-vote process.
+
+** Promote staged artifacts
+
+ Once the release is deemed fit for public consumption it can be transfered to a production repository where it will be available to all users.
+
+ Login to {{{https://repository.apache.org}Nexus repository}} again.
+ Click on "Staging" and then on the repository with id "velocity-staging".
+ Find your closed staging repository, right click on it and choose "Promote".
+ Select the "Releases" repository and click "Promote".
+
+ Next click on "Repositories", select the "Releases" repository
+ and validate that your artifacts exist as you expect them.
+
+** Move assemblies
+
+ * Move assemblies to the Apache distribution mirrors:
+
+-------------------------------------------
+ssh user@people.apache.org
+
+cd /www/people.apache.org/builds/velocity/${version}
+mkdir /www/www.apache.org/dist/velocity/v${version}/
+cp * /www/www.apache.org/dist/velocity/v${version}/
+-------------------------------------------
+
+** Update the site
+
+ * Wait 24 hours to let the mirror sync to the release and then update the
+ site. In particular you have to update the index and the download pages:
+
+------------------------------------------------
+https://svn.apache.org/repos/asf/velocity/site/site/xdoc/download.xml
+https://svn.apache.org/repos/asf/velocity/site/site/news.xml
+------------------------------------------------
+
+ Build and publish the site:
+
+--------------------------------------
+mvn site
+mvn site:deploy
+--------------------------------------
+
+** Send announcement
+
+ Finally, send an an announcement to the <> and <>:
+
+--------------------------------------
+Subject: [ANNOUNCE] Velocity Engine ${version} ${quality} released
+
+The Apache Velocity team is pleased to announce the release of Velocity Engine ${version}
+${quality}.
+
+Velocity Engine ${version} is available in a binary and a source distribution.
+
+http://velocity.apache.org/download.html
+
+It is also available in the central Maven repository under Group ID
+"org.apache.velocity".
+
+The 2.0.x series of the Apache Velocity Engine framework has a minimum
+requirement of the following specification versions:
+
+* Java Standard Edition (Java SE) 1.6
+
+The release notes are available online at:
+
+* ${jira.release.notes}
+
+Please feel free to test the distribution and post your comments to
+the user list, or, if appropriate, file a ticket with JIRA.
+--------------------------------------
+
+ <>
\ No newline at end of file
Modified: velocity/engine/branches/2.0_Exp/src/site/site.xml
URL: http://svn.apache.org/viewvc/velocity/engine/branches/2.0_Exp/src/site/site.xml?rev=1039326&r1=1039325&r2=1039326&view=diff
==============================================================================
--- velocity/engine/branches/2.0_Exp/src/site/site.xml (original)
+++ velocity/engine/branches/2.0_Exp/src/site/site.xml Fri Nov 26 12:17:45 2010
@@ -87,6 +87,7 @@
+
-
Ant is also an Apache project, and can be
-found here. To build Apache Velocity, you need at least Version 1.6 of Apache Ant.
+
Maven is also an Apache project.
+To build Apache Velocity, you need at least Version 2.2.1 of Apache Maven.
-
-The directory tree of the distribution looks like:
-
-
-
-
-To make building Velocity easy and consistent, we require an Apache project
-called Ant version 1.6 or
-higher to perform the build process. We assume that you have followed
-Ant's installation instructions and have it properly installed.
+To build Velocity we require Maven
+version 2.2.1 or higher (Mave 3 can be used too) to perform the build process.
+We assume that you have followed Maven's installation instructions and have it properly installed.
-Velocity requires JDK 1.4 or greater to compile. It's possible to use JDK 1.3
-to compile but several useful features will not be included. Velocity requires
-a minimum of JDK 1.3 to run.
+Velocity requires JDK 1.6 or greater to compile.
Finally, if you wish to modify Velocity's grammar you will need to a tool
-called JavaCC. We recommend
+called JavaCC. We recommend
version 3.2 or greater (for compatibility with JDK 1.5 syntax changes).
-
-
-
Velocity requires various third party jar files for compiling and
-for running. Not all jar files are required in all cases. When
-building, all dependencies will be downloaded automatically. You can
-control the download with the skip.jar.loading and
-force.jar.loading properties in the
-build.properties file.
-
-
-
-
-
-
Jar
-
Purpose
-
Required at Runtime?
-
-
-
-
antlr-2.7.5.jar
-
XML parsing (XPath queries in particular)
-
Only for Anakia
-
-
-
avalon-logkit-2.1.jar
-
Possible means of logging
-
No
-
-
-
commons-collection-3.1.jar
-
Used in parsing configuration
-
Yes
-
-
-
commons-lang-2.1.jar
-
Various String utility functions
-
Yes
-
-
-
commons-logging-1.1.jar
-
To redirect log output to commons-logging
-
Only for those using commons-logging
-
-
-
jdom-1.0.jar
-
XML parsing
-
Only for Anakia
-
-
-
log4j.1.2.12.jar
-
Possible means of logging
-
No
-
-
-
oro-2.0.8.jar
-
For regular expression parsing in tests and event handlers
-
Only for reference escaping event handlers
-
-
-
servletapi-2.3.jar
-
For the deprecated VelocityServlet and redirecting log output to the servlet log.
-
Only for VelocityServlet or ServletLogChute
-
-
-
werken-xpath-0.9.4.jar
-
XML parsing
-
Only for Anakia
-
-
-
junit-3.8.1.jar
-
For running unit tests
-
No
-
-
-
hsqldb-1.7.1.jar
-
For running database related unit tests
-
No
-
-
-
ant.jar
-
Required for compilation. Provided by the ant build tool.
-
No
-
-
-
-
-
-Note that you can always create a jar with all required run-time dependencies by executing the
-jar-dep task.
-
-
-
-
In each case below, it is assumed that you were successful in getting
-the distribution from Subversion or as a nightly build, and with the latter,
+the distribution from Subversion, and with the latter,
were successful in unpacking. Also, it is assumed that you are starting
in the 'velocity' directory, the root of the distribution tree.
All directory references will be relative to 'velocity'.
@@ -201,151 +86,27 @@ build). Then, to build the jar fi
-Executing this script will create a bin directory
-within the Velocity distribution directory. The bin
-directory will contain the compiled class files (inside a
-classes directory) as well as a
-velocity-XX.jar file, where XX is the current
-version number. Be sure to update your classpath to include Velocity's
-.jar file.
+Executing this script will create a target directory
+within the Velocity distribution directory. Each subdirectory
+containing a module of Velocity will contain a "target" directory
+too, containing all built jars. In the "velocity-assembly" module
+you will find built distributions.
-Note that to build any of the specific build targets simply add
-the target name to the command line. For example, to build the Javadoc
-API documentation:
+Refer to Maven documentation for all phases you can invoke.
-
-
-
-
Some of the most useful targets are:
-
-
-
-
- jar builds the complete Velocity jar in the
- bin directory. This jar will be called 'velocity-X.jar',
- where 'X' is the current version number. This jar does not include
- necessary dependencies for Velocity. If you use this
- target, you must put the required dependent jars in your CLASSPATH (or WEB-INF/lib).
- For convenience, you can use the jar-dep target to build
- a jar with all required dependent classes included.
-
-
- jar-dep builds the complete Velocity jar in
- the bin directory.
-
-
- clean deletes all generated classes, jars, documentation, and other files.
-
-
- real-clean like clean but also deletes all downloaded jars.
-
-
- docs builds these docs in the docs directory
- using Velocity's Anakia XML transformation tool.
- Allows you to use
- Velocity templates in place of stylesheets
- - give it a try!
-
-
- examples builds the example code in the example programs
- found in the examples directory.
-
-
- jar-src bundles all the Velocity source code into a single
- jar, placed in the bin directory.
-
-
- javadocs builds the Javadoc class documentation in the
- docs/api directory
-
-
- package will generate the complete Velocity distribution package.
-
-
- parser will compile the JavaCC parser files from src/Parser.jjt into
- the appropriate Java source files. Requires JavaCC 3.2+ to be installed, and the
- property javacc.home to contain a path to the installed JavaCC directory.
-
-
- test (after jar) will test Velocity against its testbed
- suite of test routines.
-
-
-
-
-
-Velocity should build 'out of the box', independent of your classpath.
-If you get an error building Velocity, try a different nightly build (as
-sometimes we make a mistake and the Subversion at the time of the nightly
-snapshot isn't complete) or refresh from Subversion (you might have gotten a
-Subversion snapshot while a developer was checking things in.)
-
-
-
-If the problems persist, do not hesitate to ask the Velocity community
+If you find a problem, do not hesitate to ask the Velocity community
via our mail lists. They can be found here.
-
-
-
-
-
-
-
-The Velocity developers use an automated test facility, and it is
-included in the distribution. You can use it to make sure that all is
-well with your build of Velocity.
-
-
-
The tests are run with the ant task <junit>. For ant 1.6, this task requires that
-junit.jar be copied into the lib subdirectory of your
-ant directory. For ant 1.7 this is not required.
-
-
-
-To run the test suite, simply use the build target
-test when you build:
+href="http://velocity.apache.org/contact.html">here.
-
-
-
-If all is well, you should see output similar to:
-
-
-
-
-
-Note that the number of tests may vary from those shown above, but if
-you see 'OK' after the tests are run, all is well.
-