随笔分类 - Maven
Maven添加本地jar包
摘要:项目依赖的一个jar包是在开发环境的maven 私有仓库获取的,在部署的环境中没法获取到,所以采取了将jar包放在项目目录下,pom中添加本地依赖的方式 1 通过scope:system引入 把jar包放在根目录下的lib包中,添加依赖 1 <dependency> 2 <groupId>**</g
阅读全文
MAVEN pom.xml配置详解
摘要:1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 xsi:schemaLocation="http://maven.apache.o
阅读全文
Maven缺少jar添加方式
摘要:Maven 中央仓库地址: 1. http://www.sonatype.org/nexus/ 2. http://mvnrepository.com/ (本人推荐仓库) 3. http://repo1.maven.org/maven2 在maven中添加jar包: Maven是基于项目对象模型,提
阅读全文