I have 2 projects, say ProjectA and ProjectB, both containing package com.faizan.org. ProjectA is added in the modulepath of ProjectB.
<classpathentry combineaccessrules="false" kind="src" path="/ProjectA">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
Now I am writing a new class in ProjectB that needs to import a class from com.faizan.org of ProjectA, but I get an error The package com.faizan.org is accessible from more than one module: ProjectA, ProjectB in eclipse 2019-12 using openJdk 12 and compiler compliance also set to 12.
How can I add external projects containing same package name to another project without classpath conflicts? Also, in some cases unable to access methods of super class.