I am trying to compile an artifact with dependecies of commons-io (org.apache.commons.io), IDE included it in maven automatically.
Thing is, I prefer compiling artifacts over compiling maven projects. And when I compile artifacts, I get NoClassDefFoundError
, but when I compile project with maven, everything works. What should I do to make artifacts have those dependencies?
I figured it out myself.
Just deleted the old artifact and created new one, and it worked.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.