Hi,

I want to implement sprint-context-indexer in my project, and I'm using ant ivy.xml. I've added the dependency, but the spring.components is not automatically generated for some reason.

Dependency:

<dependency org="org.springframework" name="spring-context-indexer" rev="5.3.12"/>

Does anyone know what is the problem, and possible solution? Thanks!

Comment From: bclozel

The spring-context-indexer module declares its processor in META-INF/services/javax.annotation.processing.Processor as expected by javac. If this dependency is on the classpath, the compiler should find it, unless you've set specific options in your javac ant task.

Please check out your javac task and the available options. If you need more assistance, please use StackOverflow.

Thanks!

Comment From: sbrannen

In addition to what @bclozel said, I wanted to point out that you likely need to use the <compilerarg ... /> element (for the <javac> element) to configure the -processorpath to include the location of the downloaded spring-context-indexer JAR.

Searching for "ant ivy annotation processor" on Google or Stack Overflow should return helpful results.