随笔分类 -  Maven

Maven 基本参数
摘要:-h,--help Display help information-am,--also-make 构建指定模块,同时构建指定模块依赖的其他模块;-amd,--also-make-dependents 构建指定模块,同时构建依赖于指定模块的其他模块;-B,--batch-mode 以批处理(batc 阅读全文

posted @ 2018-10-10 17:42 兔大锤 阅读(152) 评论(0) 推荐(0)

Maven 标签
摘要:scope 1.compile:默认值 他表示被依赖项目需要参与当前项目的编译,还有后续的测试,运行周期也参与其中,是一个比较强的依赖。打包的时候通常需要包含进去 2.test:依赖项目仅仅参与测试相关的工作,包括测试代码的编译和执行,不会被打包,例如:junit 3.runtime:表示被依赖项目 阅读全文

posted @ 2018-09-26 13:33 兔大锤 阅读(172) 评论(0) 推荐(0)

Maven clean基本命令
摘要:转自 https://www.cnblogs.com/hiver/p/7850954.html 假设现有项目结构如下 dailylog-parent|-dailylog-common|-dailylog-web 三个文件夹处在同级目录中 dailylog-web依赖dailylog-common d 阅读全文

posted @ 2018-09-26 09:37 兔大锤 阅读(29827) 评论(0) 推荐(0)

Maven 添加jar包到本地仓库
摘要:一、使用Maven命令安装jar包 前提:在windows操作系统中配置好了Maven的环境变量,怎么配置请自己百度,这里不介绍,可参考https://jingyan.baidu.com/article/cb5d61050b8ee7005d2fe04e.html 在windows的cmd命令下,参考 阅读全文

posted @ 2018-09-26 08:42 兔大锤 阅读(737) 评论(0) 推荐(0)

Maven 常见错误
摘要:1.ReasonPhrase: Forbidden: | 1.注意用户的权限以及角色role的设置,一般是没有权限才会被禁止的。 2.Failed to collect dependencies: | 1.需要把parent工程,也就是package是pom的那个工程先install一下,或者dep 阅读全文

posted @ 2018-09-21 17:40 兔大锤 阅读(566) 评论(0) 推荐(0)

导航