I have an eclipse plugin project which dependes on java project in my eclipse. usually what I did is export the project as jar and use it as-is in the plugin. but this requires manual work. can I have a reference from my plugin projct to a java project that will be both compile-time and run-time dependency ?
I saw a similar question, but not exactly the same.
Simple: Project is for more about embedded prgramming and java-project is for only with java-classes in package, you can place modules in source-folders but that's dirty work.
Spring Tool is the most popular Java plugin in Eclipse used to create Spring Boot projects. This plugin comes with tools used to run and monitor apps from inside IDE. You can also navigate through spring-specific code completion.
Instead open the project properties of the second project and select "Java Build Path". On the right side on the "Projects" tab you can add your first project as "required project on the build path". The class files of project 1 are now added to the class path of project 2.
Eclipse plugins are Java libraries that are running by Eclipse and can use Eclipse IDE APIs to extend Eclipse's functionality via many different ways.
I think, the closest thing to this is to create a jar file from the referenced project, and import it to the projects repository. But thats quite hard to manage for a currently developed project.
On the other hand, isn't it possible to simply convert the Java project into a plug-in permanently? If the other user does not use OSGi/Eclipse, he/she will see only a manifest/manifest.mf file (and possibly a plugin.xml) next to the java project specific stuff, so this would not disturb them, but would help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With