使用 apache-maven-3.8.4 的 WSO2 自定义连接器构建失败

WSO2 Custom Connector Build Failure by using apache-maven-3.8.4

我尝试按照此 WSO2 Documentation

创建自定义连接器

apache-maven-3.8.4-bin 安装的先决条件已完成。

连接器:

maven 构建:

错误:

部分pom.xml:

<properties>
        <connector.name>googleBooks</connector.name>
        <integration.base.version>1.0.2</integration.base.version>
        <product.ei.version>6.1.1</product.ei.version>
        <carbon.kernel.version>4.4.17</carbon.kernel.version>
        <automation.framework.utils.version>4.4.2</automation.framework.utils.version>
        <automation.framework.version>4.4.3</automation.framework.version>
        <emma.version>2.1.5320</emma.version>
        <synapse.version>2.1.7-wso2v19</synapse.version>
        <carbon.mediation.version>4.6.19</carbon.mediation.version>
        <json.version>2.0.0.wso2v1</json.version>
        <org.testng.version>6.1.1</org.testng.version>
        <jets3t.version>0.9.4</jets3t.version>
        <bouncycastle.version>1.55</bouncycastle.version>
        <rampart.apache.version>1.6.1-wso2v18</rampart.apache.version>
        <rampart.wso2.version>1.6.1.wso2v18</rampart.wso2.version>
        <skip-tests>true</skip-tests>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.apache.synapse</groupId>
            <artifactId>synapse-core</artifactId>
            <version>${synapse.version}</version>
        </dependency>

注意: synapse-core依赖如上pom.xml

到目前为止尝试了什么:

按照这个 我试图删除下面提到的文件夹和 运行 mvn install 也没有解决问题。

.m2\repository\org\apache\synapse\synapse-core.1.7-wso2v19

任何人都可以告诉我解决这个问题的方法吗?

您需要在 pom.xml 文件中更改存储库节点中的 url 地址。您可以像下面这样使用 find/replace。

来自:<url>http://maven.wso2....

至:<url>https://maven.wso2....

从 Maven 3.8.1 开始,它阻止了 http 镜像存储库,并且仅使用 https 地址。更多内容在此 Release Notes – Maven 3.8.1