From a3808c41b92c398a4efb4f211d37b6324cc2b095 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Wed, 19 Oct 2005 00:52:41 +0000 Subject: [PATCH] o using a snippet in the Antlr plug-in for the generating sources guide git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@326312 13f79535-47bb-0310-9956-ffa450edef68 --- .../apt/guides/mini/guide-generating-sources.apt | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/maven-site/src/site/apt/guides/mini/guide-generating-sources.apt b/maven-site/src/site/apt/guides/mini/guide-generating-sources.apt index cf72bd761c..b385704f25 100644 --- a/maven-site/src/site/apt/guides/mini/guide-generating-sources.apt +++ b/maven-site/src/site/apt/guides/mini/guide-generating-sources.apt @@ -1,24 +1,17 @@ ------ - Guide to Generating Sources + Guide to generating Sources ------ Jason van Zyl ------ 12 October 2005 ------ +Guide to generating sources + Let's run though a short example to try and help. To generate sources you must first have a plugin that participates in the generate-sources phase like the Antlr plugin: -+----+ - -/** - * @goal generate - * @phase generate-sources - * @requiresDependencyResolution compile - * @description Antlr plugin - */ - -+----+ +%{snippet|id=generate-sources-0|url=http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AntlrPlugin.java} The first two lines say "I want to be fit into the generate-sources phase and my 'handle' is generate".