3

Similar to Maven: Including jar not found in public repository, I have a project that is built using maven and relies on a third party jar(just the jar is provided, not a maven project).

I currently store just include this jar in the project itself and point to it like:

<dependency>
     <groupId>org.thirdparty</groupId>
     <artifactId>thirdparty</artifactId>
     <version>1.0</version>
     <scope>system</scope>
     <systemPath>${project.basedir}/lib/thirdparty.jar</systemPath>
</dependency>

This is nice, but I was wondering if it would be possible to store that thirdparty.jar in a central location, say S3 for instance, and then have that jar just be pulled from there when the project is being built?

Edit: Aware that there are probably some third party services that can do this, however, I am not really interested in anything along those lines. Just looking to see if there is a pom xml tag or command line option that I appear to be overlooking.

Community
  • 1
  • 1
Brent Hronik
  • 2,357
  • 1
  • 27
  • 43
  • 1
    That's what [Nexus](http://www.sonatype.org/nexus) is for. – azurefrog Mar 03 '15 at 20:29
  • You may use a repository manager like nexus. This link would be helpful if you want to create repository manager - http://stackoverflow.com/questions/20882622/maven-private-remote-repository-setup – Razib Mar 03 '15 at 20:39
  • Another solution is Artifactory. http://www.jfrog.com/open-source/ Bitnami also has a very simple windows install for it or a Linux VM https://bitnami.com/stack/artifactory – Paul Zepernick Mar 03 '15 at 20:55
  • Thanks to those that have responded, not looking to do anything to fancy with this though, just looking to see if there is a simple tag or option in maven that I am overlooking. – Brent Hronik Mar 03 '15 at 22:57

0 Answers0