随笔分类 -  Maven

Maven 快速构建一个项目
摘要:参考:http://www.spring4all.com/article/266 导出依赖的jar包: mvn dependency:copy-dependencies -DoutputDirectory=lib 阅读全文
posted @ 2018-06-12 10:32 1161588342 阅读(125) 评论(0) 推荐(0)
Linux Maven安装
摘要:官网: http://maven.apache.org/download.cgi >wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz > 阅读全文
posted @ 2017-11-24 16:08 1161588342 阅读(135) 评论(0) 推荐(0)
Maven 多环境 打包
摘要:1.pom.xml文件添加profiles属性 2:在项目目录下面编译项目 >maven compile 3:编译成功后,打包 >maven package -Denv=prod 这个地方需要注意env 指如下env名称 阅读全文
posted @ 2017-09-08 18:27 1161588342 阅读(118) 评论(0) 推荐(0)
Maven 项目中 添加自己的jar包
摘要:mvn install:install-file -Dfile=java-bloomfilter-1.0.jar -DgroupId=com.sina -DartifactId=java-bloomfilter -Dversion=1.0 -Dpackaging=jar -Dfile:指明你当前ja 阅读全文
posted @ 2017-09-07 22:09 1161588342 阅读(326) 评论(0) 推荐(0)
提高依赖下载速度
摘要:配置方法 找到maven的安装目录,conf文件夹下的setting.xml文件 打开setting.xml文件,找到mirrors节点添加阿里镜像库地址: <!-- 阿里云仓库 --> <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> 阅读全文
posted @ 2017-09-07 22:02 1161588342 阅读(125) 评论(0) 推荐(0)