Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can eclipse plugin project depend on java project

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.

like image 819
oshai Avatar asked Oct 19 '10 10:10

oshai


People also ask

What is the difference between project and Java project in Eclipse?

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.

Which plugin is needed for Java development in Eclipse?

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.

How do I add a project as a dependency of another project in Eclipse?

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.

What is Eclipse plugin project?

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.


1 Answers

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.

like image 81
Zoltán Ujhelyi Avatar answered Sep 29 '22 02:09

Zoltán Ujhelyi