Hi Steven, If you look carefully above the reactor summary, the culprit is listed:
[INFO] --- maven-dependency-plugin:2.10:analyze-only (default) @ asterix-bad --- [WARNING] Unused declared dependencies found: [WARNING] org.apache.hyracks:hyracks-dataflow-std:jar:0.2.18-SNAPSHOT:compile [INFO] Removing this dependency from the asterix-bad project should correct the issue. Thanks, -MDB On Tue, Jan 17, 2017 at 6:59 PM Xikui Wang <[email protected]> wrote: > I had the same issue. I think this is because the recently introduced > maven-dependency-plugin > detected dependency issue. If you rerun the command with -X option, ie. mvn > install -DskipTests -rf:asterix-bad > You will see the detailed information about which dependency is declared in > your pom.xml but > not used. Remove that will resolve the issue. > > My followup question on this, the maven-dependency-plugin seems not working > very well with > 'non-intermediate' dependency. In my case, I replicated the executionTest > in a new package. > Adding the dependency that is not 'intermediate' will trigger the > dependency detection problem. > Removing them will cause class-not-found issue. Any suggestions? Probably > we can use the same > executionTest for all test scripts in different packages? I guess this > problem also exists in > the bad package... > > Best, > Xikui > > On Tue, Jan 17, 2017 at 3:40 PM, Steven Jacobs <[email protected]> wrote: > > > Hi all, > > I'm seeing a strange build error recently with dependencies. I am > currently > > working on a branch of the BAD project, and none of my file changes are > in > > the poms at all. Yet I get a cryptic build failure with the following > > message: > > > > "[ERROR] Failed to execute goal > > org.apache.maven.plugins:maven-dependency-plugin:2.10:analyze-only > > (default) on project asterix-bad: Dependency problems found -> [Help 1]" > > > > And no other information on what the "dependency problems" are. Has > anyone > > ever seen such an issue? I am currently lost with trying to resolve this. > > The full output is below. There are a few other messages that seem weird, > > but none of them seem to be related to the dependency error. > > > > [INFO] Building asterix-bad 1.0.0-SNAPSHOT > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] > > [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ asterix-bad > --- > > [INFO] Deleting > > /Users/stevenjacobs/asterix/asertixdb/asterixdb/asterix- > > opt/asterix-bad/target > > [INFO] > > [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ > > asterix-bad --- > > [INFO] > > [INFO] --- > asterix-grammar-extension-maven-plugin:0.8.9-SNAPSHOT:grammarix > > (default) @ asterix-bad --- > > [INFO] Base dir: > > /Users/stevenjacobs/asterix/asertixdb/asterixdb/asterix-opt/asterix-bad > > [INFO] Grammar-base: ../../asterix-lang-aql/src/main/javacc/AQL.jj > > [INFO] Grammar-extension: src/main/resources/lang-extension/lang.txt > > [INFO] Output: target/generated-resources/javacc/grammar.jj > > [INFO] > > [INFO] --- javacc-maven-plugin:2.6:javacc (javacc) @ asterix-bad --- > > Java Compiler Compiler Version 5.0 (Parser Generator) > > (type "javacc" with no arguments for help) > > Reading from file > > /Users/stevenjacobs/asterix/asertixdb/asterixdb/asterix- > > opt/asterix-bad/target/generated-resources/javacc/grammar.jj > > . . . > > Warning: Choice conflict in (...)* construct at line 869, column 5. > > Expansion nested within construct and expansion following > > construct > > have common prefixes, one of which is: "+" > > Consider using a lookahead of 2 or more for nested expansion. > > Warning: Choice conflict in [...] construct at line 1120, column 27. > > Expansion nested within construct and expansion following > > construct > > have common prefixes, one of which is: "." > > Consider using a lookahead of 2 or more for nested expansion. > > Warning: Choice conflict in [...] construct at line 1527, column 3. > > Expansion nested within construct and expansion following > > construct > > have common prefixes, one of which is: "(" > > Consider using a lookahead of 2 or more for nested expansion. > > Warning: Choice conflict in (...)* construct at line 1819, column 24. > > Expansion nested within construct and expansion following > > construct > > have common prefixes, one of which is: "[" > > Consider using a lookahead of 2 or more for nested expansion. > > Warning: Choice conflict in [...] construct at line 2108, column 75. > > Expansion nested within construct and expansion following > > construct > > have common prefixes, one of which is: "(" > > Consider using a lookahead of 2 or more for nested expansion. > > Warning: Choice conflict in [...] construct at line 2150, column 75. > > Expansion nested within construct and expansion following > > construct > > have common prefixes, one of which is: "(" > > Consider using a lookahead of 2 or more for nested expansion. > > Warning: Choice conflict in [...] construct at line 2151, column 5. > > Expansion nested within construct and expansion following > > construct > > have common prefixes, one of which is: "with" > > Consider using a lookahead of 2 or more for nested expansion. > > Warning: Choice conflict in [...] construct at line 2509, column 3. > > Expansion nested within construct and expansion following > > construct > > have common prefixes, one of which is: "with" > > Consider using a lookahead of 2 or more for nested expansion. > > File "TokenMgrError.java" does not exist. Will create one. > > File "ParseException.java" does not exist. Will create one. > > File "Token.java" does not exist. Will create one. > > File "JavaCharStream.java" does not exist. Will create one. > > Parser generated with 0 errors and 8 warnings. > > [INFO] Processed 1 grammar > > [INFO] > > [INFO] --- build-helper-maven-plugin:1.9:add-source (add-source) @ > > asterix-bad --- > > [INFO] Source directory: > > /Users/stevenjacobs/asterix/asertixdb/asterixdb/asterix- > > opt/asterix-bad/target/generated-sources/javacc > > added. > > [INFO] > > [INFO] >>> javacc-maven-plugin:2.6:jjdoc (javacc-jjdoc) > > generate-sources > > @ asterix-bad >>> > > [INFO] > > [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ > > asterix-bad --- > > [INFO] > > [INFO] --- > asterix-grammar-extension-maven-plugin:0.8.9-SNAPSHOT:grammarix > > (default) @ asterix-bad --- > > [INFO] Base dir: > > /Users/stevenjacobs/asterix/asertixdb/asterixdb/asterix-opt/asterix-bad > > [INFO] Grammar-base: ../../asterix-lang-aql/src/main/javacc/AQL.jj > > [INFO] Grammar-extension: src/main/resources/lang-extension/lang.txt > > [INFO] Output: target/generated-resources/javacc/grammar.jj > > [INFO] > > [INFO] --- javacc-maven-plugin:2.6:javacc (javacc) @ asterix-bad --- > > [INFO] Skipping - all parsers are up to date > > [INFO] > > [INFO] --- build-helper-maven-plugin:1.9:add-source (add-source) @ > > asterix-bad --- > > [INFO] Source directory: > > /Users/stevenjacobs/asterix/asertixdb/asterixdb/asterix- > > opt/asterix-bad/target/generated-sources/javacc > > added. > > [INFO] > > [INFO] <<< javacc-maven-plugin:2.6:jjdoc (javacc-jjdoc) < > generate-sources > > @ asterix-bad <<< > > [INFO] > > [INFO] --- javacc-maven-plugin:2.6:jjdoc (javacc-jjdoc) @ asterix-bad --- > > [INFO] > > [INFO] --- maven-remote-resources-plugin:1.5:process > > (process-resource-bundles) @ asterix-bad --- > > [INFO] > > [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ > > asterix-bad --- > > [INFO] > > [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ > > asterix-bad --- > > [INFO] Using 'UTF-8' encoding to copy filtered resources. > > [INFO] Copying 2 resources > > [INFO] Copying 3 resources > > [INFO] Copying 3 resources > > [INFO] > > [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ > > asterix-bad --- > > [INFO] Changes detected - recompiling the module! > > [INFO] Compiling 47 source files to > > /Users/stevenjacobs/asterix/asertixdb/asterixdb/asterix- > > opt/asterix-bad/target/classes > > [WARNING] > > /Users/stevenjacobs/asterix/asertixdb/asterixdb/asterix- > > opt/asterix-bad/target/generated-sources/javacc/org/ > > apache/asterix/bad/lang/BADAQLParser.java:[265,19] > > CompilationException(java.lang.Throwable) in > > org.apache.asterix.common.exceptions.CompilationException has been > > deprecated > > [WARNING] > > /Users/stevenjacobs/asterix/asertixdb/asterixdb/asterix- > > opt/asterix-bad/target/generated-sources/javacc/org/ > > apache/asterix/bad/lang/BADAQLParser.java:[267,19] > > CompilationException(java.lang.String) in > > org.apache.asterix.common.exceptions.CompilationException has been > > deprecated > > [INFO] > > [INFO] --- maven-checkstyle-plugin:2.17:check (verify-style) @ > asterix-bad > > --- > > [INFO] > > [INFO] --- maven-resources-plugin:2.7:testResources > > (default-testResources) > > @ asterix-bad --- > > [INFO] Using 'UTF-8' encoding to copy filtered resources. > > [INFO] Copying 52 resources > > [INFO] Copying 3 resources > > [INFO] Copying 3 resources > > [INFO] > > [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ > > asterix-bad --- > > [INFO] Changes detected - recompiling the module! > > [INFO] Compiling 2 source files to > > /Users/stevenjacobs/asterix/asertixdb/asterixdb/asterix- > > opt/asterix-bad/target/test-classes > > [INFO] > > [INFO] --- maven-dependency-plugin:2.10:analyze-only (default) @ > > asterix-bad --- > > [WARNING] Unused declared dependencies found: > > [WARNING] > > org.apache.hyracks:hyracks-dataflow-std:jar:0.2.18-SNAPSHOT:compile > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Reactor Summary: > > [INFO] > > [INFO] hyracks-ecosystem-full-stack ....................... SUCCESS [ > > 6.913 s] > > [INFO] hyracks ............................................ SUCCESS [ > > 1.528 s] > > [INFO] hyracks-util ....................................... SUCCESS [ > > 1.660 s] > > [INFO] hyracks-ipc ........................................ SUCCESS [ > > 0.722 s] > > [INFO] hyracks-api ........................................ SUCCESS [ > > 1.832 s] > > [INFO] hyracks-net ........................................ SUCCESS [ > > 1.030 s] > > [INFO] hyracks-comm ....................................... SUCCESS [ > > 0.325 s] > > [INFO] hyracks-control .................................... SUCCESS [ > > 0.049 s] > > [INFO] hyracks-control-common ............................. SUCCESS [ > > 0.631 s] > > [INFO] hyracks-control-cc ................................. SUCCESS [ > > 1.154 s] > > [INFO] hyracks-control-nc ................................. SUCCESS [ > > 0.622 s] > > [INFO] hyracks-client ..................................... SUCCESS [ > > 0.658 s] > > [INFO] hyracks-data ....................................... SUCCESS [ > > 0.042 s] > > [INFO] hyracks-data-std ................................... SUCCESS [ > > 0.465 s] > > [INFO] hyracks-dataflow-common ............................ SUCCESS [ > > 0.651 s] > > [INFO] hyracks-dataflow-std ............................... SUCCESS [ > > 1.284 s] > > [INFO] hyracks-nc-service ................................. SUCCESS [ > > 1.631 s] > > [INFO] hyracks-storage-common ............................. SUCCESS [ > > 0.417 s] > > [INFO] hyracks-storage-am-common .......................... SUCCESS [ > > 0.763 s] > > [INFO] hyracks-storage-am-bloomfilter ..................... SUCCESS [ > > 0.461 s] > > [INFO] hyracks-storage-am-btree ........................... SUCCESS [ > > 0.762 s] > > [INFO] hyracks-storage-am-lsm-common ...................... SUCCESS [ > > 0.667 s] > > [INFO] hyracks-storage-am-lsm-invertedindex ............... SUCCESS [ > > 0.807 s] > > [INFO] hyracks-storage-am-lsm-btree ....................... SUCCESS [ > > 0.659 s] > > [INFO] hyracks-storage-am-rtree ........................... SUCCESS [ > > 0.537 s] > > [INFO] hyracks-storage-am-lsm-rtree ....................... SUCCESS [ > > 0.645 s] > > [INFO] hyracks-test-support ............................... SUCCESS [ > > 0.653 s] > > [INFO] hyracks-tests ...................................... SUCCESS [ > > 0.042 s] > > [INFO] hyracks-storage-common-test ........................ SUCCESS [ > > 0.461 s] > > [INFO] hyracks-storage-am-btree-test ...................... SUCCESS [ > > 0.540 s] > > [INFO] hyracks-storage-am-rtree-test ...................... SUCCESS [ > > 0.492 s] > > [INFO] hyracks-storage-am-lsm-common-test ................. SUCCESS [ > > 0.707 s] > > [INFO] hyracks-storage-am-lsm-btree-test .................. SUCCESS [ > > 0.917 s] > > [INFO] hyracks-storage-am-lsm-rtree-test .................. SUCCESS [ > > 0.633 s] > > [INFO] hyracks-storage-am-lsm-invertedindex-test .......... SUCCESS [ > > 0.610 s] > > [INFO] hyracks-storage-am-bloomfilter-test ................ SUCCESS [ > > 0.999 s] > > [INFO] hyracks-server ..................................... SUCCESS [ > > 2.048 s] > > [INFO] hyracks-examples ................................... SUCCESS [ > > 0.042 s] > > [INFO] tpch-example ....................................... SUCCESS [ > > 0.050 s] > > [INFO] tpchclient ......................................... SUCCESS [ > > 0.589 s] > > [INFO] tpchserver ......................................... SUCCESS [ > > 0.070 s] > > [INFO] text-example ....................................... SUCCESS [ > > 0.036 s] > > [INFO] texthelper ......................................... SUCCESS [ > > 0.562 s] > > [INFO] textclient ......................................... SUCCESS [ > > 0.422 s] > > [INFO] textserver ......................................... SUCCESS [ > > 2.770 s] > > [INFO] btree-example ...................................... SUCCESS [ > > 0.053 s] > > [INFO] btreehelper ........................................ SUCCESS [ > > 0.382 s] > > [INFO] btreeclient ........................................ SUCCESS [ > > 0.476 s] > > [INFO] btreeserver ........................................ SUCCESS [ > > 0.061 s] > > [INFO] hyracks-integration-tests .......................... SUCCESS [ > > 0.988 s] > > [INFO] hyracks-shutdown-test .............................. SUCCESS [ > > 2.418 s] > > [INFO] hyracks-documentation .............................. SUCCESS [ > > 0.947 s] > > [INFO] hyracks-maven-plugins .............................. SUCCESS [ > > 0.476 s] > > [INFO] Hyracks VirtualCluster Maven Plugin ................ SUCCESS [ > > 1.027 s] > > [INFO] license-automation-plugin .......................... SUCCESS [ > > 2.190 s] > > [INFO] hyracks-hdfs ....................................... SUCCESS [ > > 0.042 s] > > [INFO] hyracks-hdfs-1.x ................................... SUCCESS [ > > 0.485 s] > > [INFO] hyracks-hdfs-2.x ................................... SUCCESS [ > > 1.670 s] > > [INFO] hyracks-hdfs-core .................................. SUCCESS [ > > 1.751 s] > > [INFO] hyracks-dist ....................................... SUCCESS [ > > 0.660 s] > > [INFO] algebricks ......................................... SUCCESS [ > > 0.049 s] > > [INFO] algebricks-common .................................. SUCCESS [ > > 0.781 s] > > [INFO] algebricks-data .................................... SUCCESS [ > > 0.454 s] > > [INFO] algebricks-runtime ................................. SUCCESS [ > > 0.682 s] > > [INFO] algebricks-core .................................... SUCCESS [ > > 1.279 s] > > [INFO] algebricks-compiler ................................ SUCCESS [ > > 0.409 s] > > [INFO] algebricks-rewriter ................................ SUCCESS [ > > 0.693 s] > > [INFO] algebricks-tests ................................... SUCCESS [ > > 0.986 s] > > [INFO] algebricks-examples ................................ SUCCESS [ > > 0.300 s] > > [INFO] piglet-example ..................................... SUCCESS [ > > 1.013 s] > > [INFO] hyracks-fullstack-license .......................... SUCCESS [ > > 0.512 s] > > [INFO] apache-asterixdb ................................... SUCCESS [ > > 18.050 s] > > [INFO] asterix-test-framework ............................. SUCCESS [ > > 0.800 s] > > [INFO] asterix-common ..................................... SUCCESS [ > > 2.238 s] > > [INFO] asterix-om ......................................... SUCCESS [ > > 2.387 s] > > [INFO] asterix-fuzzyjoin .................................. SUCCESS [ > > 0.511 s] > > [INFO] asterix-maven-plugins .............................. SUCCESS [ > > 0.233 s] > > [INFO] record-manager-generator-maven-plugin .............. SUCCESS [ > > 0.945 s] > > [INFO] asterix-transactions ............................... SUCCESS [ > > 1.195 s] > > [INFO] asterix-runtime .................................... SUCCESS [ > > 2.847 s] > > [INFO] asterix-events ..................................... SUCCESS [ > > 1.024 s] > > [INFO] asterix-active ..................................... SUCCESS [ > > 0.574 s] > > [INFO] asterix-hivecompat ................................. SUCCESS [ > > 1.469 s] > > [INFO] lexer-generator-maven-plugin ....................... SUCCESS [ > > 0.843 s] > > [INFO] asterix-external-data .............................. SUCCESS [ > > 4.706 s] > > [INFO] asterix-metadata ................................... SUCCESS [ > > 3.028 s] > > [INFO] asterix-lang-common ................................ SUCCESS [ > > 1.942 s] > > [INFO] asterix-lang-aql ................................... SUCCESS [ > > 4.051 s] > > [INFO] asterix-lang-sqlpp ................................. SUCCESS [ > > 3.760 s] > > [INFO] asterix-evaluator-generator-maven-plugin ........... SUCCESS [ > > 1.667 s] > > [INFO] asterix-algebra .................................... SUCCESS [ > > 3.936 s] > > [INFO] asterix-replication ................................ SUCCESS [ > > 1.389 s] > > [INFO] asterix-test-datagenerator-maven-plugin ............ SUCCESS [ > > 0.833 s] > > [INFO] asterix-app ........................................ SUCCESS [ > > 31.032 s] > > [INFO] asterix-tools ...................................... SUCCESS [ > > 2.661 s] > > [INFO] asterix-examples ................................... SUCCESS [ > > 0.062 s] > > [INFO] asterix-grammar-extension-maven-plugin ............. SUCCESS [ > > 5.860 s] > > [INFO] asterix-client-helper .............................. SUCCESS [ > > 0.730 s] > > [INFO] asterix-opt ........................................ SUCCESS [ > > 0.145 s] > > [INFO] asterix-bad ........................................ FAILURE [ > > 2.586 s] > > [INFO] asterix-opt-bom .................................... SKIPPED > > [INFO] asterix-server ..................................... SKIPPED > > [INFO] asterix-installer .................................. SKIPPED > > [INFO] asterix-doc ........................................ SKIPPED > > [INFO] asterix-yarn ....................................... SKIPPED > > [INFO] asterix-experiments ................................ SKIPPED > > [INFO] asterix-coverage ................................... SKIPPED > > [INFO] asterix-license .................................... SKIPPED > > [INFO] hyracks-asterix .................................... SKIPPED > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] BUILD FAILURE > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 02:42 min > > [INFO] Finished at: 2017-01-17T15:25:57-08:00 > > [INFO] Final Memory: 257M/1181M > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] Failed to execute goal > > org.apache.maven.plugins:maven-dependency-plugin:2.10:analyze-only > > (default) on project asterix-bad: Dependency problems found -> [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/MojoExecutionException > > [ERROR] > > [ERROR] After correcting the problems, you can resume the build with the > > command > > [ERROR] mvn <goals> -rf :asterix-bad > > >
