How can I download Maven artifacts in chef?

Posted by recampbell on Server Fault See other posts from Server Fault or by recampbell
Published on 2012-01-22T21:02:18Z Indexed on 2012/10/19 5:06 UTC
Read the original article Hit count: 459

Filed under:
|

I want to do something like this in a chef recipe:

maven_artifact "/opt/foo/my.jar" do
  source "com.foo:my:0.1:jar"
end

But I can't find a cookbook which provides this. I've written something which basically does this but it doesn't handle snapshots, which requires parsing maven-metadata.xml. Before I plunge into this, I wanted to be sure I wasn't missing something obvious since this seems like a basic usecase.

© Server Fault or respective owner

Related posts about chef

Related posts about maven