Hide Forgot
Description of problem: (It seems there is a luncene-sandbox artifact missing in dependency tree.) When build with uberfire, I hit the compile error: [INFO] Reactor Summary: [INFO] [INFO] UberFire parent metadata .......................... SUCCESS [20:16.502s] [INFO] UberFire BOM (Bill Of Materials) .................. SUCCESS [0.188s] [INFO] UberFire parent with dependencies ................. SUCCESS [38.394s] [INFO] Uberfire Commons .................................. SUCCESS [2:59.238s] [INFO] Uberfire NIO.2 Simple Backport .................... SUCCESS [0.158s] [INFO] Uberfire NIO.2 :: Model ........................... SUCCESS [21.225s] [INFO] Uberfire NIO.2 :: Implementations ................. SUCCESS [0.131s] [INFO] UberFire NIO.2 :: File System Impl ................ SUCCESS [26.552s] [INFO] UberFire NIO.2 :: JGIT Impl ....................... SUCCESS [11.049s] [INFO] Uberfire NIO.2 :: API ............................. SUCCESS [12.976s] [INFO] UberFire I/O ...................................... SUCCESS [2:17.543s] [INFO] Uberfire Metadata ................................. SUCCESS [0.120s] [INFO] Uberfire Metadata API ............................. SUCCESS [0.219s] [INFO] Uberfire Metadata Backends ........................ SUCCESS [0.119s] [INFO] Uberfure Metadata Lucene Backend .................. FAILURE [0.195s] [INFO] Uberfire Metadata Commons IO ...................... SKIPPED [INFO] UberFire Security ................................. SKIPPED [INFO] UberFire Security API ............................. SKIPPED [INFO] UberFire Security Client .......................... SKIPPED [INFO] UberFire Security Server .......................... SKIPPED [INFO] UberFire Backend .................................. SKIPPED [INFO] UberFire Backend API .............................. SKIPPED [INFO] UberFire API ...................................... SKIPPED [INFO] UberFire Server ................................... SKIPPED [INFO] UberFire Client API ............................... SKIPPED [INFO] UberFire Widgets .................................. SKIPPED [INFO] UberFire Widgets Commons .......................... SKIPPED [INFO] UberFire Workbench ................................ SKIPPED [INFO] UberFire Backend Server ........................... SKIPPED [INFO] UberFire Widgets Core ............................. SKIPPED [INFO] UberFire Widgets Core Client ...................... SKIPPED [INFO] Widgets Sandbox ................................... SKIPPED [INFO] Markdown Widget ................................... SKIPPED [INFO] UberFire JS ....................................... SKIPPED [INFO] UberFire Showcase ................................. SKIPPED [INFO] UberFire Showcase WebApp .......................... SKIPPED [INFO] Showcase distribution wars ........................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 36:18.332s [INFO] Finished at: Wed Nov 06 15:31:51 CST 2013 [INFO] Final Memory: 72M/172M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project uberfire-metadata-backend-lucene: Compilation failure: Compilation failure: [ERROR] /home/rzhang/workspace/7uberfire/uberfire-metadata/uberfire-metadata-backends/uberfire-metadata-backend-lucene/src/main/java/org/uberfire/metadata/backend/lucene/LuceneSearchIndex.java:[26,47] package org.apache.lucene.sandbox.queries.regex does not exist [ERROR] /home/rzhang/workspace/7uberfire/uberfire-metadata/uberfire-metadata-backends/uberfire-metadata-backend-lucene/src/main/java/org/uberfire/metadata/backend/lucene/LuceneSearchIndex.java:[143,36] cannot find symbol [ERROR] symbol: class RegexQuery [ERROR] location: class org.uberfire.metadata.backend.lucene.LuceneSearchIndex [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 :uberfire-metadata-backend-lucene Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 820232 [details] lucene-sandbox.patch By using the attached patch, it seems the issue can be fixed.
Ryan, I am not sure what is the difference between our environment and yours. Michael just tested again and it is working fine on our build server. Can you talk to him and try to identify it? During the PM meeting was decided we will do a new tag in a couple days, so it would be best if we can find the root cause ASAP. I am also cc'ing Porcelli, as I am not sure about the need for lucene-sandbox or not.
Porcelli says the sandbox dependency is there, transitively. org.uberfire:uberfire-metadata-backend-lucene:jar:0.3.0-SNAPSHOT +- org.uberfire:uberfire-nio2-model:jar:0.3.0-SNAPSHOT:compile | \- com.thoughtworks.xstreamstream:jar:1.4.3:compile | +- xmlpullmlpull:jar:1.1.3.1:compile | \- xpp3pp3_min:jar:1.1.4c:compile +- org.apache.lucene:lucene-core:jar:4.0.0:compile +- org.apache.lucene:lucene-analyzers-common:jar:4.0.0:compile +- org.apache.lucene:lucene-codecs:jar:4.0.0:compile +- org.apache.lucene:lucene-queryparser:jar:4.0.0:compile | +- org.apache.lucene:lucene-queries:jar:4.0.0:compile | \- org.apache.lucene:lucene-sandbox:jar:4.0.0:compile | \- jakarta-regexp:jakarta-regexp:jar:1.4:compile +- org.uberfire:uberfire-commons:jar:0.3.0-SNAPSHOT:compile | \- org.slf4j:slf4j-api:jar:1.7.2:compile +- org.uberfire:uberfire-metadata-api:jar:0.3.0-SNAPSHOT:compile +- junit:junit:jar:4.11:test | \- org.hamcrest:hamcrest-core:jar:1.3:test +- org.mockito:mockito-all:jar:1.9.0:test +- org.easytesting:fest-assert-core:jar:2.0M6:test | \- org.easytesting:fest-util:jar:1.2.1:test \- log4j:log4j:jar:1.2.12rovided Michael rebuilt everything on a clean environment and it is working for us. Ryan, can you double check please?
Thanks Edson! And apologize, I can't reproduce this issue any more. It seems the patch is not required. Close this issue now。