简体   繁体   English

在Maven Repo上找不到'javaxt-core'

[英]Cannot find 'javaxt-core' on Maven Repo

I have added the dependency below to my pom.xml but Eclipse (Oxygen) keeps giving the following error Missing artifact javaxt:javaxt-core:jar:1.7.8 . 我在pom.xml中添加了以下依赖项,但是Eclipse(Oxygen)始终显示以下错误缺少工件javaxt:javaxt-core:jar:1.7.8 Is there a way around this? 有没有解决的办法?

<!-- https://mvnrepository.com/artifact/javaxt/javaxt-core -->
<dependency>
    <groupId>javaxt</groupId>
    <artifactId>javaxt-core</artifactId>
    <version>1.7.8</version>
</dependency>

I recently added Maven support to the JavaXT website. 我最近将Maven支持添加到JavaXT网站。 Please use the following "repository" in your pox.xml: 请在pox.xml中使用以下“存储库”:

<repositories>
   <repository>
     <id>javaxt.com</id>
     <url>http://www.javaxt.com/maven</url>
   </repository>
</repositories>

Try few things out like below 尝试以下几件事

  1. Project > clean 项目>清洁
  2. right click on project and move on Maven > Update Project Configuration 右键单击项目,然后继续Maven>更新项目配置
  3. Disable then re-enable dependency management 禁用然后重新启用依赖性管理
  4. Lastly if any of above doesn't work then delete .m2 hidden folder or rename it and let maven create another .m2 directory. 最后,如果以上任何一个都不起作用,则删除.m2隐藏文件夹或重命名它,然后让maven创建另一个.m2目录。

I actually found a more stable way of fixing this issue as the previously accepted answer did not work on other environments. 实际上,我发现了解决此问题的更稳定方法,因为先前接受的答案在其他环境中不起作用。 I had to add the below to my pom.xml: 我必须将以下内容添加到我的pom.xml中:

   <repositories>
            <repository>
                <id>jspresso-repository</id>
                <url>http://repository.jspresso.org/maven2</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </repository>
   </repositories>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM