Alexey Zakharov
Alexey Zakharov

Reputation: 25110

How to declare jar file in pom.xml?

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

Answers (2)

bmargulies
bmargulies

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

Bozho
Bozho

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

Related Questions