You need to add tez-api as a dependency i.e set artifactId to tez-api. Also, you are better off using a released version as a dependency e.g 0.7.0 instead of a SNAPSHOT which will change regularly.
— Hitesh On Sep 1, 2015, at 12:40 PM, Raajay <raaja...@gmail.com> wrote: > How to add Tez as a dependency to another project ? > > I have a Tez client in a separate project and want to use Tez classes in it. > I added the dependency to pom.xml for the application project as below > > <dependency> > <groupId>org.apache.tez</groupId> > <artifactId>tez</artifactId> > <version>0.8.0-SNAPSHOT</version> > </dependency> > > > The commmand "mvn compile" on the client gives errors. > > "Could not find artifact org.apache.tez:tez:jar:0.8.0-SNAPSHOT -> [Help 1]" > > > I am not able to install tez libraries to the local maven repo. > > Thanks > Raajay