我正在 Maven 中运行 Spoon 启动器,但它没有找到处理器类路径。
Maven 调试语句:
DEBUG spoon.Launcher - template classpath: []
INFO spoon.Launcher - Spoon version 7.0.0
INFO spoon.Launcher - running Spoon...
INFO spoon.Launcher - start processing...
当到达最后一条语句时,它会卡住并且不会继续超过该点。
<plugin>
<groupId>fr.inria.gforge.spoon</groupId>
<artifactId>spoon-maven-plugin</artifactId>
<executions>
<execution>
<configuration>
<processors>
<processor>com.xxxxxx.spoon.utils.RootElementAnnotationProcessor</processor>
</processors>
<processorProperties>
<processorProperty>
<name>com.xxxxxx.spoon.utils.RootElementAnnotationProcessor</name>
<properties>
<property>
<name>classToUpdate</name>
<value>com.xxxxxx.rnaservices.Geocode</value>
</property>
</properties>
</processorProperty>
</processorProperties>
</configuration>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
最佳答案
似乎是一个错误。您会在 Github 上提出问题吗?
关于java - 如何在 Spoon-maven-plugin 中配置 Spoon 处理器类路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57696505/