METAGEN-32 Updated documentation

This commit is contained in:
Hardy Ferentschik 2010-10-04 09:14:07 +00:00 committed by Strong Liu
parent e83b0ca9b2
commit ba43b863f5
1 changed files with 14 additions and 33 deletions

View File

@ -363,53 +363,34 @@ cq.where( cb.equal(itemNode.get(Item_.id), 5 ) ).distinct(true);
</example>
<para>Once disabled, the <ulink
url="http://code.google.com/p/maven-annotation-plugin/">maven-annotation-plugin</ulink>
for annotation processing (you will need the following additional
maven repositories: <ulink
url="http://maven-annotation-plugin.googlecode.com/svn/trunk/mavenrepo">maven-annotation-plugin</ulink>
and <ulink
url="http://www.jfrog.org/artifactory/plugins-releases">jfrog</ulink>)
can be used. The configuration can be seen in <xref
linkend="maven-processor-plugin" />.</para>
url="http://code.google.com/p/maven-annotation-plugin/">maven-processor-plugin</ulink>
for annotation processing can be used. The configuration can be seen
in <xref linkend="maven-processor-plugin" />.</para>
<example id="maven-processor-plugin">
<title>Configuration with maven-annotation-plugin</title>
<title>Configuration with maven-processor-plugin</title>
<programlisting language="XML" role="XML">&lt;plugin&gt;
&lt;groupId&gt;org.bsc.maven&lt;/groupId&gt;
&lt;artifactId&gt;maven-processor-plugin&lt;/artifactId&gt;
&lt;version&gt;1.3.7&lt;/version&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;process&lt;/id&gt;
&lt;goals&gt;
&lt;goal&gt;process&lt;/goal&gt;
&lt;/goals&gt;
&lt;phase&gt;generate-sources&lt;/phase&gt;
&lt;configuration&gt;
&lt;!-- source output directory --&gt;
&lt;outputDirectory&gt;target/metamodel&lt;/outputDirectory&gt;
&lt;/configuration&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
&lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt;
&lt;version&gt;1.3&lt;/version&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;add-source&lt;/id&gt;
&lt;phase&gt;generate-sources&lt;/phase&gt;
&lt;goals&gt;
&lt;goal&gt;add-source&lt;/goal&gt;
&lt;/goals&gt;
&lt;configuration&gt;
&lt;sources&gt;
&lt;source&gt;target/metamodel&lt;/source&gt;
&lt;/sources&gt;
&lt;/configuration&gt;
&lt;phase&gt;process-sources&lt;/phase&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;dependencies&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.hibernate&lt;/groupId&gt;
&lt;artifactId&gt;hibernate-jpamodelgen&lt;/artifactId&gt;
&lt;version&gt;&version;&lt;/version&gt;
&lt;scope&gt;compile&lt;/scope&gt;
&lt;/dependency&gt;
&lt;/dependencies&gt;
&lt;/plugin&gt;</programlisting>
</example>
</section>