Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven: Plugin to download dependency source from github?

Tags:

github

maven

avro

I have a build that depends on com.odiago.avro:odiago-avro:jar:1.0.5, which I've been unable to find prebuilt in any repository.

The source is available on github. Is there a maven plugin I can use to get maven to download and build the dependency, or will I need to manually download and install it?

like image 299
rampion Avatar asked Mar 26 '12 20:03

rampion


People also ask

What is maven download plugin?

Download Plugin for Maven This is a plugin meant to help maven user to download different files on different protocol in part of maven build. For the first implementation, there will only be a goal that will help downloading a maven artifact from the command line.

What is maven clean plugin?

The Clean Plugin is used when you want to remove files generated at build-time in a project's directory.

What does maven dependency plugin do?

The dependency plugin provides the capability to manipulate artifacts. It can copy and/or unpack artifacts from local or remote repositories to a specified location.

What is maven build plugin?

What is a Plugin? "Maven" is really just a core framework for a collection of Maven Plugins. In other words, plugins are where much of the real action is performed, plugins are used to: create jar files, create war files, compile code, unit test code, create project documentation, and on and on.


1 Answers

I don't think there is such a plugin, but I'd say that even if there were it'd probably serve you better to download the source (using a stable tag), build it yourself, and install it into your local repository (mvn install). Few reasons:

  1. building the 3rd party project is a one-time thing - unless it's something that needs to be repeated as part of your build, there's no gain in having it as part of your maven script. It'll just slow the build down.
  2. the library might change under your feet.
like image 199
Roy Truelove Avatar answered Sep 21 '22 19:09

Roy Truelove