Hi,

I am trying to figure out how maven works. When I add a dependency to my 
existing pom.xml and rebuild my spark application project. BUILD SUCCESS I can 
get from the console. However, when I running the spark application, the 
spark-shell was not happy and directly give me a message following :

Exception : Java.lang.NoClassDefFoundError : 
com/github/stuxuhai/jpinyin/PinyinFormat
Caused by : ClassNotFoundException : com.github.stuxuhai.jpinyin.PinyinFormat

I go to the directory .m2/repo/com/github/stuxuhai/jpinyin/1/.1.1 and 
jpinyin-1.1.1.jar was there. What happened ? Can anyone help me ?

Thanks,
Minglei.




Reply via email to