Java identity server的WSO2源代码(wso2is-3.2.3-src.zip)总是在生成时出错

Java identity server的WSO2源代码(wso2is-3.2.3-src.zip)总是在生成时出错,java,Java,我们从wso2网站下载了identity server的源代码(wso2is-3.2.3-src.zip)。解压后,发现它的版本是wso2is-3.2.0-src 我们花了两个多星期的时间在网上参考许多资料,并试图用足够的带宽来构建它。首先我们使用ant、maven 2和jdk jdk1.6.0_25。然后我们发现wso2is-3.2.0-src/products/pom.xml缺少一个末端标记“/”,并对其进行了更正。然后我们发现我们必须根据一个错误使用斯里兰卡-科伦坡时区。我们经常会耗尽内存

我们从wso2网站下载了identity server的源代码(wso2is-3.2.3-src.zip)。解压后,发现它的版本是wso2is-3.2.0-src

我们花了两个多星期的时间在网上参考许多资料,并试图用足够的带宽来构建它。首先我们使用ant、maven 2和jdk jdk1.6.0_25。然后我们发现wso2is-3.2.0-src/products/pom.xml缺少一个末端标记“/”,并对其进行了更正。然后我们发现我们必须根据一个错误使用斯里兰卡-科伦坡时区。我们经常会耗尽内存,所以我们必须使用 “导出MAVEN_OPTS=“-Xmx1280m-XX:PermSize=512m-XX:MaxPermSize=512m”-XX:ReservedCodeCacheSize=512m” “乌利米特-n 65536” 我们排除了内存不足的错误。但我们还是没能建造它

后来我们找到了这个网站链接。似乎我们必须使用maven 3.0.4。设置完所有环境变量后,我们转到目录wso2is-3.2.0-src/并键入 mvn清洁安装

但我们最终还是犯了一系列错误。我们怀疑源代码是否有误。有人成功地构建了wso2is-3.2.3-src.zip的源代码吗?我们应该如何建造它

[ERROR]     Non-resolvable parent POM: Failure to find org.wso2.carbon:deployment-synchronizer-feature:pom:3.2.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 22, column 13 -> [Help 2]
[ERROR]   
[ERROR]   The project org.wso2.carbon:org.wso2.carbon.deployment.synchronizer.server.feature:3.2.0 (/root/Desktop/wso2is-3.2.0-src/features/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.server.feature/3.2.0/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find org.wso2.carbon:deployment-synchronizer-feature:pom:3.2.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 22, column 13 -> [Help 2]
[ERROR]   
[ERROR]   The project org.wso2.carbon:org.wso2.carbon.deployment.synchronizer.ui.feature:3.2.0 (/root/Desktop/wso2is-3.2.0-src/features/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.ui.feature/3.2.0/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find org.wso2.carbon:deployment-synchronizer-feature:pom:3.2.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 22, column 13 -> [Help 2]
[ERROR]   
[ERROR]   The project org.wso2.carbon:org.wso2.carbon.ec2.client.feature:3.2.0 (/root/Desktop/wso2is-3.2.0-src/features/ec2-client/org.wso2.carbon.ec2.client.feature/3.2.0/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not find artifact org.wso2.carbon:ec2-client-feature:pom:3.2.0 in central [a link](http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @ line 22, column 13 -> [Help 2]
[ERROR]   
[ERROR]   The project org.wso2.carbon:org.wso2.carbon.esb.mediation.feature:3.2.0 (/root/Desktop/wso2is-3.2.0-src/features/esb-mediation/org.wso2.carbon.esb.mediation.feature/3.2.0/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not find artifact org.wso2.carbon:esb-mediation-feature:pom:3.2.0 in central (http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @ line 21, column 13 -> [Help 2]
[ERROR]   
[ERROR]   The project org.wso2.carbon:org.wso2.carbon.esb.mediation.server.feature:3.2.0 (/root/Desktop/wso2is-3.2.0-src/features/esb-mediation/org.wso2.carbon.esb.mediation.server.feature/3.2.0/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find org.wso2.carbon:esb-mediation-feature:pom:3.2.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 21, column 13 -> [Help 2]
[ERROR]   
[ERROR]   The project org.wso2.carbon:org.wso2.carbon.esb.mediation.ui.feature:3.2.0 (/root/Desktop/wso2is-3.2.0-src/features/esb-mediation/org.wso2.carbon.esb.mediation.ui.feature/3.2.0/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find org.wso2.carbon:esb-mediation-feature:pom:3.2.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 21, column 13 -> [Help 2]
[ERROR]   
[ERROR]   The project org.wso2.carbon:carbon-parent:3.2.0 (/root/Desktop/wso2is-3.2.0-src/core/pom.xml) has 1 error
[ERROR]     'modules.module[41]' specifies duplicate child module org.wso2.carbon.bootstrap/3.2.0 @ line 1055, column 25
[ERROR]   
[ERROR]   The project org.wso2.carbon:org.wso2.carbon.registry.indexing.ui:3.2.0 (/root/Desktop/wso2is-3.2.0-src/components/registry/org.wso2.carbon.registry.indexing.ui/3.2.0/pom.xml) has 1 error
[ERROR]     'pluginRepositories.pluginRepository.id' must be unique: wso2-maven2-repository -> http://dist.wso2.org/maven2 vs http://dist.wso2.org/snapshots/maven2 @ line 68, column 17
[ERROR]   
[ERROR]   The project org.wso2.carbon:carbon-features:3.2.0 (/root/Desktop/wso2is-3.2.0-src/features/pom.xml) has 2 errors
[ERROR]     'modules.module[14]' specifies duplicate child module axis2-repo-mgt @ line 553, column 25
[ERROR]     'modules.module[18]' specifies duplicate child module module-mgt @ line 557, column 25
[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] [a link](http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException)
[ERROR] [Help 2] [a link](http://cwiki.apache.org/confluence/display/MAVEN)/UnresolvableModelException

从《源代码分发指南》在Linux上安装Identity Server可能会有所帮助。

如果您进入/wso2is-3.2.0-src/patch-releases/文件夹,您将找到3.2.1、3.2.2和3.2.3的单独目录 例如,如果要构建3.2.1,请查找3.2.1补丁版本pom.xml和(
mvn clean install
from/wso2is-3.2.0-src/patch-releases/3.2.1/目录),然后它将分别构建以下模块

    <module>dependencies</module>
    <module>orbit</module>
    <module>service-stubs</module>
    <module>core</module>
    <module>components</module>
    <module>features</module>
    <module>samples</module>
    <module>products</module>
依赖项
轨道
服务存根
核心
组件
特征
样品
产品
请注意,3.2.0分支需要使用maven2构建

仅供参考:要构建当前版本,请使用maven3