Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q-Classes are not generating in 6.X versions #712

Closed
urtxintxa opened this issue Dec 5, 2024 · 2 comments
Closed

Q-Classes are not generating in 6.X versions #712

urtxintxa opened this issue Dec 5, 2024 · 2 comments

Comments

@urtxintxa
Copy link

urtxintxa commented Dec 5, 2024

Hi,

First of all, thank you for continuing to develop this amazing project! :)

I am in the process of migrating to this new dependency, but I am encountering issues with the Q-Classes.

Here is my current maven-compiler-plugin configuration using version 5.6:

 <plugin>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>3.10.1</version>
  <executions>
    <execution>
      <id>default-compile</id>
      <phase>compile</phase>
      <goals>
        <goal>compile</goal>
      </goals>
      <configuration>
        <source combine.children="append">21</source>
        <target combine.children="append">21</target>
        <compilerArgs combine.children="append">
          <arg>-Xpkginfo:always</arg>
          <arg>-Aquerydsl.packageSuffix=.querydsl</arg>
        </compilerArgs>
        <annotationProcessorPaths combine.children="append">
          <path>
            <groupId>org.mapstruct</groupId>
            <artifactId>mapstruct-processor</artifactId>
            <version>1.5.3.Final</version>
          </path>
          <path>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.30</version>
          </path>
          <path>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok-mapstruct-binding</artifactId>
            <version>0.2.0</version>
          </path>
          <path>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context-indexer</artifactId>
            <version>5.3.39</version>
          </path>
          <path>
            <groupId>io.github.openfeign.querydsl</groupId>
            <artifactId>querydsl-apt</artifactId>
            <version>5.6</version>
            <classifier>jpa</classifier>
          </path>
          <path>
            <groupId>jakarta.persistence</groupId>
            <artifactId>jakarta.persistence-api</artifactId>
            <version>2.2.3</version>
          </path>
        </annotationProcessorPaths>
        <debug combine.children="append">true</debug>
        <parameters>true</parameters>
      </configuration>
    </execution>
    <execution>
      <id>default-testCompile</id>
      <phase>test-compile</phase>
      <goals>
        <goal>testCompile</goal>
      </goals>
      <configuration>
        <source combine.children="append">21</source>
        <target combine.children="append">21</target>
        <compilerArgs combine.children="append">
          <arg>-Xpkginfo:always</arg>
          <arg>-Aquerydsl.packageSuffix=.querydsl</arg>
        </compilerArgs>
        <annotationProcessorPaths combine.children="append">
          <path>
            <groupId>org.mapstruct</groupId>
            <artifactId>mapstruct-processor</artifactId>
            <version>1.5.3.Final</version>
          </path>
          <path>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.30</version>
          </path>
          <path>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok-mapstruct-binding</artifactId>
            <version>0.2.0</version>
          </path>
          <path>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context-indexer</artifactId>
            <version>5.3.39</version>
          </path>
          <path>
            <groupId>io.github.openfeign.querydsl</groupId>
            <artifactId>querydsl-apt</artifactId>
            <version>5.6</version>
            <classifier>jpa</classifier>
          </path>
          <path>
            <groupId>jakarta.persistence</groupId>
            <artifactId>jakarta.persistence-api</artifactId>
            <version>2.2.3</version>
          </path>
        </annotationProcessorPaths>
        <debug combine.children="append">true</debug>
        <parameters>true</parameters>
      </configuration>
    </execution>
  </executions>
  <configuration>
    <source combine.children="append">21</source>
    <target combine.children="append">21</target>
    <compilerArgs combine.children="append">
      <arg>-Xpkginfo:always</arg>
      <arg>-Aquerydsl.packageSuffix=.querydsl</arg>
    </compilerArgs>
    <annotationProcessorPaths combine.children="append">
      <path>
        <groupId>org.mapstruct</groupId>
        <artifactId>mapstruct-processor</artifactId>
        <version>1.5.3.Final</version>
      </path>
      <path>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>1.18.30</version>
      </path>
      <path>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok-mapstruct-binding</artifactId>
        <version>0.2.0</version>
      </path>
      <path>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context-indexer</artifactId>
        <version>5.3.39</version>
      </path>
      <path>
        <groupId>io.github.openfeign.querydsl</groupId>
        <artifactId>querydsl-apt</artifactId>
        <version>5.6</version>
        <classifier>jpa</classifier>
      </path>
      <path>
        <groupId>jakarta.persistence</groupId>
        <artifactId>jakarta.persistence-api</artifactId>
        <version>2.2.3</version>
      </path>
    </annotationProcessorPaths>
    <debug combine.children="append">true</debug>
    <parameters>true</parameters>
  </configuration>
</plugin>

I have tried using several versions in the 6.X series, but the Q-Classes are not being generated.

I also tried adding the following configuration:

<annotationProcessors>
  <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
</annotationProcessors>

and

 <annotationProcessorPaths>
  <annotationProcessorPath>
    <groupId>io.github.openfeign.querydsl</groupId>
    <artifactId>querydsl-apt</artifactId>
    <version>6.0.0.M3</version>
    <classifier>jpa</classifier>
  </annotationProcessorPath>
</annotationProcessorPaths>

However, neither of these solutions worked.
Is there any other workaraound?

Copy link
Contributor

github-actions bot commented Dec 5, 2024

This issue has been automatically closed because the author did not indicate they are willing to put in the effort needed to resolve it.

@github-actions github-actions bot closed this as completed Dec 5, 2024
Copy link
Contributor

github-actions bot commented Dec 5, 2024

This issue has been automatically closed because the author did not indicate they are willing to put in the effort needed to resolve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant