maven3 手动安装本地jar到仓库

安装命令:apache

mvn install:install-file -Dfile={Path/to/your/ojdbc.jar} -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar

本身安装本身生成的jar包:


生成后的该jar包在maven仓库中,自动生pom文件,pom文件内容为:

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" 
         xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  
  
   <modelVersion>4.0.0</modelVersion>   <groupId>www.myutile</groupId>    <artifactId>StringUtile</artifactId>   <version>11.2.0</version>   <description>POM was created from install:install-file</description> </project>
相关文章
相关标签/搜索