3

I have a project in Eclipse which I built using Maven and it has hundreds of JARs as reference libraries. Is there a way to include all these reference libraries to another project?

Hashken
  • 4,396
  • 7
  • 35
  • 51

1 Answers1

10

Since the original project involved Maven dependencies, there are two ways of doing this.

- Maven

To accomplish this in Maven style refer to this question. How to add "Maven Managed Dependencies" library in build path eclipse?

- Adding a project as dependency

The more simpler way of doing this (for beginners and testers), is to just include the original project as a dependency to the new project.

  • In your original project, travel to Properties > Java Build Path > Order and Export. Select all the dependencies that you want for your new project.
  • In your new project, travel to Properties > Java Build Path > Projects. Now add the original project.
Community
  • 1
  • 1
Hashken
  • 4,396
  • 7
  • 35
  • 51