无法在Maven项目中导入abeel util [英] not able to import abeel util in a maven project
问题描述
我要在maven中进行一个项目,并在其中使用 Java-ML .使用此库时,出现错误java.lang.ClassNotFoundException: be.abeel.util.GZIPPrintWriter
I am going a project in maven and using Java-ML in it. While using this library i got error java.lang.ClassNotFoundException: be.abeel.util.GZIPPrintWriter
现在要消除此错误,我正尝试通过import be.abeel.util.GZIPPrintWriter;
Now for removing this error, i am trying to import the missing class by import be.abeel.util.GZIPPrintWriter;
但是导入语句不起作用,因为我无法找到要写入pom.xml来解决依赖关系的Abeel Javakit工具(AJT)的存储库.
but the import statement is not working as i am not able to find the repository of the Abeel Javakit Tool (AJT) to write in the pom.xml to resolve the dependency.
如何在Maven中解决此依赖性.请帮忙.
How to resolve this dependency in maven. Please help.
谢谢.
推荐答案
它可能尚未部署到Maven Central或另一个Maven存储库.
It might not have been deployed to Maven Central or another Maven Repository.
在这种情况下,您可以执行以下操作:
In this case you can do the following:
-
将JAR添加到您的公司Maven存储库(对于Nexus,请参见此处:尝试将JAR部署到Maven Central:
Try to get the JAR deployed to Maven Central:
-
请项目所有者将JAR部署到Maven Central.以下是项目所有者如何执行此操作的文档: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-9.StageaRelease
如果项目所有者未响应,但许可证与Maven Central要求兼容:
If the project owner does not respond but the license is compatible with Maven Central requirements: https://docs.sonatype.org/display/Repository/Uploading+3rd-party+Artifacts+to+The+Central+Repository
-
这篇关于无法在Maven项目中导入abeel util的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!