You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing the same issue. The metamodels for JPAStreamers are not generating when using in the same projects as that with MapStruct. When tried on a separate project. That worked fine.
It seems to me like the issue is that you are pointing specifically at the Lombok and MapStruct annotation processors, but not at the JPAStreamer one, and thus it is omitted.
I came to this conclusion after conducting the following experiment:
1. Using JPAStreamer and Spring Boot only. Bare bones configuration of the Maven Compiler Plugin.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<proc>only</proc> // Using process only to only run the annotation processors with the command mvn compile
<source>17</source>
<target>17</target>
</configuration>
</plugin>
Result: mvn compile generates the JPAStreamer metamodel.
2. Using Spring Boot, JPAStreamer, Lombok, and MapStruct - copying your provided Maven Compiler Config.
Result: mvn compile fails to generate the JPAStreamer metamodel.
3. Adding the path to the JPAStreamer field generator as well under <annotationProcessorPaths>:
Result: mvn compile generates the JPAStreamer metamodel.
I'll be closing this issue with the conclusion that there is nothing inherently problematic with MapStruct in combination with JPAStreamer. Please reopen if you disagree.
I am facing the same issue. The metamodels for JPAStreamers are not generating when using in the same projects as that with MapStruct. When tried on a separate project. That worked fine.
Providing the
pom.xml
I am usingThe text was updated successfully, but these errors were encountered: