0

How do I add external jar files to maven web app project using Eclipse M2 Plugin?

user2054833
  • 2,115
  • 7
  • 24
  • 39
  • 2
    What do you mean by "external jar file" ? Usually you add them as dependencies in Eclipse use Pom file view go to tab **Dependencies** and push button **Add** and type in coordinates. – khmarbaise Apr 15 '13 at 16:47
  • 1
    I want to add a jar file that I added to my projects build path thats not in the maven repository. – user2054833 Apr 15 '13 at 16:50

2 Answers2

1

The most correct way is probably to install them to the repo.

However, for an alternate, see the top answer to:

Can I add jars to maven 2 build classpath without installing them?

Community
  • 1
  • 1
Aurand
  • 5,487
  • 1
  • 25
  • 35
0

You want to use mvn install:install-file. See here for the instructions in the Maven guide:

http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

g051051
  • 1,021
  • 5
  • 11