Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artifact id of pomless aggregators should be configurable. #596

Closed
ghost opened this issue Jan 31, 2022 · 0 comments
Closed

Artifact id of pomless aggregators should be configurable. #596

ghost opened this issue Jan 31, 2022 · 0 comments
Milestone

Comments

@ghost
Copy link

ghost commented Jan 31, 2022

A normal Eclipse project usually has the form:

root
+- plugins
|   +- plugin1
|   +- plugin2
|   +- ...
|
+- features
    +- feature1
    +- ...

When performing a pomless build of those bundles, Tycho creates polygot files in the plugins and features directories, with the group id inherited from the parent pom and the artifact id derived from the folder name.

Due to the size of our application, we have deviated from this structure by splitting features and plugins into separate, loosely related components. So our workspace looks something like this:

project
 +- component1
 |   +- plugins
 |   +- features
 |
 +- component2
     +- plugins
     +- features

In a pomless build, this will result in the aggregator poms of both components to share the same artifact id, making it impossible to build the project, unless the group id is overwritten for each component.

I think it would be great to have more control over how the artifact id is generated. My idea is something like a system property (e.g. "tycho.pomless.aggregator.depth"), which derives a name from the current directory, as well as their parent directories. The default depth should be 0, in order to replicate the current behavior.

Example id for different depths:
depth = 0 -> features
depth = 1 -> component1-features
depth = 2 -> project-component1-features

@eclipse-tycho eclipse-tycho locked and limited conversation to collaborators Jan 31, 2022
@laeubi laeubi converted this issue into discussion #597 Jan 31, 2022
@laeubi laeubi added this to the 2.7 milestone Feb 13, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant