简体   繁体   中英

Adding library source to eclipse project

Right now I am using Maven Jars with my project. But I need to modify the source code of one the libraries I am using. I need to add the full source code of a library to my project. I tried adding it in different ways, but I get a lot of errors and eclipse is not treating it as part of the project.

How do I do this?

First, find the actual project source, from the code repository which hosts it. Then clone/checkout the repository (with Eclipse or whatever) and import your library with File > Open Projects from Filesystem... or File > Import > Existing Maven projects... . Then library will be imported as project and Eclipse should relate it with your project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM