Hi Marius
I used the entire xwiki-platform-wiki module on the clean master branch. I used window
to build xwiki.
Here is my configuration.
C:\Projects\xwiki-platform>mvn -version
Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-13T16:10:27-04:00)
Maven home: C:\apache-maven-3.3.1
Java version: 1.7.0_65, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_65\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64",
family: "windows"
I followed the direction on
http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven. I can do clean,
but not install.
mvn clean install -Dxwiki.checkstyle.skip=true
It seems that the components in any modules are not able to be compiled. Do I miss any
steps in set up in order to build xwiki? I got the same issue when I try to build the
xwiki-common package
Thanks
Ken
On Apr 16, 2015 11:14:02 pm , Marius Dumitru Florea (mari...(a)xwiki.com) Wrote
What branch / tag of
https://github.com/xwiki/xwiki-platform/ are you
building? Did you make any changes (is git status clean) ? Did you
configure Maven as per
http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven
? What OS are you using?
I have no problem building the entire xwiki-platform-wiki module on
the clean master branch, using Maven 3.0.4 and Java 7 on Linux
(Ubuntu).
Hope this helps,
Marius
On Thu, Apr 16, 2015 at 6:58 PM, Khjintcorp <khji...(a)gmail.com> wrote:
Hello
I am new on Xwiki. I like to rebuild Xwiki platform or common packages. I fixed
all problems related to build. Except one thing if the module has component
codes or components.txt I always got builderror. Please see the attached error
log. I think I missed one thing but I don't know yet. Can you help me on this
issue.
Thanks
Ken
Sent from my iPhone
Begin forwarded message:
From: "LIANG, KEN K (CTR)" <ken....(a)cbp.dhs.gov>
Date: April 16, 2015 at 10:13:14 AM EDT
To: "khji...(a)gmail.com" <khji...(a)gmail.com>
Subject: Can'tbuild project xwiki-platform-wiki-default
[INFO] XWiki Platform - Wiki - Parent POM ................. SUCCESS [ 7.463 s]
[INFO] XWiki Platform - Wiki - API ........................ SUCCESS [ 8.459 s]
[INFO] XWiki Platform - Wiki - Default Implementation ..... FAILURE [ 25.449 s]
[INFO] XWiki Platform - Wiki - REST - Parent POM .......... SKIPPED
[INFO] XWiki Platform - Wiki - REST - API ................. SKIPPED
[INFO] XWiki Platform - Wiki - Template - Parent POM ...... SKIPPED
[INFO] XWiki Platform - Wiki - Template - API ............. SKIPPED
[INFO] XWiki Platform - Wiki - REST - Default implementation SKIPPED
[INFO] XWiki Platform - Wiki - Script services ............ SKIPPED
[INFO] XWiki Platform - Wiki - Template - Default ......... SKIPPED
[INFO] XWiki Platform - Wiki - Template - Script .......... SKIPPED
[INFO] XWiki Platform - Wiki - User - Parent POM .......... SKIPPED
[INFO] XWiki Platform - Wiki - User - API ................. SKIPPED
[INFO] XWiki Platform - Wiki - User - Default ............. SKIPPED
[INFO] XWiki Platform - Wiki - User - Script .............. SKIPPED
[INFO] XWiki Platform - Wiki - UI - Parent POM ............ SKIPPED
[INFO] XWiki Platform - Wiki - UI - Common ................ SKIPPED
[INFO] XWiki Platform - Wiki - UI - Main Wiki ............. SKIPPED
[INFO] XWiki Platform - Wiki - UI - Wiki .................. SKIPPED
[INFO] XWiki Platform - Wiki - Workspaces Migrator ........ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.351 s
[INFO] Finished at: 2015-04-16T10:11:32-04:00
[INFO] Final Memory: 72M/912M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on
project xwiki-platform-wiki-default: Compilation failure: Compilation failure:
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.manager.DefaultWikiCreator] isn't declared! Consider
adding a components.txt file or if it's normal use the
"staticRegistration"
parameter as in "@Component(staticRegistration = false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.descriptor.builder.DefaultWikiDescriptorBuilder] isn't
declared! Consider adding a components.txt file or if it's normal use the
"staticRegistration" parameter as in "@Component(staticRegistration =
false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.manager.WikiDescriptorCache] isn't declared! Consider
adding a components.txt file or if it's normal use the
"staticRegistration"
parameter as in "@Component(staticRegistration = false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.descriptor.listener.WikiDescriptorListener] isn't
declared! Consider adding a components.txt file or if it's normal use the
"staticRegistration" parameter as in "@Component(staticRegistration =
false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.manager.DefaultWikiDeleter] isn't declared! Consider
adding a components.txt file or if it's normal use the
"staticRegistration"
parameter as in "@Component(staticRegistration = false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper]
isn't declared! Consider adding a components.txt file or if it's normal use the
"staticRegistration" parameter as in "@Component(staticRegistration =
false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.descriptor.document.XWikiServerClassDocumentInitializer]
isn't declared! Consider adding a components.txt file or if it's normal use the
"staticRegistration" parameter as in "@Component(staticRegistration =
false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.provisioning.DefaultWikiCopier] isn't declared!
Consider adding a components.txt file or if it's normal use the
"staticRegistration" parameter as in "@Component(staticRegistration =
false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.descriptor.migrator.WikiDescriptorMigrator] isn't
declared! Consider adding a components.txt file or if it's normal use the
"staticRegistration" parameter as in "@Component(staticRegistration =
false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager] isn't
declared! Consider adding a components.txt file or if it's normal use the
"staticRegistration" parameter as in "@Component(staticRegistration =
false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.configuration.DefaultWikiConfiguration] isn't declared!
Consider adding a components.txt file or if it's normal use the
"staticRegistration" parameter as in "@Component(staticRegistration =
false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.descriptor.properties.DefaultWikiPropertyGroupManager]
isn't declared! Consider adding a components.txt file or if it's normal use the
"staticRegistration" parameter as in "@Component(staticRegistration =
false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.provisioning.DefaultWikiProvisioningJobExecutor] isn't
declared! Consider adding a components.txt file or if it's normal use the
"staticRegistration" parameter as in "@Component(staticRegistration =
false)"
[ERROR] There's no [META-INF/components.txt] file and thus Component
[org.xwiki.wiki.internal.manager.DefaultWikiManager] isn't declared! Consider
adding a components.txt file or if it's normal use the
"staticRegistration"
parameter as in "@Component(staticRegistration = false)"
[ERROR] -> [Help 1]
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :xwiki-platform-wiki-default
FATAL ERROR in native method: JDWP on getting class status,
jvmtiError=JVMTI_ERROR_WRONG_PHASE(112)
JDWP exit error JVMTI_ERROR_WRONG_PHASE(112): on getting class status
[util.c:1283]