You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-commits@maven.apache.org by sv...@apache.org on 2023/03/07 15:45:19 UTC
svn commit: r1908163 - in /maven/website/content: guides/mini/guide-generating-sources.html maven-site-1.0-site.jar
Author: svn-site-role
Date: Tue Mar 7 15:45:18 2023
New Revision: 1908163
Log:
Site checkin for project Apache Maven Site
Modified:
maven/website/content/guides/mini/guide-generating-sources.html
maven/website/content/maven-site-1.0-site.jar
Modified: maven/website/content/guides/mini/guide-generating-sources.html
==============================================================================
--- maven/website/content/guides/mini/guide-generating-sources.html (original)
+++ maven/website/content/guides/mini/guide-generating-sources.html Tue Mar 7 15:45:18 2023
@@ -158,8 +158,7 @@ Karl Heinz Marbaise" />
<main id="bodyColumn" class="span10" >
<section>
<h1>Guide to generating sources</h1>
-<p>Let's run though a short example to try and help. To generate sources you must first have a plugin that participates in the <code>generate-sources</code> phase like the <a class="externalLink" href="http://www.antlr.org/api/maven-plugin/latest/">ANTLR4 Maven Plugin</a>.</p>
-<p>So this is all fine and dandy, we have a plugin that wants to generate some sources from a Antlr4 grammar but how do we use it. You need to specify that you want to use it in your POM:</p>
+<p>Let's run though a short example. To generate sources you must first have a plugin that participates in the <code>generate-sources</code> phase like the <a class="externalLink" href="https://www.antlr.org/api/maven-plugin/latest/">ANTLR4 Maven Plugin</a>. You configure its execution in the POM:</p>
<div class="source"><pre class="prettyprint linenums">
<project>
...
@@ -183,7 +182,7 @@ Karl Heinz Marbaise" />
...
</project>
</pre></div>
-<p>If you then type <code>mvn compile</code> Maven will walk through the <a href="../introduction/introduction-to-the-lifecycle.html">lifecycle</a> and will eventually hit the <code>generate-sources</code> phase and see you have a plugin configured that wants to participate in that phase and the ANTLR4 Maven Plugin is executed with your given configuration. Furthermore during the compile you can observe that all the generated code (from your grammar files) will automatically being compiled without supplemental configuration.</p></section>
+<p>When you type <code>mvn compile</code>, Maven walks through the <a href="../introduction/introduction-to-the-lifecycle.html">lifecycle</a> and eventually hits the <code>generate-sources</code> phase. It sees that a plugin is configured that wants to participate in that phase, and executes the ANTLR4 Maven Plugin with the given configuration. Later, during the compile phase, all the code generated from the grammar files is compiled without further configuration.</p></section>
</main>
</div>
</div>
Modified: maven/website/content/maven-site-1.0-site.jar
==============================================================================
Binary files - no diff available.