0

I'm new to Maven and would like to build a maven project from This link. I installed maven and when I run command 'mvn clean install' it proceeds but finally gives me an error message that class JsonSerDe in not found. This class exists in one of the dependency jar files but my question is why maven doesn't automatically download that dependency jar file? How can I solve this problem?

The other question is how can I use maven as

<dependency>
 <groupId>com.microsoft.azure</groupId>
 <artifactId>azure-documentdb-hadoop</artifactId>
 <version>1.0.0</version>
</dependency>
GEOCHET
  • 21,119
  • 15
  • 74
  • 98
HHH
  • 6,085
  • 20
  • 92
  • 164
  • 2
    Read "Maven in 5 minutes" https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html. Very helpful! – Vitalii Elenhaupt May 27 '15 at 19:45
  • Maven is usually very good about finding and downloading dependencies. Are you set up to point to maven central? Are you behind a firewall? Perhaps you need to configure your settings.xml – azurefrog May 27 '15 at 19:47
  • As @azurefrog mentioned, please verify your settings.xml and firewall settings. Immediate alternative can be, get the jar externally through download and can place in the local repository(all downloaded jars stay here) where you are referring to. This is ok, when you have issues with one or two jars. However as long term solution, please identify the other options mentioned. – Ramzy May 27 '15 at 20:40
  • I didn't rouch the setting.xml and it is the default values. How can I locate the local repository? should I just copy the missing jar file there? – HHH May 27 '15 at 20:43
  • I don't think that there is any firewall problem because it can download all the dependency files, except one! – HHH May 27 '15 at 20:45

1 Answers1

0

This is because the hive implementation is dependent on the open source hive serde which is not available in maven.

You need to add it as a dependency to your project to get to build, there are two ways to add it to project:

1) Adding the jar to your local maven repo Adding jar to local maven repo and add the local repo to your pom.xml file using this Add repository to your pom.xml You can get the jar from here json serde releases

2) Adding the jar as just a dependency jar to the project using eclipse without involving maven Add jar as dependency

Community
  • 1
  • 1
nomier
  • 402
  • 1
  • 3
  • 12