Could not find artifact javax.sql:jdbc-stdext:jar:2.0 in central (https://repo.maven.apache.org/maven2)

后端 未结 2 585
刺人心
刺人心 2021-01-14 10:57

I\'m trying to build a REST API of web Services I created for my project. My web services are working without problems.

Now, I want to Deploy my Services on a distan

相关标签:
2条回答
  • 2021-01-14 11:04

    You experience the problem because you are including artifacts that have only source packages available. The maven dependency for jdbc.jdbc is referenced as a binary.

    Most probably you don't need to include that dependency because those interfaces are provided by the JEE containers that you run your WAR archive in. I would recommend removing the jdbc artifact with the exlusion part entirely.

    You can browse as what is available at jdbc/jdbc folder at Maven Central. And indeed the extension for it has removed under javax/sql at Maven Central.

    0 讨论(0)
  • 2021-01-14 11:28

    I believe this is because you listed the artifact as an exclusion in your pom. i.e

    <exclusions>
        <exclusion>
            <artifactId>jdbc-stdext</artifactId>
            <groupId>javax.sql</groupId>
        </exclusion>
    </exclusions>
    

    I think if you remove this block you will be fine

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