Search code examples
javamavenreflections

The dependency is missing from repository (error 404)


I'm trying to use the reflections-maven plugin in a project.

However, Maven refuses to compile the project because the following dependency is missing:

<groupId>org.jfrog.jade.plugins.common</groupId>
<artifactId>jade-plugin-common</artifactId>
<version>1.3.8</version>

I checked on the Maven central repository. The dependency is missing there (error 404).

How can I use reflections-maven without this dependency ?

NOTA:

  • The rules in my company disallow the use of custom repositories directly in pom.xml.

  • The internal Nexus MUST be used.


Solution

  • Since your requirements\limitations seem to be:

    1. not available in global nexus
    2. can't be added to your internal nexus
    3. don't want to add it to your lib folder

    The only remaining option seems to be for you to install it to your local maven repository as described here: http://maven.apache.org/plugins/maven-install-plugin/examples/specific-local-repo.html

    of course this will present issues on your build server and other teammembers will have to do the same, but I can't think of another solution given the limitations.