0

I have this error:

Offline / Missing artifact javax.annotation:javax.annotation-api:jar:1.3

I am relatively new to maven How to debug this error ?

This is the code I used, the error comes from artifacrId

<dependency>
            <groupId>org.opensourcebim</groupId>
            <artifactId>bimserver</artifactId>
            <version>1.5.158-SNAPSHOT</version>
</dependency>
Stevy
  • 3,228
  • 7
  • 22
  • 38
celia
  • 33
  • 10

1 Answers1

0

The requested version is not available in the repository. You can use the following one:

<dependency>
    <groupId>org.opensourcebim</groupId>
    <artifactId>bimserver</artifactId>
    <version>1.5.152</version>
</dependency>

Please pay attention that using the SNAPSHOT versions are not the right decision, in order to get more information about SNAPSHOT check this relevant question.

Elyas Hadizadeh
  • 3,289
  • 8
  • 40
  • 54
  • Thank you for your answer, I triyed it and made `maven updated project `, it did not work. I have to work with SNAPSHOT because it a cloned git repo from bimserver – celia Jul 22 '19 at 09:43
  • @celia I see. So maybe this question can be helpful: https://stackoverflow.com/questions/7715321/how-to-download-snapshot-version-from-maven-snapshot-repository – Elyas Hadizadeh Jul 22 '19 at 09:48
  • it might be that I did not enable snapshots or maven not correctly configured, No idea how to check that. – celia Jul 22 '19 at 09:57
  • @celia I guess you need to apply the accepted answer of this https://stackoverflow.com/a/7717234/3881354 and If you cannot find `settings.xml` in the `~/.m2/` directory, create a new one and edit it. By default there is no `settings.xml` unless you want to change the default settings. https://stackoverflow.com/a/40255910/3881354 – Elyas Hadizadeh Jul 22 '19 at 10:07