0

I'm very new to Web development, but I can't figure out what's happening here:

pom.xml file not recognizing version

I'm working on a project with multiple repositories, that depend on each other. All my repositories can be seen on the left of the image there, and the dependencies go: utils > dao > base_services > api_rest > integradores > geracao_de_boletos > ws > webjar >web (where web depends on all that came before it to work).

All was cool until, for some god forsaken reason, a dependency I used called 'Jrimum' simply stopped working. It was no big deal, since they have a rival that does the exact same thing, so I just took a day to migrate from one to the other and thought that was that.

Except out of nowhere, when I try to perform Maven's clean/ install protocol, now ANOTHER dependency has an error, that, as far as I know, didn't have the error before!

That's the dependency you see on screen there: "jaxws-ri". When I run mvn clean install, the following error appears:

"Failure to find com.sun.xml.ws:jaxws-ri:pom:2.3.3-b01 in https://repository.jboss.org/nexus/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of org.jboss.repository.releases has elapsed or updates are forced"

Now, this bogles my mind, because, if I go to the original Maven dependency website (https://mvnrepository.com/artifact/com.sun.xml.ws/jaxws-ri),the version exists there (Mind the edit at the end of the post!) Now, I know the version that I'm trying to use seems a little dodgy, but I've tried other versions on my POM file and it doesn't recognize them either.

Maven version is 3.6.1 and IDE is Intellij Ultimate.

EDIT: So, apparently, the website I thought to be the original Maven sources, isn't! Instead, I've been directed to "https://search.maven.org/artifact/com.sun.xml.ws/docs/2.3.3-b01/pom" (thanks to user khmarbaise by the way). And when I ctrl C + ctrl V the Maven dependency example, it fixes my initial problem, which is absolutely great! But it also creates a bunch of other problems on other libraries...

(Error message seen on screen is "bad path element "C:\Users\Dunning.m2\repository\com\mchange\c3p0\0.9.5.3\mchange-commons-java-0.2.15.jar": no such file or directory")

So, my new question is: do dependencies have other dependencies? Is the error being caused because this dependency that got added (properly now), has other dependencies of it's own?

4

0 回答 0