java - 如何在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>
解决方案
似乎是一个错误。你会在 Github 上打开一个问题吗?
推荐阅读
- c# - 如何使用包含通用字段的对象字典创建数据存储
- java - 为什么除非我们在 CompletableFuture 上调用 get 方法,否则 CompletableFuture 中的 runAsync 方法不会执行?
- python - 如何使用熊猫将多行文本合并为一个ID
- javascript - Lodash - 将具有与子对象相同键的另一个数组中的对象合并到主数组
- python - Discord Python 安装(已解决)
- python - 在Python中替换文本文件中特定行中的str
- sql-server - 是否建议在 SQL Server 存储过程的 Catch 块中使用 GOTO 语句
- ilmerge - 使用 ILMerge 和 Kusto.Data nuget 时不允许未解析的程序集引用
- asp.net-core - 实体框架不添加多个对象
- github-actions - 单个 repo 可以包含 2 个或多个 actions.yml 吗?