install:install-file -Dfile=C:\Users\dell\Desktop\aspose-words-16.5.0-jdk16.jar -DgroupId=com.aspose.words -DartifactId=aspose-words -Dversion=1.0 -Dpackaging=jar -f pom.xml
2、
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-words</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/myjar/aspose-words-1.0.jar</systemPath>
</dependency>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<directory>src/myjar</directory>
<targetPath>WEB-INF/lib/</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useSystemClassLoader>true</useSystemClassLoader>
</configuration>
</plugin>