在新 macbook 上构建适配器时出错

Error building adapters on new macbook

在 运行

时遇到这个问题
mfpdev adapter build all

WARNING] 'build.plugins.plugin.version' for com.ibm.mfp:adapter-maven-plugin is missing. @ line 45, column 21 [ERROR] Unresolveable build extension: Plugin com.ibm.mfp:adapter-maven-plugin:8.0.2017021701 or one of its dependencies could not be resolved: Failed to collect dependencies at com.ibm.mfp:adapter-maven-plugin:jar:8.0.2017021701 -> javax.xml:jaxp-api:jar:1.4.2 @ [ERROR] Unknown packaging: adapter @ line 12, column 16 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project my.com.ge:loginAdapter:1.0-SNAPSHOT (/Users/clheng/MPOS/mpos_gelm_fo_mfp8_adapters/loginAdapter/pom.xml) has 2 errors [ERROR] Unresolveable build extension: Plugin com.ibm.mfp:adapter-maven-plugin:8.0.2017021701 or one of its dependencies could not be resolved: Failed to collect dependencies at com.ibm.mfp:adapter-maven-plugin:jar:8.0.2017021701 -> javax.xml:jaxp-api:jar:1.4.2: Failed to read artifact descriptor for javax.xml:jaxp-api:jar:1.4.2: Could not transfer artifact javax.xml:jaxp-api:pom:1.4.2 from/to remote-repos (http://ec2-54-254-246-162.ap-southeast-1.compute.amazonaws.com/artifactory/remote-repos): Access denied to: http://ec2-54-254-246-162.ap-southeast-1.compute.amazonaws.com/artifactory/remote-repos/javax/xml/jaxp-api/1.4.2/jaxp-api-1.4.2.pom, ReasonPhrase: Forbidden. -> [Help 2] [ERROR] Unknown packaging: adapter @ line 12, column 16 [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException

Error building adapter loginAdapter. See the preceding messages for details.

由于这是共享的 Macbook,先前在 .m2 文件夹中的设置将从上面的 link 下载其他文件。删除它解决了问题。

在 macbook 上全新安装 maven 不会遇到此问题。谢谢。