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,074
  • 41
  • 124
  • 194

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
  • 572,413
  • 138
  • 1,043
  • 1,132
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
  • 94,623
  • 39
  • 172
  • 299