Maven systemPath is not added to runtime classpath -


i need add jdk's tools.jar project dependency.

setting normal dependency not working, because when installing maven repository, adds version number jar file. thereafter, when need needs tools.jar in classpath, fails.

using system scope , setting path jar using < systempath > should solve problem. however, although in tests jar added classpath, @ runtime not.

is there way around this?

btw, i've added < usemanifestonlyjar >false< /usemanifestonlyjar > surefireplugin can see every file in classpath.

is maven running in jdk?

find out version of java it's running,

mvn -ver

set java_home env variable point jdk.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -