Compile with maven XWiki-platform

Hi, guys! I compile and install the source of XWiki-platformwith maven ! But i always meet same problems when started. It notifies me that can not find artifact org.xwiki.commons:xwiki-commons-pom:pom:12.0-SNAPSHOT. Evently, i check two repositories in the pom and can’t not find it trutly!
Is there something wrong with me?
Can you guys tell me some advice!
Thanks a lot!

$ mvn clean install 
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.xwiki.platform:xwiki-platform:12.0-SNAPSHOT: Could not find artifact org.xwiki.commons:xwiki-commons-pom:pom:12.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 23, column 11
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.xwiki.platform:xwiki-platform:12.0-SNAPSHOT (/home/benhairui/Documents/gitlab-workspace/xwiki-platform/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.xwiki.platform:xwiki-platform:12.0-SNAPSHOT: Could not find artifact org.xwiki.commons:xwiki-commons-pom:pom:12.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 23, column 11 -> [Help 2]
[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/UnresolvableModelException

So 12.0-SNAPSHOT is old. It means you’re trying to build some old sources that are not even tags!

Try git pull and you’ll see that currently the pom is at 12.6-SNAPSHOT: https://github.com/xwiki/xwiki-platform/blob/master/pom.xml#L26

Then you need to follow https://dev.xwiki.org/xwiki/bin/view/Community/Building/ and especially the part about setting up the xwiki maven remote repo in your settings.xml.

Hope it help

First, thanks for your reply!
You are right. I download the source code that version is 12.3. I check the pom.xml and it works!

But, when i compile code, i meet another problem that is “package org.incava.util.diff.Diff is not exist”.
So icheck the dependency of “java-diff” and unzip it.

org.incava
java-diff
1.1.0

In the final, I find catagolue of package is not same with .java file.
import org.incava.util.diff.Diff;
import org.incava.util.diff.Difference;

Two lines above is in “/xwiki-platform-core/xwiki-platform-annotation/xwiki-platform-annotation-maintainer/src/main/java/org/xwiki/annotation/maintainer/internal/CharacterDiffService.java” file.

Two lines below is in the zipFile “java-diff-1.1.0.jar”.
And When I change package import from above lines to below lines. it works.

import org.incava.diff.Diff;
import org.incava.diff.Difference;

So, can you check it? Is there something wrong with me?
Thanks a lot again!

See https://forum.xwiki.org/t/xwiki-platform-compile-problem/7151/20