添加架包到 maven 仓库
pom 中添加
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
<inherited>false</inherited>
<executions>
<execution>
<id>generalFinance</id>
<phase>validate</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>com.tass.hsm</groupId>
<artifactId>general-finance</artifactId>
<version>1.60.3028</version>
<packaging>jar</packaging>
<file>${basedir}/src/main/lib/TassHsmApihsmGeneralFinance_1.60.3028.jar</file>
</configuration>
</execution>
<execution>
<id>driverSJJ1310</id>
<phase>validate</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>com.tass.hsm</groupId>
<artifactId>driver-sjj1310</artifactId>
<version>3.92.3028</version>
<packaging>jar</packaging>
<file>${basedir}/src/main/lib/TassHsmDriver_SJJ1310_3.92.3028.jar</file>
</configuration>
</execution>
<execution>
<id>Frame</id>
<phase>validate</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>com.tass.hsm</groupId>
<artifactId>frame</artifactId>
<version>2.61.3028</version>
<packaging>jar</packaging>
<file>${basedir}/src/main/lib/TassHsmFrame_2.61.3028.jar</file>
</configuration>
</execution>
</executions>
</plugin>
执行 validate 就可以自动将架包放到本地 maven 仓库中