javac-djava.ext.dirs=./lib-d Classes Test.java Note:./lib for all jar packages that contain the Lib directory,-D is the generated class file directory, and Test.java is the test code.
Similarly, Java-djava.ext.dirs=./lib Test can also be used with-cp=classpath
JAR-TVF *.jar View jar Package directory structure
MVN warehouse settings, usually ~/.m2/settings.xml, or/etc/maven/settings.xml
<settings xmlns= "http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance "
xsi:schemalocation= "http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" >
<mirrors>
<mirror>
<id>CN</id>
<name>oschina central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>
This article is from the "Blood Java" blog, please be sure to keep this source http://sunrain990.blog.51cto.com/3700585/1590222
Java Javac jar MVN