Unit tests not picking maven dependencies for LocalMode

2016-04-21 Thread Ananth Gundabattula
Hello All, Some of my unit tests are not able to execute a flow end to end because a jar is not being picked up at runtime though it is part of the maven dependencies etc … I believe in the actual scenario when deploying it to an Apex server, the metadata file that is used in packaging the appli

Re: Unit tests not picking maven dependencies for LocalMode

2016-04-22 Thread Chinmay Kolhatkar
Hi Ananth, You can have a full cycle of run in local mode for apex app. This seems to be a dependency related issue. Can you please share the code snippet of pom.xml where the missing maven dependency is added? Also, are you trying the load a class from that jar dependency using any class loader?

Re: Unit tests not picking maven dependencies for LocalMode

2016-04-22 Thread Ananth Gundabattula
Hello Chinmay, Here is the pom snippet : net.sf.opencsv opencsv ${open-csv-version} The dependency is being injected via this module dependency: Apex Application (main module ) => Module B => Module C => opencsv ( dependency above). I guess I need to also share with you the fac

Re: Unit tests not picking maven dependencies for LocalMode

2016-04-22 Thread Chinmay Kolhatkar
I believe this is a transitive dependency problem. opencsv is added as dependency to Module C pom but not in application pom. Can you add the opencsv dependency to application pom, and then try to compile and run it? - Chinmay. On Fri, Apr 22, 2016 at 12:58 PM, Ananth Gundabattula < agundabatt..

Re: Unit tests not picking maven dependencies for LocalMode

2016-04-22 Thread Ananth Gundabattula
Just to update you all, it was a Spring context configuration issue that was not loading the dependency properly ..Unit tests seem to be working fine after the application code was fixed. Thanks all for your time. On Fri, Apr 22, 2016 at 6:26 PM, Chinmay Kolhatkar wrote: > I believe this is a t