Community
Participate
Working Groups
source.<library>=<folder> build classpath entries should be included to project compile classpath regardless if they have corresponding Build-ClassPath elements or not. When resolving dependencies on other reactor projects, only Bundle-ClassPath entries should be added to compile classpath. So, in other words, OSGi classpath visibility rules only apply to dependencies, all classes are visible inside the same project. For example, consider the following two projects A/ src1/ => source.adhoc.jar=src2/, not on Bundle-ClassPath src2/ => source..=src2/ B depends on A src/ When compiling bundle A, classes from both A/src1 and A/src2 should be available on compile classpath when compiling src2/. When compiling bundle B, on the other hand, only classes from A/src2 (and, of course, B/src) should be available on compile classpath.
Shouldn't this depend on the jars.compile.order?
Yes, classpath order and compilation order should follow jars.compile.order.
Fixed. https://github.com/sonatype/sonatype-tycho/commit/38930452728ba915aad092e14131691c662bb5d7
*** Bug 345254 has been marked as a duplicate of this bug. ***