Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345254 - Dependencies within a project with multiple jars are not resolved (jars.compile.order)
Summary: Dependencies within a project with multiple jars are not resolved (jars.compi...
Status: CLOSED DUPLICATE of bug 354118
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Igor Fedorenko CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 07:54 EDT by Stephan Wahlbrink CLA
Modified: 2021-04-28 16:55 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Wahlbrink CLA 2011-05-10 07:54:24 EDT
Build Identifier: tycho 0.11.1

If a project has multiple jar files configured in the build.properties, the property jars.compile.order specifies the compile order, implicating that sources can reference classes in jar files already compiled.

For example:

source.A.jar = srcA/
output.A.jar = binA/
source.B.jar = srcB/
output.B.jar = binB/
jars.compile.order = A.jar,\
                     B.jar

A.jar must be added to the classpath when building B.jar.

Building such a plug-in with Eclipse (plug-in export) works, but fails in tycho because of unresolved type.


Reproducible: Always
Comment 1 Igor Fedorenko CLA 2011-05-10 10:02:35 EDT
Please provide standalone sample application that demonstrates the problem.
Comment 2 Jan Sievers CLA 2011-05-10 12:27:46 EDT
integration test https://github.com/sonatype/sonatype-tycho/tree/master/tycho-its/projects/tycho98/bundle should already cover this.
Comment 3 Stephan Wahlbrink CLA 2011-05-11 08:26:02 EDT
It seems that tycho uses only jars listed in the Bundle-ClassPath of the MANIFEST file.

In your test 'tycho98', e.g. remove src3.jar from the Bundle-ClassPath in the MANIFEST, and the build will fail.

But certain situations (e.g. if a special class loader is required) the jar file should not be in the Bundle-ClassPath but still available in the classpath at build time.
Comment 4 Tobias Oberlies CLA 2011-06-10 11:45:51 EDT
(In reply to comment #3)
> It seems that tycho uses only jars listed in the Bundle-ClassPath of the
> MANIFEST file.

@Igor: Didn't bug 341570 fix this? Apparently not because Stephan was using 0.11.1...
Comment 5 Igor Fedorenko CLA 2011-06-14 15:27:42 EDT
@Stephan please provide complete standalone test project and steps to reproduce the problem.
Comment 6 Igor Fedorenko CLA 2011-08-09 14:08:50 EDT
After re-reading this bugreport, I believe this is the same problem solved by bug 354118. Feel free to reopen if this is a different issue, but make sure to provide complete standalone project to demonstrate the problem.

*** This bug has been marked as a duplicate of bug 354118 ***