简体   繁体   中英

Compile artifact in IntelliJ IDEA with dependencies?

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?

PS: my artifact settings.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM