Hi, if you are running test directly from one of the maven sub-modules, in order to get all it's dependencies resolved you first have to make `mvn install` from the root of the repo, to deploy all artifacts to your local .m2 repository.
-- Alex On Fri, Apr 1, 2016 at 4:07 AM, Pratik Joshi <pratiktuto...@gmail.com> wrote: > Hi, > > I am trying to run one test (it could be any test) from JDBC module of > Zeppelin. But I get a build failure complaining about unresolved > dependencies > for org.apache.zeppelin:zeppelin-jdbc:jar:0.6.0-incubating-SNAPSHOT as > below - > > mvn test -Dtest=JDBCInterpreterTest#testForParsePropertyKey > > [INFO] Scanning for projects... > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Zeppelin: JDBC interpreter 0.6.0-incubating-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [WARNING] The POM for > org.apache.zeppelin:zeppelin-interpreter:jar:0.6.0-incubating-SNAPSHOT is > missing, no dependency information available > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 0.973 s > [INFO] Finished at: 2016-03-30T17:29:34-07:00 > [INFO] Final Memory: 9M/309M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal on project zeppelin-jdbc: Could not resolve > dependencies for project > org.apache.zeppelin:zeppelin-jdbc:jar:0.6.0-incubating-SNAPSHOT: Failure to > find org.apache.zeppelin:zeppelin-interpreter:jar:0.6.0-incubating-SNAPSHOT > in http://repository.apache.org/snapshots was cached in the local > repository, resolution will not be reattempted until the update interval of > apache.snapshots has elapsed or updates are forced -> [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/DependencyResolutionException > > > I get the same error even if I try to run other test in some other module > (I tried running a spark module test). > > I browsed through Jira and came across similar problem someone else faced, > tried the solution suggested but didn't help - > https://issues.apache.org/jira/browse/ZEPPELIN-637. > They mention checking out the v0.5.6 tag instead of the branch-0.5.6. But > the issue on doing that is that the jdbc module doesn't contain a POM. > > Just as a side note, the build is successful when I build from the parent > POM - > incubator-zeppelin ✓ sudo mvn clean package -DskipTests -T 4C -Pvendor-repo > [INFO] Scanning for projects... > ... > ... > [INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ > zeppelin-cassandra --- > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Zeppelin ........................................... SUCCESS [ > 19.705 s] > [INFO] Zeppelin: Interpreter .............................. SUCCESS [ > 32.895 s] > [INFO] Zeppelin: Zengine .................................. SUCCESS [ > 22.590 s] > [INFO] Zeppelin: Display system apis ...................... SUCCESS [01:09 > min] > [INFO] Zeppelin: Spark dependencies ....................... SUCCESS [02:06 > min] > [INFO] Zeppelin: Spark .................................... SUCCESS [ > 50.619 s] > [INFO] Zeppelin: Markdown interpreter ..................... SUCCESS [ > 5.647 s] > [INFO] Zeppelin: Angular interpreter ...................... SUCCESS [ > 5.028 s] > [INFO] Zeppelin: Shell interpreter ........................ SUCCESS [ > 5.026 s] > [INFO] Zeppelin: Hive interpreter ......................... SUCCESS [ > 28.098 s] > [INFO] Zeppelin: HBase interpreter ........................ SUCCESS [ > 38.951 s] > [INFO] Zeppelin: Apache Phoenix Interpreter ............... SUCCESS [ > 40.600 s] > [INFO] Zeppelin: PostgreSQL interpreter ................... SUCCESS [ > 8.332 s] > [INFO] Zeppelin: JDBC interpreter ......................... SUCCESS [ > 7.482 s] > [INFO] Zeppelin: Tajo interpreter ......................... SUCCESS [ > 18.663 s] > [INFO] Zeppelin File System Interpreters .................. SUCCESS [ > 18.197 s] > [INFO] Zeppelin: Flink .................................... SUCCESS [ > 49.581 s] > [INFO] Zeppelin: Apache Ignite interpreter ................ SUCCESS [ > 19.202 s] > [INFO] Zeppelin: Kylin interpreter ........................ SUCCESS [ > 12.808 s] > [INFO] Zeppelin: Lens interpreter ......................... SUCCESS [ > 25.224 s] > [INFO] Zeppelin: Cassandra ................................ SUCCESS [02:41 > min] > [INFO] Zeppelin: Elasticsearch interpreter ................ SUCCESS [ > 29.086 s] > [INFO] Zeppelin: Alluxio interpreter ...................... SUCCESS [ > 33.549 s] > [INFO] Zeppelin: web Application .......................... SUCCESS [02:01 > min] > [INFO] Zeppelin: Server ................................... SUCCESS [ > 55.602 s] > [INFO] Zeppelin: Packaging distribution ................... SUCCESS [ > 4.417 s] > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 03:40 min (Wall Clock) > [INFO] Finished at: 2016-03-30T17:04:23-07:00 > [INFO] Final Memory: 170M/1769M > [INFO] > ------------------------------------------------------------------------ > > > Please let me know how do I resolve this issue so that I can run tests in > Zeppelin. > > Thanks! > -- > Sincerely, > Pratik Joshi > M. S. Computer Science > University of Southern California, > Los Angeles, CA 90089-0471 > +1(213)400-0946 >