<!--先要mvn clean 把jar安装到本地仓库 先mvn clean 然后mvn install -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>install-words</id>
<phase>clean</phase>
<configuration>
<file>${basedir}/lib/aspose-words-14.9.0-jdk16.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>org.aspose</groupId>
<artifactId>words</artifactId>
<version>3.7.2</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
<execution>
<id>install-cells</id>
<phase>clean</phase>
<configuration>
<file>${basedir}/lib/aspose-cells-8.6.0.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>com.aspose</groupId>
<artifactId>aspose-cells</artifactId>
<version>8.6.1</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
maven添加非官方jar包到本地库
最新推荐文章于 2024-05-22 14:44:39 发布