首页 > 解决方案 > 如何在spoon-maven-plugin 中配置spoon 处理器类路径?

问题描述

我在 Maven 中运行勺子启动器,但它没有找到处理器类路径。

Maven 调试语句:

调试spoon.Launcher - 模板类路径:[]
INFOspoon.Launcher - Spoon 版本 7.0.0
INFOspoon.Launcher - 运行 Spoon...
INFOspoon.Launcher - 开始处理...

当它到达最后一个语句时,它会冻结并且不会继续超过那个点。

<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>

标签: javamaven-plugininria-spoon

解决方案


似乎是一个错误。你会在 Github 上打开一个问题吗?


推荐阅读