Hi Vincent
Just I thought the customer source path for component annotation is not working on window
env.
I used the command line on window env.
mvn install -Dproc=none
I still receive the same issue ( can't find the components.txt)
Thanks
Ken
Sent from my iPhone
> On Apr 19, 2015, at 3:17 AM, "vincent(a)massol.net"
<vincent(a)massol.net> wrote:
>
> Hi,
>
> No, unless you prefer IDEA over Eclipse ;)
>
> A lot of XWiki devs use Eclipse without problem.
>
> This is not your problem here unless you’re building inside your IDE. Just run from
the command line if that’s not already the case.
>
> The issue could simply be that you’re on Windows and these custom sourcepaths may not
work on Windows for some reason:
>
>
> <!-- We need custom sourcepaths for our Component Annotation Process
work
> (See ComponentCheckerAnnotationProcessor.java). This is required
because of
>
http://jira.codehaus.org/browse/MCOMPILER-122.
>
> However note that IntelliJ IDEA doesn't honor custom sourcepaths,
see
>
https://youtrack.jetbrains.com/issue/IDEA-133120, which means that
you need to turn off
> Annotation Processing in IDEA or IDEA will generate errors while
building modules -->
> <execution>
> <id>default-compile</id>
> <configuration>
> <compilerArguments>
>
<sourcepath>${project.basedir}/src/main/java:${project.basedir}/src/main/resources</sourcepath>
> </compilerArguments>
> </configuration>
> </execution>
> <execution>
> <id>default-testCompile</id>
> <configuration>
> <compilerArguments>
>
<sourcepath>${project.basedir}/src/test/java:${project.basedir}/src/test/resources</sourcepath>
> </compilerArguments>
> </configuration>
> </execution>
>
> For the moment try to turn off annotation processors and tell us if it builds fine:
>
mvn install -Dproc=none
>
> Thanks
> -Vincent
>
> PS: Please always reply to the list!
>
>
>> On 18 Apr 2015 at 22:10:18, Khjintcorp
(khjintcorp@gmail.com(mailto:khjintcorp@gmail.com)) wrote:
>>
>> Vincent,
>>
>> I use eclipse, do I need change to idea?
>>
>> Thanks
>>
>> Ken
>>
>> Sent from my iPhone
>>
>>> On Apr 18, 2015, at 2:00 PM,
"vincent@massol.net(mailto:vincent@massol.net)" wrote:
>>>
>>>
>>>
>>>
>>>
>>>> On 17 Apr 2015 at 22:47:00, Khjintcorp
(khjintcorp@gmail.com(mailto:khjintcorp@gmail.com)) wrote:
>>>>
>>>>
>>>>
>>>> Sent from my iPhone
>>>>
>>>> Begin forwarded message
>>>>>
>>>>> Hi Marius.
>>>>>
>>>>> I think this is related to MCOMPILER-122.
>>>>>
>>>>> (See ComponentCheckerAnnotationProcessor.java). This is required
because of
>>>>>
http://jira.codehaus.org/browse/MCOMPILER-122.
>>>>>
>>>>> However note that IntelliJ IDEA doesn't honor custom sourcepaths,
see
>>>>>
https://youtrack.jetbrains.com/issue/IDEA-133120, which means that
you need to turn off
>>>>> Annotation Processing in IDEA or IDEA will generate errors while
building modules -->
>>>
>>>
>>>
>>>
>>>
>>> FTR I’ve fixed this on master (i.e.7.1-SNAPSHOT) and you don’t need to do
anything in IDEA now, it’s turned off automatically if you’re doing a make inside IDEA.
>>>
>>>
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>> -Vincent
>>>
>>>
>>>
>>>
>>>
>>>>
>>>>>
------------------------------------------------------------------------------------------------------------
>>>>> Vincent Massol’ note
>>>>>
>>>>> I've hit this problem too.
>>>>>
>>>>> I've had to do the following
(
https://github.com/xwiki/xwiki-commons/blob/master/pom.xml#L762):
>>>>>
>>>>>
>>>>> org.apache.maven.plugins
>>>>> maven-compiler-plugin
>>>>>
>>>>> 3.2
>>>>>
>>>>> 1.7
>>>>> 1.7
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> default-compile
>>>>>
>>>>>
>>>>>
${project.basedir}/src/main/java:${project.basedir}/src/main/resources
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> default-testCompile
>>>>>
>>>>>
>>>>>
${project.basedir}/src/test/java:${project.basedir}/src/test/resources
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> However this isn't perfect. It works in Maven but fails in IDEA
(see
https://youtrack.jetbrains.com/issue/IDEA-133120). I'm also not sure it works on
Windows machines (but that could be fixed with profiles).
>>>>>
>>>>> In addition I've noticed that it runs javac with 2 -sourcepath
parameters! For example:
>>>>>
>>>>> [DEBUG] -d
/Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/target/classes
-classpath
/Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/target/classes:/Users/vmassol/.m2/repository/org/xwiki/commons/xwiki-commons-tool-component-generation/6.4-SNAPSHOT/xwiki-commons-tool-component-generation-6.4-SNAPSHOT.jar:
>>>>> -sourcepath
/Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/src/main/java:/Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/target/generated-sources/annotations:
>>>>> -s
/Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/target/generated-sources/annotations
>>>>> -g -deprecation -target 1.7 -source 1.7 -encoding UTF-8
>>>>> -sourcepath
/Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/src/main/java:/Users/vmassol/dev/xwiki/git/xwiki-commons/xwiki-commons-core/xwiki-commons-stability/src/main/resources
>>>>> -Xlint:all
>>>>>
>>>>> -------------------------------------------------------
>>>>>
>>>>> Do you know how to fix this in Window env
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> Ken
>>>>>
>>>>> From: LIANG, KEN K (CTR)
>>>>> Sent: Friday, April 17, 2015 11:06 AM
>>>>> To: 'khjintcorp@gmail.com(mailto:khjintcorp@gmail.com)'
>>>>> Subject: Can'tbuild project xwiki-platform-wiki-default
>>>>>
>>>>> 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...@xwiki.com(http://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 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)"
>>>>> Date: April 16, 2015 at 10:13:14 AM EDT
>>>>> To: "khji...@gmail.com(http://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 -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]
>