2012-04-15 2 views
0

Wir haben den Quellcode des Identitätsservers (wso2is-3.2.3-src.zip) von der wso2-Website heruntergeladen. Nach dem Entpacken stellt sich heraus, dass die Version wso2is-3.2.0-src lautet.WSO2-Quellcode des Identitätsservers (wso2is-3.2.3-src.zip) wird immer mit Fehlern erstellt

Wir verbringen mehr als zwei Wochen damit, viele Materialien online zu referenzieren und versuchen, sie mit ausreichender Bandbreite aufzubauen. Zuerst benutzen wir ant, maven 2 und jdk jdk1.6.0_25. Dann haben wir festgestellt, dass wso2is-3.2.0-src/products/pom.xml ein Ende-Tag "/" verpasst hat und wir haben es korrigiert. Dann haben wir herausgefunden, dass wir die Sri Lanka Colombo Zeitzone basierend auf einem Fehler verwenden müssen. Wir führen oft nicht genügend Arbeitsspeicher, also haben wir "export MAVEN_OPTS =" verwenden - Xmx1280m -XX: PermSize = 512m -XX: MaxPermSize = 512m "-XX: ReservedCodeCacheSize = 512m" "ulimit -n 65536" wir haben loswerden von Speicherfehlern. Trotzdem haben wir es nicht geschafft.

Anschließend fanden wir diesen Weblink a link. Es schien, dass wir maven 3.0.4 verwenden mussten. Nachdem wir alle Umgebungsvariablen gesetzt hatten, gingen wir zum Verzeichnis wso2is-3.2.0-src/und tippten . Mvn clean install

Trotzdem hatten wir eine Reihe von folgenden Fehlern. Wir sind unsicher, ob der Quellcode fehlerhaft ist. Hat jemand den Quellcode von wso2is-3.2.3-src.zip erfolgreich erstellt? Wie sollen wir es bauen?

[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 

Antwort

1

Installation von Identity Server unter Linux von Quelldistribution Führer [1] kann hilfreich. http://docs.wso2.org/display/identity/Installing+Identity+Server+on+Linux+from+Source+Distribution

Wenn Sie innerhalb des /wso2is-3.2.0-src/patch-releases/ Ordner gehen, werden Sie separate Verzeichnisse für 3.2.1, 3.2.2 und 3.2.3 Zum Beispiel finden, wenn Sie wollen Um 3.2.1 zu erstellen, finden Sie 3.2.1 Patch Releases pom.xml und (mvn clean install von /wso2is-3.2.0-src/patch-releases/3.2.1/ Verzeichnis), dann wird es jeweils folgende Module erstellen.

Bitte beachten Sie, 3.2.0 Zweig muss mit maven2 gebaut werden.

FYI: Um aktuelle trunk zu bauen, verwenden Sie Maven3.

Verwandte Themen