在把自己的jar提供到中央厂库的时候发现自己对maven认识还不足够,于是便再一次详细看了一篇,一门技术当你不懂的时候学习的过程是很快的,当你了解了一些,再学习的过程便会变慢,这便是高中老师经常说的书会越读越后最后变薄的过程吧
依赖说明
pom.xml说明
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!--指定单签pom版本 必须--> <modelVersion>4.0.0</modelVersion> <!--坐标--> <groupId></groupId> <artifactId></artifactId> <!-- snapshot 快照 alpha 内侧测试版本 beta 公测版本 release 稳定版本 ga 正式发布版本 --版本均用大写 如 1.0.1RELEASE --> <version></version> <!--打包方式 默认jar --> <packaging> </packaging> <!--项目描述名--> <name></name> <!--项目地址--> <url></url> <!--项目描述--> <description></description> <!--开发成员列表 信息--> <developers></developers> <dependencies> <dependency> <groupId></groupId> <artifactId></artifactId> <version></version> <type></type> <!--依赖范围--> <scope></scope> <!--设置依赖是否可选 默认为false 默认继承 true必须显示引入依赖--> <optional></optional> <!--排除依赖传递列表--> <exclusions> <exclusion> <!--坐标--> </exclusion> </exclusions> </dependency> </dependencies> <!--依赖管理 不会运行不引入依赖 定义在父模块中 --> <dependencyManagement> <!--依赖列表--> </dependencyManagement> <!--为构建行为提供支持 --> <build> <!--插件列表--> <plugins> <plugin> <!--坐标--> </plugin> </plugins> </build> <!--子模块继承父模块--> <parent> </parent> <!-- 聚合运行多个maven模块编译 --> <modules> <module></module> </modules> </project>
|