Catalog
  1. 1. maven相关命令
    1. 1.1. maven项目版本设置
    2. 1.2. maven提交源码
maven

maven相关命令

maven项目版本设置

1
2
3
mvn versions:set -DnewVersion=xxx

mvn versions:commit

maven提交源码

添加plugin插件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${version}</version>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Author: tuean
Link: http://tuean.cn/2019/09/29/maven/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Donate
  • 微信
  • 支付寶

Comment