0

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.

Alexey Zakharov
  • 23,564
  • 38
  • 122
  • 190

2 Answers2

2

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.

Community
  • 1
  • 1
Bozho
  • 554,002
  • 136
  • 1,025
  • 1,121
1

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.

bmargulies
  • 91,317
  • 38
  • 166
  • 290