Bug 438364 - tycho requires additional dependencies(should not be needed) comparing with eclipse/pde build
Summary: tycho requires additional dependencies(should not be needed) comparing with e...
Status: NEW
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: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-27 06:09 EDT by Jose Ribeiro CLA
Modified: 2021-04-28 16:51 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Ribeiro CLA 2014-06-27 06:09:16 EDT
When converting a existing solution to be built with maven/tycho, i was forced to add some transitive dependencies, in order for tycho build with success.

If i try to build the product solution with tycho, with manifest.mf unchanged (like it is in the pde build) it will fail:

One example is:


----------------------------------------------------------------------------
[ERROR] The type javax.persistence.EnumType cannot be resolved. It is indirectly referenced from required .class files

the project fails because the class, depends/extends another class from another bundle. This other class as some atributes with anotations (with enum that cause the failure)

	@XmlAttribute
	@Enumerated(EnumType.STRING)
	@Column(name = "status_cd", length = 30)
	private StatusType status;

resuming in terms of javax.persistence dependency, i have to have the following config to build with success:

in eclipse/pde build:
project a(not depends) <- project b (depends)


in maven/tycho:
project a(depends) <- project b (depends)

I only gave this example, but i have lot more. i was forced to make changes on 80% of the solution projects.

Thanks
Comment 1 Tobias Oberlies CLA 2014-06-30 11:11:31 EDT
Could you create a minimal example project which reproduces the problem. IIRC, Tycho should automatically add the needed transitive dependencies.
Comment 2 Mickael Istria CLA 2021-04-08 18:11:57 EDT
Eclipse Tycho is moving away from this bugs.eclipse.org issue tracker to https://github.com/eclipse/tycho/issues/ instead. If this issue is relevant to you, your action is required.
0. Verify this issue is still happening with latest Tycho 2.4.0-SNAPSHOT
  if issue has disappeared, please change status of this issue to "CLOSED WORKFORME" with some details about your testing environment and how you did verify the issue; and you're done
  if issue is still present when latest release:
* Create a new issue at https://github.com/eclipse/tycho/issues/
  ** Use as title in GitHub the title of this Bugzilla ticket (may include the bug number or not, at your own convenience)
  ** In the GitHub description, start with a link to this bugzilla ticket
  ** Optionally add new content to the description if it can helps towards resolution
  ** Submit GitHub issue
* Update bugzilla ticket
  ** Add to "See also" property (up right column) the link to the newly created GitHub issue
  ** Add a comment "Migrated to <link-to-newly-created-GitHub-issue>"
  ** Set status as CLOSED MOVED
  ** Submit

All issues that remain open will be automatically closed next week or so. Then the Bugzilla component for Tycho will be archived and made read-only.