Run configuration not supporting $Classpath$
已回答
Trying to add a path to the class path in my run configuration by adding VM option like:
-cp $Classpath$;c:\mypathToDirectory
This does not result.. my path is not added to the classpath. While I can go into the Project Structure in add a dependency and put in my path there… the problem is that if i were to reload my project from the pom.xml, that change gets wiped out.
So… How can I add to my class path in this run configuration OR add something in my pom.xml that intellij will recognize and and recreate that dependency directory ?
请先登录再写评论。
Why would you need to do that? How is it expected to work in the command line Maven, not in the IDE?
Does the error occur during compilation or runtime?
If you need to add local dependencies via Maven, please see these first:
https://stackoverflow.com/questions/364114
https://stackoverflow.com/questions/4955635
It would help if you could share a sample project to reproduce the problem (GitHub link would be great).