Reputation: 25110
What is the right declaration of local jar library in maven pom.xml?
I need this to add bugsense-trace.jar that is not present in maven central.
Upvotes: 0
Views: 518
Reputation: 100161
You don't. There is a thing called 'system' scope, but it always causes more problems than it solves.
Use mvn install:install-file, or better yet install nexus or archiva and deploy it there.
Upvotes: 1
Reputation: 597362
Install it in the local repository (or just place it under com/foo/bar/0.1
in the local repository) and refer to it by that fqn.
See this answer for more details.
Upvotes: 2