Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12294

Unable to build on Windows because of failing META-INF/components.txt check

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                enygma Eduard Moraru
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: