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
  • 24,694
  • 42
  • 126
  • 197

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
  • 588,226
  • 146
  • 1,060
  • 1,140
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
  • 97,814
  • 39
  • 186
  • 310