-
groupId
will identify your project uniquely across all projects, so we need to enforce a naming schema. It has to follow the package name rules, what means that has to be at least as a domain name you control, and you can create as many subgroups as you want. Look at More information about package names.
eg. org.apache.maven
, org.apache.commons
A good way to determine the granularity of the groupId is to use the project structure. That is, if the current project is a multiple module project, it should append a new identifier to the parent's groupId.
eg. org.apache.maven
, org.apache.maven.plugins
, org.apache.maven.reporting
-
artifactId
is the name of the jar without version. If you created it then you can choose whatever name you want with lowercase letters and no strange symbols. If it's a third party jar you have to take the name of the jar as it's distributed.
eg. maven
, commons-math
-
version
if you distribute it then you can choose any typical version with numbers and dots (1.0, 1.1, 1.0.1, ...). Don't use dates as they are usually associated with SNAPSHOT (nightly) builds. If it's a third party artifact, you have to use their version number whatever it is, and as strange as it can look.
eg. 2.0
, 2.0.1
, 1.3.1
分享到:
相关推荐
钉钉sdk-dependency-maven ... <groupId>DingTalk</groupId> <artifactId>open-sdk</artifactId> <version>1.0.0</version> 钉钉的无官方 <dependency> ,使用maven命令将jar打包成maven形式的<dependency>
compile 'com.daimajia.androidanimations:library:1.1.3@aar'}Maven<dependency> <groupId>com.nineoldandroids</groupId> <artifactId>library</artifactId> <version>2.4.0</version> ...
<artifactId>spring-boot-maven-plugin</artifactId> --------------------------- src/main/resources/application.yml --------------------------- spring: # 指定静态资源的路径 resources: static-...
<groupId>com.maven.test</groupId> <artifactId>springMybaits</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar <name>springMybaits <url>http://maven.apache.org</url> ...
例如,在"apache-maven-3.3.9"中,groupId可能是"org.apache.maven",artifactId为"maven",version为"3.3.9"。 3. **仓库 (Repository)**:Maven 使用仓库来存储和检索依赖的JAR文件。本地仓库是默认的,当项目...
baseversion-maven-插件 从 Maven 项目中提取基本版本号。 如果您的项目在持续交付管道中进行管理并且版本号应包含内部版本号,这将... <artifactId>baseversion-maven-plugin</artifactId> <version>0.0.1-SNAPSHO
<groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> 并没有找到tomcat8-maven-plugin的plugin,在Maven的中央仓库中根本就没有这个插件: ...
<artifactId>ssm-maven</artifactId> <packaging>war <version>0.0.1-SNAPSHOT</version> <name>ssm-maven Maven Webapp <url>http://maven.apache.org</url> <!-- Spring 版本 --> <spring.version>4.0.2....
该资源为SpringMVC中json转换所需要的Maven仓库,如果maven下载包的时候速度太慢,可以使用我的这个资源,把这个直接考到本地Maven仓库即可。 对应的Maven依赖如下: <groupId>org.codehaus.jackson</groupId> ...
1. **pom.xml文件**:这是Maven项目的配置文件,其中包含了项目的基本信息(如groupId、artifactId、version),以及项目所依赖的外部库(dependencies)。例如: ```xml <modelVersion>4.0.0 <groupId>...
### Spring4 + Hibernate5 Maven构建知识点详解 #### 一、Maven配置与依赖管理 在进行Spring4与Hibernate5的项目构建时,首先需要通过Maven来管理项目的依赖关系。以下将详细介绍`pom.xml`文件中的配置以及相关...
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <version>3.1</version> <failOnMissingWebXml>false jar项目添加 <groupId>org....
这是每个Maven项目的心脏,它定义了项目的配置信息,包括项目的基本信息(如groupId、artifactId、version),以及项目依赖的外部库。当你需要引入一个新的依赖包时,你需要编辑`pom.xml`文件,添加相应的`...
apt-maven-插件 apt-maven-plugin提供Java 6 APT功能的Maven集成。 支持的目标是 ... <artifactId>apt-maven-plugin</artifactId> <version>1.1.3</version> <goal>process <config
在IDE如IntelliJ IDEA或Eclipse中,选择新建Maven项目,填写项目的GroupId(通常是公司域名反写)、ArtifactId(项目唯一标识)和Version。在pom.xml文件中,这是Maven项目的配置中心。 为了搭建SSM框架,我们需要...
<artifactId>maven-fop-plugin</artifactId> <version>2.6</version> <!-- 配置文件路径等 --> ``` 3. **Maven Reports Plugin**: Maven 提供了一系列内置的报告插件,例如 Javadoc、PMD、Checkstyle ...
- `build/plugins`: 配置构建过程中使用的Maven插件,包括`groupId`, `artifactId`, `version`,以及插件的目标(goals)和配置参数。 - `build/pluginManagement`: 类似于`dependencyManagement`,提供插件版本和...
maven构建项目需要导入 <groupId>org.apache.axis2</groupId> <artifactId>axis2</artifactId> <version>1.6.2</version> <groupId>org.apache.axis2</groupId> <artifactId>axis2-...
Maven依赖的基本格式是groupId:artifactId:version,它由三部分组成:组织(groupId)、项目(artifactId)和版本(version)。这三部分构成了Maven坐标,使得每个库在仓库中都能被唯一识别。以下是一些常用的Maven...