![]() ![]() The main project which will include the sub project, will not be able to access the classes and methods which are present as part of the sub project’s jar file. When we work with multiple maven projects and include them as dependencies to other projects.Now let look at couple of reasons why we suggest to go for first approach and not for second approach. You can even provide a hard coded or full absolute path instead of the above notation. $ refers to your project’s base directory and the remaining part is the path to your jar from the base directory. ![]() And in the path we need to specify the path where jar file is located. That is you can call the respective classes and methods which are part of the included jar file.Ībove is the example based on the syntax provided by maven. This approach allows you to include jar file as part of your maven project and be able to work in eclipse properly. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |