Andy Shulman
Andy Shulman

Reputation: 1925

Build against a library but not include it in the jar

I'm converting an existing codebase to build via Maven. I set up my dependencies properly, but Maven is actually including all of the compiled dependency files in the resulting jar. I want to be able to choose which dependencies are included and which are merely linked against but not included. How do I do this?

Upvotes: 1

Views: 81

Answers (1)

billjamesdev
billjamesdev

Reputation: 14640

You want to look at this link and read up on "dependency scopes"

http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

Upvotes: 2

Related Questions