Can anyone tell me why I’m getting this error? I pulled the code from github.
C:\Users\khanh\OneDrive\Desktop\xwiki-platform\xwiki-platform-core\xwiki-platform-display>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:13.2-SNAPSHOT: Could not find artifact org.xwiki.commons:xwiki-commons-pom:pom:13.2-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.xwiki.platform:xwiki-platform:13.2-SNAPSHOT, C:\Users\khanh\OneDrive\Desktop\xwiki-platform\pom.xml, line 23, column 11 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.xwiki.platform:xwiki-platform-display:13.2-SNAPSHOT (C:\Users\khanh\OneDrive\Desktop\xwiki-platform\xwiki-platform-core\xwiki-platform-display\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.xwiki.platform:xwiki-platform:13.2-SNAPSHOT: Could not find artifact org.xwiki.commons:xwiki-commons-pom:pom:13.2-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.xwiki.platform:xwiki-platform:13.2-SNAPSHOT, C:\Users\khanh\OneDrive\Desktop\xwiki-platform\pom.xml, 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
I haven’t changed any file yet…
But when I change pom for e.g., when i add
<parent> <groupId>org.xwiki.platform</groupId> <artifactId>xwiki-platform-core</artifactId> <version>13.2-SNAPSHOT</version> <relativePath>../xwiki-platform-core/pom.xml</relativePath> </parent>
at xwiki-platform/xwiki-platform-core/xwiki-platform-display at master · xwiki/xwiki-platform · GitHub
and
<parent> <groupId>org.xwiki.platform</groupId> <artifactId>xwiki-platform</artifactId> <version>13.2-SNAPSHOT</version> <relativePath>../xwiki-platform/pom.xml</relativePath> </parent>
at xwiki-platform/xwiki-platform-core at master · xwiki/xwiki-platform · GitHub
and
<parent> <groupId>org.xwiki.commons</groupId> <artifactId>xwiki-commons-pom</artifactId> <version>13.2-SNAPSHOT</version> <relativePath>/xwiki-commons/pom.xml</relativePath> </parent>
at GitHub - xwiki/xwiki-platform: The XWiki platform
in my copy, I get this error:
C:\Users\khanh\OneDrive\Desktop\xwiki-platform\xwiki-platform-core\xwiki-platform-display>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-core:13.2-SNAPSHOT: Could not find artifact org.xwiki.platform:xwiki-platform:pom:13.2-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ org.xwiki.platform:xwiki-platform-core:13.2-SNAPSHOT, C:\Users\khanh\OneDrive\Desktop\xwiki-platform\xwiki-platform-core\pom.xml, line 23, column 11 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.xwiki.platform:xwiki-platform-display:13.2-SNAPSHOT (C:\Users\khanh\OneDrive\Desktop\xwiki-platform\xwiki-platform-core\xwiki-platform-display\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.xwiki.platform:xwiki-platform-core:13.2-SNAPSHOT: Could not find artifact org.xwiki.platform:xwiki-platform:pom:13.2-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ org.xwiki.platform:xwiki-platform-core:13.2-SNAPSHOT, C:\Users\khanh\OneDrive\Desktop\xwiki-platform\xwiki-platform-core\pom.xml, 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
I have both xwiki-platform and xwiki-commons in the same directory.
Solved.
But still can’t figure out why cmd kept showing this.
Hi, I have the same problem, can you please tell me how you solved it?
Hi @CatalinStratu, you can also use Eclipse IDE for the build.
1 Like
It builds fine with Maven and that’s the official way to build XWiki. You need to check https://dev.xwiki.org/xwiki/bin/view/Community/Building/ (especially the part about settings.xml)
I confirm, that works with cmd as well.