右键jar包,Build Path--Add to Build Path
<dependency> <groupId>com.vmware</groupId> <artifactId>sso.client</artifactId> <version>6.5.3</version> <type>jar</type> <scope>system</scope> <systemPath>${basedir}/lib/ssoclient.jar</systemPath> </dependency>
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <executions> <execution> <id>install-vim25</id> <phase>initialize</phase> <goals> <goal>install-file</goal> </goals> <configuration> <packaging>jar</packaging> <groupId>com.vmware</groupId> <artifactId>vim25</artifactId> <version>6.5.3</version> <file>./lib/vim25.jar</file> </configuration> </execution> </executions> </plugin>
打包之后,可以通过dependency正常引入:
<dependency> <groupId>com.vmware</groupId> <artifactId>vim25</artifactId> <version>6.5.3</version> </dependency>