升级Jira插件至9.x后执行atlas-debug遇类缺失错误
Jira插件升级9.x后
atlas-debug报错的解决步骤 1. 强制锁定amps-dispatcher-maven-plugin版本
控制台仍检测到8.1.2版本,说明依赖传递中拉取了旧版本,需在pom.xml显式声明插件版本:
<build> <plugins> <!-- 显式指定amps-dispatcher版本,覆盖传递依赖 --> <plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>amps-dispatcher-maven-plugin</artifactId> <version>8.16.0</version> </plugin> </plugins> <!-- 同时检查pluginManagement节点,若有该插件的旧配置,同步更新版本 --> </build>
2. 修复maven-help-plugin版本兼容问题
报错的InputLocation$StringFormatter类缺失,是因为maven-help-plugin:3.4.0与当前AMPS版本依赖的Maven核心版本不兼容。指定兼容的插件版本:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-help-plugin</artifactId> <version>3.3.0</version> </plugin>
3. 彻底清理本地缓存残留
- 执行
atlas-clean(而非mvn clean),清理Atlassian SDK专属缓存 - 手动删除本地Maven仓库中
~/.m2/repository/com/atlassian/maven/plugins/amps-dispatcher-maven-plugin/8.1.2目录 - 执行
atlas-mvn dependency:purge-local-repository -DmanualInclude=com.atlassian.maven.plugins:amps-dispatcher-maven-plugin,精准清理该插件的本地依赖
4. 验证Atlassian SDK版本匹配
执行atlas-version查看本地SDK版本,确保其对应AMPS 8.16.0(SDK版本与AMPS版本存在对应关系,若SDK版本过旧,需升级SDK至匹配版本)
内容的提问来源于stack exchange,提问作者EJoshuaS
相关产品推荐
相关产品推荐

