I wrote a hadoop MR job using spring-data-hadoop and used maven-shade-plugin to pack all necessary jars. But when I ran the job from comand line:hadoop jar , it gave me Exception for ClassNotFound for the spring-beans. Resulting problem in loading spring application context. There after I used maven-assembly-plugin and packed all required jars in a lib folder. This time it worked.
I fail to understand why did it failed with maven-shade-plugin. Can someone help me understand my observation.