Jessei
9/5/2017 - 7:36 AM

myeclipse 自己添加外部jar包

myeclipse 自己添加外部jar包

goals install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar -Dfile=F:\app\Administrator\product\11.2.0\dbhome_1\jdbc\lib\ojdbc6.jar


(简要说明:
mvn install:install-file   
-DgroupId=包名 
-DartifactId=项目名
-Dversion=版本号
-Dpackaging=jar
-Dfile=jar文件所在路径(上面路径为E盘下面的jackson-all-1.9.11.jar包,切记一定要将jackson-all-1.9.11.jar放在E盘下,否则路径中没有此jar包则不能成功加载到本地仓库中)
)

<dependency>
			<groupId>com.oracle</groupId>
			<artifactId>ojdbc6</artifactId>
			<version>11.2.0.1.0</version>
</dependency>