Could not find artifact in maven central repo when search returns a match

前端 未结 1 1119
挽巷
挽巷 2021-01-04 10:07

I am attempting to introduce a dependency on the castor library in my pom. Since my project is at a preliminary stage, all artifacts are from maven central. So I search in s

相关标签:
1条回答
  • 2021-01-04 10:53

    The problem you have is that the artifact which you have defined as a dependency:

    <dependency>
        <groupId>org.codehaus.castor</groupId>
        <artifactId>castor</artifactId>
        <version>1.3.3</version>
    </dependency>
    

    defines a jar artifact as the error messages implies: org.codehaus.castor:castor:jar:1.3.3

    The problem is that on Maven Central this kind of artifact does not exist. It only exist a pom file but not a jar file.

    0 讨论(0)
提交回复
热议问题