HHH-13127 Update a few things in the metamodel generator documentation

This commit is contained in:
Guillaume Smet 2018-11-29 17:03:41 +01:00
parent d056e39cc1
commit 38fd1be16d

View File

@ -167,7 +167,7 @@ appropriate and all classes X, Y, Z, and K.
== Usage
The jar file for the annotation processor can be found in the
http://repository.jboss.com/[JBoss Maven repository] under:
https://search.maven.org/[Maven Central repository] under:
====
[source, XML]
@ -182,10 +182,10 @@ http://repository.jboss.com/[JBoss Maven repository] under:
====
Alternatively, it can be found in the ORM distribution bundle on
http://sourceforge.net/projects/hibernate/files/hibernate4[SourceForge].
https://sourceforge.net/projects/hibernate/files/hibernate-orm/[SourceForge].
In most cases the annotation processor will automatically run provided
the processor jar is added to the build classpath and a JDK >6 is used.
the processor jar is added to the build classpath.
This happens due to Java's Service Provider contract and the fact
the Hibernate Static Metamodel Generator jar files contains the
file _javax.annotation.processing.Processor_ in the _META-INF/services_ directory.
@ -246,8 +246,8 @@ pass the processor option to the compiler plugin:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.8</source>
<target>1.8</target>
<compilerArguments>
<processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
</compilerArguments>
@ -273,14 +273,14 @@ plugin as seen in below.
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.8</source>
<target>1.8</target>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>
----
====
Once disabled, the http://code.google.com/p/maven-annotation-plugin[maven-processor-plugin]
Once disabled, the https://bsorrentino.github.io/maven-annotation-plugin/[maven-processor-plugin]
for annotation processing can be used:
[[maven-processor-plugin]]