Details
-
Bug
-
Resolution: Fixed
-
Major
-
6.4-milestone-1
-
Windows 8.1
Maven 3.3.3
Java 1.7
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce:
1. git checkout xwiki-platform-6.4.4 on a Windows OS command line
2. cd xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-lucene/xwiki-platform-lucene-api
3. mvn clean install
Output:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project xwiki-platform-search-lucene-api: Compilation failure [ERROR] There's no [META-INF/components.txt] file and thus Component [com.xpn.xwiki.plugin.lucene.internal.rest.LuceneSearchSource] isn't declared! Consider adding a components.txt file or if it's normal use the "staticRegistration" parameter as in @Component(staticRegistration = false)"
There must be some environment issues, but the existing file "src/main/resource/META-INF/components.txt" is not found and the build fails.
On a Linux OS, the above steps produce a successful build.
A workaround should be to use "-Didea.home.path=something" as in "mvn clean install -Didea.home.path=something" but seems to not work for some users.
Attachments
Issue Links
- relates to
-
XWIKI-10718 Test failures when building some XWiki modules on Windows
- Open