Using querydsl 5.0.0, exact same setup in maven except one has no jakarta classifier and an 11 jvm, and the other adds the jakarta classifier and uses java 17. The java classifier plus java 17 version fails with "Attempt to recreate a file for type.."
<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-apt</artifactId>
<classifier>jakarta</classifier>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-jpa</artifactId>
<classifier>jakarta</classifier>
<version>5.0.0</version>
</dependency>
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>1.1.3</version>
<executions>
<execution>
<id>jpa</id>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/java</outputDirectory>
<processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
</configuration>
</execution>>
</executions>
</plugin>
In the jvm 11 non-jakarta case the apt processor executes only during the generate-sources phase, in the jvm 17 jakarta case the apt processor also executes on the compilation phase...
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ smallmind-persistence ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 216 source files to C:\Users\david\Documents\Nutshell\empyrean\aeon\pantheon\org\smallmind\persistence\target\classes
Attempt to recreate a file for type org.smallmind.persistence.orm.jpa.QJPADurable
Attempt to recreate a file for type org.smallmind.persistence.orm.jpa.QTimestampedJPADurable
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Attempt to recreate a file for type org.smallmind.persistence.orm.jpa.QJPADurable
[ERROR] Attempt to recreate a file for type org.smallmind.persistence.orm.jpa.QTimestampedJPADurable
[INFO] 2 errors
This happens even when I add...
<phase>generate-sources</phase>
I think this setup is pretty vanilla. Anyone else with this issue?
Using querydsl 5.0.0, exact same setup in maven except one has no jakarta classifier and an 11 jvm, and the other adds the jakarta classifier and uses java 17. The java classifier plus java 17 version fails with "Attempt to recreate a file for type.."
In the jvm 11 non-jakarta case the apt processor executes only during the generate-sources phase, in the jvm 17 jakarta case the apt processor also executes on the compilation phase...
This happens even when I add...
<phase>generate-sources</phase>I think this setup is pretty vanilla. Anyone else with this issue?