Maven插件:maven-install-plugin
accttodo 12/31/2023 Maven
目录
参考链接:https://blog.csdn.net/asing1elife/article/details/82732113 (opens new window)
# Maven插件:maven-install-plugin
通过 maven-install-plugin 插件对 jar 包进行安装 ,<phase>clean</phase>
表示执行 clean 操作时安装
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>install-ppts-model</id>
<phase>clean</phase>
<configuration>
<file>${basedir}/../lib/ppts-model-1.0-SNAPSHOT.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>ppts.model</groupId>
<artifactId>ppts-model</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23