0

我遇到了从平台分支 4.0.0 构建突触 2.1.0-wso2v6 的问题:

C:\wso2\src\wso2carbon_platform_branch_400\dependencies\synapse\2.1.0-wso2v6\modules\commons>mvn clean install -Dmaven.test.skip=true 

错误日志:

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Synapse - Commons classes 2.1.0-wso2v6
[INFO] ------------------------------------------------------------------------
Downloading: http://dist.wso2.org/maven2/java-cup/java-cup/0.0/java-cup-0.0.pom
Downloading: https://server.oosnmp.net/dist/release/java-cup/java-cup/0.0/java-cup-0.0.pom
Downloading: http://repo.maven.apache.org/maven2/java-cup/java-cup/0.0/java-cup-0.0.pom
Downloading: http://dist.wso2.org/maven2/JLex/JLex/0.0/JLex-0.0.pom
Downloading: https://server.oosnmp.net/dist/release/JLex/JLex/0.0/JLex-0.0.pom
Downloading: http://repo.maven.apache.org/maven2/JLex/JLex/0.0/JLex-0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.361s
[INFO] Finished at: Thu Jul 04 15:55:04 BST 2013
[INFO] Final Memory: 8M/490M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project synapse-commons: Could not resolve dependencies for project org.apache.synapse:synapse-commons:bundle:2.1.0-wso2v6: ...
...
Could not transfer artifact java-cup:java-cup:pom:0.0 from/to snmp4j-repo (https://server.oosnmp.net/dist/release/): hostname in certificate didn't match: <server.oosnmp.net> != <oosnmp.net> OR <oosnmp.net> -> [Help 1]

基本上,似乎找不到java-cup pom。

以下是我导致失败的步骤:

wso2\src\wso2carbon_orbit_branch_400>mvn clean install -Dmaven.test.skip=true
wso2\src\wso2carbon_orbit_branch_400\patch-releases\4.0.6>mvn clean install -Dmaven.test.skip=true

wso2\src\wso2carbon_kernel_branch_400>mvn clean install -Dmaven.test.skip=true 
wso2\src\wso2carbon_kernel_branch_400\patch-releases\4.0.6>mvn clean install -Dmaven.test.skip=true 

wso2\src\wso2carbon_platform_branch_400>mvn clean install -Dmaven.test.skip=true 
>> java-cup maven failure
4

1 回答 1

1

尝试从突触根 pom (C:\wso2\src\wso2carbon_platform_branch_400\dependencies\synapse\2.1.0-wso2v6\pom.xml) 中删除以下存储库。

    <repository>
        <id>snmp4j-repo</id>
        <name>SNMP4J Repository</name>
        <url>https://server.oosnmp.net/dist/release/</url>
        <releases>
            <updatePolicy>never</updatePolicy>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
于 2013-07-06T03:36:30.563 回答