Skip to content
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

Create a p2-mavenplugin #711

Closed
laeubi opened this issue Mar 3, 2022 · 4 comments
Closed

Create a p2-mavenplugin #711

laeubi opened this issue Mar 3, 2022 · 4 comments
Milestone

Comments

@laeubi
Copy link
Member

laeubi commented Mar 3, 2022

Currently we use P2 embedded inside OSGi, but the tycho-build extension already have made some efforts to use P2 standalone in a maven context.

We should further follow this path to make P2 more accessible to tycho, probably even maven some of the mojos that do not really interact with tycho so the plugin could be used independent from tycho, e.g. for the dash-licenses (@waynebeaton ) tool.

Because of that, I'd like to propose the name "p2-maven-plugin" as we already have "tycho-maven-plugin" the scope of this should be:

  1. resolve solutions for a given set of IUs
  2. read/write/update repositories
  3. provide tasks similar to the "ant-based-tasks" (e.g. mirror application and alike)

In the end this will save us a lot of headaches and probably we could finally even drop the embedded OSGi runtime. A side effect (but not a goal) might be that we can drop the ant-tasks completely from platform decreasing the maintenance effort there so p2 can focus on its core functionality.

laeubi added a commit to laeubi/tycho that referenced this issue Mar 3, 2022
Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
@mickaelistria
Copy link
Contributor

Do you have a concrete use story in mind that could benefit from this?
I think the main point is to allow p2 to work without OSGi, so it's mostly development in p2, isn't it?

@laeubi
Copy link
Member Author

laeubi commented Mar 3, 2022

e.g. #590 would benefit from it as well. the p2 repository layout is not really "tycho" but would make is possible to use p2-update sites in a regular maven build as well. So that is my first "milestone" here.
Even more I'd like to have target platform resolution happen in the maven reactor instead of the OSGi runtime so we do not pas back-and-forth so much stuff and it could be performed as part of the tycho-build extension.

@mickaelistria
Copy link
Contributor

would make is possible to use p2-update sites in a regular maven build as well.

OK. that's an interesting story, however I don't think a dedicated mojo is necessary right now to achieve that. But it's all up to you ;)

laeubi added a commit to laeubi/tycho that referenced this issue Mar 3, 2022
…ependent

components

Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
laeubi added a commit to laeubi/tycho that referenced this issue Mar 3, 2022
…ependent

components

Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
@laeubi laeubi linked a pull request Mar 4, 2022 that will close this issue
laeubi added a commit to laeubi/tycho that referenced this issue Mar 17, 2022
Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
laeubi added a commit to laeubi/tycho that referenced this issue Mar 17, 2022
Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
laeubi added a commit to laeubi/tycho that referenced this issue Mar 29, 2022
Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
laeubi added a commit to laeubi/tycho that referenced this issue Mar 29, 2022
Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
laeubi added a commit that referenced this issue Mar 30, 2022
Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
@laeubi
Copy link
Member Author

laeubi commented Apr 15, 2022

We have the p2-plugin and use t already on some places so I think this could be closed, further work can use more dedicated tickets.

@laeubi laeubi closed this as completed Apr 15, 2022
@laeubi laeubi added this to the 3.0 milestone Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants