How to remove the explicit dependencies to other projects' libraries in Eclipse launch configurations? -


It is possible to create a launch configuration in a project in Eclipse, which specifies the runtime dependency from another project. I found a problem that if you have a lot more project area, then it is possible that each project has its own libraries, it is easy to add clear dependencies to a secondary project for libraries of any other project and hence is subject to change .

An example of this problem is as follows:

 proj1 + - src + - lib + - jar1-v1.0.jar + - jar2-v1.0.jar proj2 + - Src + - proj2-tests.launch 

I have no reliance on the libraries in proj1 / lib from code in Proj2 / src. However, I get dependency on proj1 / src from proj2 / src, although because of its internal dependency in code in proj1 / src on library jar1-v1.0.jar and jar2.v1.0.jar I Proj2-tests The dependency will need to be added. Launch libraries in ProJ1 / lib It translates the following ugly lines in proj2-tests.launch:

 & lt; ListEntry value = "& lt ;? Xml version = & quot; 1.0 & quot; encoding = & quot; UTF-8 & quot; standalone = & quot; no & quot;? & Gt; & Lt; runtimeClasspathEntry पथ = & quot; 3 & quot; ProjectName = & quot; proj1 & quot; प्रकार = & quot; 1 & quot; / & gt; "/ & Gt; & lt; सूची प्रविष्टि मान =" & lt;? Xml संस्करण = & quot; 1.0 & quot; एन्कोडिंग = & quot; UTF-8 & quot; स्टैंडअलोन = & quot; & quot;? & gt; & Lt; runtimeClasspathEntry internalArchive = & quot; /proj1/lib/jar1-v1.0.jar" पथ = & quot; 3 & quot; प्रकार = & quot; 2 & quot; / & gt; "/ & Gt; & lt; सूची प्रविष्टि मान =" & lt;? Xml संस्करण = & quot; 1.0 & quot; एन्कोडिंग = & quot; UTF-8 & quot; स्टैंडअलोन = & quot; & quot;? & gt; & Lt; runtimeClasspathEntry आंतरिकअर्चिव = & quot; /proj1/lib/jar2-v1.0.jar" पथ = & quot; 3 & quot; प्रकार = & quot; 2 & quot; / & gt; "/> Gt; 

Upgrading software, libraries, etc are not required from time to time so this will not be a big problem etc. Libraries Jar 1-v1.0.jar and jar2 -v1.0.jar for their versions v1.1. Think you have about 10 projects in one workspace, each of which has approximately 5 libraries and nearly 4 launch configurations.A simple upgrade of a library, which is mango On the other hand Changes should be shown for those who did not need it, or maybe I am doing something wrong ...

What I would like to say proj2 depends on Proj1 and its libraries and its translation only Is it possible?

As long as you get project 1 to project 2 If you add in the way of construction, then for the project 2 the correct square will be included in the launcher, Please take turns dependencies of Project 1:

(Properties Project 2, Java Build Path tab "Projects")


Comments