Skip to content

[aot repositories] smoothen support for repository aot sources/metadata #1562

Open

Description

@martinlippert

The idea is to make it a lot easier to produce the AOT generated sources/metadata for Spring Data repositories (if applicable) from inside of the IDE.

This incudes:

  • produce the AOT bits via a command or (even better) incrementally while working with the project inside of the IDE
  • integrate the generated sources as source folders to allow setting breakpoints, etc.

Activity

  1. added this to the milestone on May 19, 2025
  2. added
    for: eclipse
    for: vscode
    on May 19, 2025
  3. modified the milestones: , 4.33.0.RELEASE, 5.0.0.RELEASE on Jul 10, 2025
  4. BoykoAlex commented on Nov 13, 2025

    @BoykoAlex
    Contributor

    The command piece is being implemented in #1713

  5. modified the milestones: 5.0.0.RC1, 5.0.0.RC2 on Nov 17, 2025
  6. BoykoAlex commented on Nov 25, 2025

    @BoykoAlex
    Contributor

    The Gradle project turns out to work as expected: executing processAot task results in new source folders added in the IDE. (the project needs org.graalvm.buildtools.native in addition to org.springframework.boot plugin applied for Gradle). The maven project doesn't add the source folders in the IDE although it is sort of the same folders... Needs to be insvestigated.
    #1722 - addresses this for Gradle projects.

  7. BoykoAlex commented on Dec 4, 2025

    @BoykoAlex
    Contributor

    I looked at this again and for Maven we need some kind of m2e support to automatically make aot generated artifacts Eclipse java project source folders. Alternatively we'd need a workaround like:

     <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
            <execution>
                <id>add-source</id>
                <phase>generate-sources</phase>
                <goals>
                    <goal>add-source</goal>
                </goals>
                <configuration>
                    <sources>
                        <source>${project.build.directory}/generated-sources/java/</source>
                    </sources>
                </configuration>
            </execution>
        </executions>
     </plugin>

    It's best to start looking at this rather earlier than later in conjunction with #1722. Gradle projects are actually adding proper source folders in Eclipse.

    Moving to 5.1. Cannot be completed for 5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: eclipsefor: vscodetheme: spring-data-supporttype: enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions