METAGEN-32 Updated documentation
This commit is contained in:
parent
e83b0ca9b2
commit
ba43b863f5
|
@ -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"><plugin>
|
||||
<groupId>org.bsc.maven</groupId>
|
||||
<artifactId>maven-processor-plugin</artifactId>
|
||||
<version>1.3.7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>process</id>
|
||||
<goals>
|
||||
<goal>process</goal>
|
||||
</goals>
|
||||
<phase>generate-sources</phase>
|
||||
<configuration>
|
||||
<!-- source output directory -->
|
||||
<outputDirectory>target/metamodel</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>1.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>add-source</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>add-source</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<sources>
|
||||
<source>target/metamodel</source>
|
||||
</sources>
|
||||
</configuration>
|
||||
<phase>process-sources</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-jpamodelgen</artifactId>
|
||||
<version>&version;</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin></programlisting>
|
||||
</example>
|
||||
</section>
|
||||
|
|
Loading…
Reference in New Issue