0

How to programmatically retrieve artifacts' jars from Maven in order to perform search inside them? Any ideas or some useful API?

ilija
  • 543
  • 1
  • 11
  • 19
  • So I assume you want to download the source code? Look here http://stackoverflow.com/questions/2059431/get-source-jars-from-maven-repository – matsev Jan 13 '12 at 22:59
  • From [Can I use Maven repository manager outside of Maven?](http://stackoverflow.com/questions/5296271): Use [Aether](https://docs.sonatype.org/display/AETHER/Home) if you want to benefit from Maven dependency resolution mechanizm. – dma_k Jan 13 '12 at 23:56

1 Answers1

0

The following answer uses ivy to download source jars so that they can be compiled

Maven compile a source jar dependency

You didn't specify what you were searching for. Sounds like you'll possibly need a custom plug-in if you continue with a Maven solution.

Community
  • 1
  • 1
Mark O'Connor
  • 76,015
  • 10
  • 139
  • 185