Skip to content

No KSP processors found when ksp processor not defined as project dependency #21

@mcarleio

Description

@mcarleio

I tried it out with my konvert example, but could not get it running without defining the processor as a project dependency. Otherwise, the plugin did not find the KSP processor:

[INFO] --- ksp:0.1.1:process (default) @ konvert-maven-example ---
[INFO] No KSP processors found in dependencies, skipping KSP processing

This is how I configured it (not working):

<plugin>
    <groupId>me.kpavlov.ksp.maven</groupId>
    <artifactId>ksp-maven-plugin</artifactId>
    <version>0.1.1</version>
    <executions>
        <execution>
            <goals>
                <goal>process</goal>
            </goals>
        </execution>
    </executions>
    <dependencies>
        <dependency>
            <groupId>io.mcarle</groupId>
            <artifactId>konvert</artifactId> <!-- I also tried konvert-processor directly -->
            <version>4.4.0</version>
        </dependency>
       <dependency>
           <groupId>io.mcarle</groupId>
           <artifactId>konvert-spring-injector</artifactId> <!-- I also tried without -->
           <version>4.4.0</version>
       </dependency>
    </dependencies>
</plugin>

Once I added the processor as a project dependency, it worked:

<project>
<!-- ... -->
     <dependencies>
        <!-- ... -->
        <dependency>
            <groupId>io.mcarle</groupId>
            <artifactId>konvert-processor</artifactId>
            <version>4.4.0</version>
        </dependency>
   </dependencies>
</project>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions