[JIRA] (HHH-15574) jpamodelgen doesn't generate meta model
by Jordi Cabré (JIRA)
Jordi Cabré ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=633be30... ) *updated* an issue
Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYjk3MGNiZmNj... ) / Bug ( https://hibernate.atlassian.net/browse/HHH-15574?atlOrigin=eyJpIjoiYjk3MG... ) HHH-15574 ( https://hibernate.atlassian.net/browse/HHH-15574?atlOrigin=eyJpIjoiYjk3MG... ) jpamodelgen doesn't generate meta model ( https://hibernate.atlassian.net/browse/HHH-15574?atlOrigin=eyJpIjoiYjk3MG... )
Change By: Jordi Cabré ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=633be30... )
Here my related {{pom.xml}} snippet:
{code:xml}<properties>
<java.version>11</java.version>
<lombok.version>1.18.24</lombok.version>
<org.mapstruct.version>1.5.2.Final</org.mapstruct.version>
<hibernate-reactive.version>1.1.8.Final</hibernate-reactive.version>
<hibernate-jpamodelgen.version>6.1.3.Final</hibernate-jpamodelgen.version>
</properties>
<dependencies>
<dependency>
<groupId>org.hibernate.reactive</groupId>
<artifactId>hibernate-reactive-core</artifactId>
<version>${hibernate-reactive.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version> 6 ${hibernate-jpamodelgen. 3.1.Final version} </version>
< scope>provided< / scope>
</ dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>${org.mapstruct.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
</dependencies>{code}
As you can see, I'm using {{lombok}} + {{mapstruct}} + {{japmodelgen}}.
My problem is that metamodel is not generated but I'm not getting any reason or message about. It seems it's failing silently.
My entity class is annotated using {{javax.persistence.*}} annotations:
{code:java}import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "GITTBQDCF")
public class QdCF {
//...
}{code}
I've also tested with several configurations of {{maven-compiler-plugin}}:
However, static meta model class `QdCF_` is not generated:
{code:xml}<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<release>${java.version}</release>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>${hibernate-jpamodelgen.version}</version>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>org.projectlombok</groupId>
<version>${lombok.version}</version>
<artifactId>lombok</artifactId>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>org.projectlombok</groupId>
<version>0.2.0</version>
<artifactId>lombok-mapstruct-binding</artifactId>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>{code}
After having buit:
{noformat}$ mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< cat.gencat.clt.git:backend >--------------------
[INFO] Building backend 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ backend —
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] — maven-compiler-plugin:3.10.1:compile (default-compile) @ backend —
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 71 source files to /home/jeusdi/projects/cultura/git/repositories/backend/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.493 s
[INFO] Finished at: 2022-10-03T08:03:41+02:00
[INFO] ------------------------------------------------------------------------{noformat}
I don't quite figure out what I'm doing wrong...
Any ideas?
Could I enable some kind of jpamodelgen logging?
( https://hibernate.atlassian.net/browse/HHH-15574#add-comment?atlOrigin=ey... ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-15574#add-comment?atlOrigin=ey... )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.... ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailN... ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207- sha1:bddf6e1 )
2 years, 2 months
[JIRA] (HHH-15574) jpamodelgen doesn't generate meta model
by Jordi Cabré (JIRA)
Jordi Cabré ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=633be30... ) *updated* an issue
Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNzIyYWY0NDUx... ) / Bug ( https://hibernate.atlassian.net/browse/HHH-15574?atlOrigin=eyJpIjoiNzIyYW... ) HHH-15574 ( https://hibernate.atlassian.net/browse/HHH-15574?atlOrigin=eyJpIjoiNzIyYW... ) jpamodelgen doesn't generate meta model ( https://hibernate.atlassian.net/browse/HHH-15574?atlOrigin=eyJpIjoiNzIyYW... )
Change By: Jordi Cabré ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=633be30... )
Here my related ` {{ pom.xml ` }} snippet:
```lang-xml
{code:xml} <properties>
<java.version>11</java.version>
<lombok.version>1.18.24</lombok.version>
<org.mapstruct.version>1.5.2.Final</org.mapstruct.version>
<hibernate-reactive.version>1.1.8.Final</hibernate-reactive.version>
<hibernate-jpamodelgen.version>6.1.3.Final</hibernate-jpamodelgen.version>
</properties>
<dependencies>
<dependency>
<groupId>org.hibernate.reactive</groupId>
<artifactId>hibernate-reactive-core</artifactId>
<version>${hibernate-reactive.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>6.3.1.Final</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>${org.mapstruct.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
</dependencies> {code}
```
As you can see, I'm using ` {{ lombok ` }} + ` {{ mapstruct ` }} + ` {{ japmodelgen ` }}.
My problem is that metamodel is not generated but I'm not getting any reason or message about. It seems it's failing silently.
My entity class is annotated using {{ javax.persistence.* }} annotations:
```lang-java
{code:java} import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "GITTBQDCF")
public class QdCF {
//...
} {code}
```
I've also tested with several configurations of ` {{ maven-compiler-plugin ` }} :
However, static meta model class ` QdCF_ ` `lang-xml is not generated:
{code:xml} <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<release>${java.version}</release>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>${hibernate-jpamodelgen.version}</version>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>org.projectlombok</groupId>
<version>${lombok.version}</version>
<artifactId>lombok</artifactId>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>org.projectlombok</groupId>
<version>0.2.0</version>
<artifactId>lombok-mapstruct-binding</artifactId>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin> {code}
```
However, static meta model class `QdCF_` is not generated
After having buit :
```
{noformat}$ mvn compile 07:37:14
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------- - < cat.gencat.clt.git:backend >-------------------- -
[INFO] Building backend 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- — maven-resources-plugin:2.6:resources (default-resources) @ backend --- —
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- — maven-compiler-plugin:3.10.1:compile (default-compile) @ backend --- —
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 71 source files to /home/jeusdi/projects/cultura/git/repositories/backend/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.493 s
[INFO] Finished at: 2022-10-03T08:03:41+02:00
[INFO] ------------------------------------------------------------------------ {noformat}
```
I don't quite figure out what I'm doing wrong...
Any ideas?
Could I enable some king kind of jpamodelgen logging?
( https://hibernate.atlassian.net/browse/HHH-15574#add-comment?atlOrigin=ey... ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-15574#add-comment?atlOrigin=ey... )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.... ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailN... ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207- sha1:bddf6e1 )
2 years, 2 months
[JIRA] (HHH-15574) jpamodelgen doesn't generate meta model
by Jordi Cabré (JIRA)
Jordi Cabré ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=633be30... ) *created* an issue
Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZmMyYjQ3Njk3... ) / Bug ( https://hibernate.atlassian.net/browse/HHH-15574?atlOrigin=eyJpIjoiZmMyYj... ) HHH-15574 ( https://hibernate.atlassian.net/browse/HHH-15574?atlOrigin=eyJpIjoiZmMyYj... ) jpamodelgen doesn't generate meta model ( https://hibernate.atlassian.net/browse/HHH-15574?atlOrigin=eyJpIjoiZmMyYj... )
Issue Type: Bug Affects Versions: 6.1.3 Assignee: Unassigned Components: hibernate-jpamodelgen Created: 04/Oct/2022 00:44 AM Priority: Major Reporter: Jordi Cabré ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=633be30... )
Here my related `pom.xml` snippet:
```lang-xml
<properties>
<java.version>11</java.version>
<lombok.version>1.18.24</lombok.version>
<org.mapstruct.version>1.5.2.Final</org.mapstruct.version>
<hibernate-reactive.version>1.1.8.Final</hibernate-reactive.version>
<hibernate-jpamodelgen.version>6.1.3.Final</hibernate-jpamodelgen.version>
</properties>
<dependencies>
<dependency>
<groupId>org.hibernate.reactive</groupId>
<artifactId>hibernate-reactive-core</artifactId>
<version>$
{hibernate-reactive.version}
</version>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>6.3.1.Final</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>$
{org.mapstruct.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
```
As you can see, I'm using `lombok` + `mapstruct` + `japmodelgen`.
My problem is that metamodel is not generated but I'm not getting any reason or message about. It seems it's failing silently.
My entity class is annotated using javax.persistence.* annotations:
```lang-java
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "GITTBQDCF")
public class QdCF { //... }
```
I've also tested with several configurations of `maven-compiler-plugin`:
```lang-xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<release>${java.version}</release>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>${hibernate-jpamodelgen.version}</version>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>org.projectlombok</groupId>
<version>${lombok.version}</version>
<artifactId>lombok</artifactId>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>org.projectlombok</groupId>
<version>0.2.0</version>
<artifactId>lombok-mapstruct-binding</artifactId>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}
</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
```
However, static meta model class `QdCF_` is not generated:
```
mvn compile 07:37:14
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------- < cat.gencat.clt.git:backend > --------------------
[INFO] Building backend 0.0.1-SNAPSHOT
[INFO] ------------------------------- [ jar ] --------------------------------
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ backend —
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] — maven-compiler-plugin:3.10.1:compile (default-compile) @ backend —
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 71 source files to /home/jeusdi/projects/cultura/git/repositories/backend/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.493 s
[INFO] Finished at: 2022-10-03T08:03:41+02:00
[INFO] ------------------------------------------------------------------------
```
I don't quite figure out what I'm doing wrong...
Any ideas?
Could I enable some king of jpamodelgen logging?
( https://hibernate.atlassian.net/browse/HHH-15574#add-comment?atlOrigin=ey... ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-15574#add-comment?atlOrigin=ey... )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.... ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailN... ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207- sha1:bddf6e1 )
2 years, 2 months