我是maven环境的新手,需要有人帮助。 在pom.xml中将我的外部jar文件(directoryhelper.jar)添加到lib文件夹中,如下所示:
<dependency>
<groupId>com.test.directoryhelper</groupId>
<artifactId>DirectoryHelper</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/directoryhelper.jar</systemPath>
</dependency>
编译成功,但在运行时出现java.lang.NoClassDefFoundError错误。
如何将directoryhelper.jar添加到类路径中。