mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-13127 Update a few things in the metamodel generator documentation
This commit is contained in:
parent
d056e39cc1
commit
38fd1be16d
@ -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]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user