【问题标题】:WSO2 and VSCODE build .car file failWSO2 和 VSCODE 构建 .car 文件失败
【发布时间】:2023-01-12 06:07:35
【问题描述】:

我想从 Integration stuido 切换到 VSCode,我按照教程安装了 java 11 和 maeven 3.8,创建了一个简单的代理,然后运行命令“wso2ei:Build integration project”,这是我遇到的问题: 你能告诉我程序吗? 1000 提前致谢

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.wso2.maven:vscode-car-plugin:5.2.29 or one of its dependencies could not be resolved: Failed to collect dependencies at org.wso2.maven:vscode-car-plugin:jar:5.2.29 -> org.wso2.maven:org.wso2.maven.core:jar:5.2.29 -> org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4 @ 
[ERROR] Unknown packaging: car @ line 24, column 16
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.test.esb:com.test.esb.project:1.0-SNAPSHOT (c:\Users\Shadow\Documents\2023-VS-WSO2\TestEsbProjectV0.75\com.test.esb.project\pom.xml) has 2 errors
[ERROR]     Unresolveable build extension: Plugin org.wso2.maven:vscode-car-plugin:5.2.29 or one of its dependencies could not be resolved: Failed to collect dependencies at org.wso2.maven:vscode-car-plugin:jar:5.2.29 -> org.wso2.maven:org.wso2.maven.core:jar:5.2.29 -> org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4: Failed to read artifact descriptor for org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4: Could not transfer artifact org.apache.ws.commons.axiom.wso2:axiom:pom:1.2.11.wso2v4 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [wso2.releases (http://maven.wso2.org/nexus/content/repositories/releases/, default, releases+snapshots), wso2.snapshots (http://maven.wso2.org/nexus/content/repositories/snapshots/, default, snapshots), wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/, default, releases+snapshots)] -> [Help 2]
[ERROR]     Unknown packaging: car @ line 24, 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

我试图修改 pom.xml 文件 找到 vscode.car.plugin 尝试使用最新版本 5.2.39

【问题讨论】:

    标签: wso2


    【解决方案1】:

    更改您的 pom.xml 文件,maven 存储库地址从 http://...https://... 从版本 3.8.1 开始,maven 可以安全地阻止 http 请求。显示的是什么:

    maven-default-http-blocker (http://0.0.0.0/) ...

    以及其他一些解决方法: https://stackoverflow.com/a/67002852/2760506

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-09-16
      • 2014-10-21
      • 1970-01-01
      • 2019-08-03
      • 2019-01-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多