【问题标题】:How to configure spoon processors classpath in spoon-maven-plugin?如何在spoon-maven-plugin 中配置spoon 处理器类路径?
【发布时间】:2020-01-01 22:09:43
【问题描述】:

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

Maven 调试语句:

调试spoon.Launcher - 模板类路径:[]
信息spoon.Launcher - Spoon 版本 7.0.0
信息勺子。启动器 - 正在运行的勺子...
INFO spoon.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>

【问题讨论】:

  • 请移除标签 [maven-plugin]。您没有开发 Maven 插件,因此它不适用。提示:您始终可以将鼠标悬停在标签上以查看其用途。

标签: java maven-plugin inria-spoon


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2016-12-24
    • 1970-01-01
    • 2022-11-09
    • 2012-03-03
    • 2016-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多