-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add packagingTypes extension point #538
Conversation
Thanks, we'll try to look at it shortly. We first need a positive review from CI to validate this change doesn't introduce regressions. |
I think this is another reincarnation of missing extension support in m2e as packaging types are normally declared via a plugin in the pom already. |
That's right! |
Sorry @kjsmita6 but as @laeubi identified, this proposal is not really correct nor sufficient for m2e. We can achieve much better results by looking up build extensions (that's not trivial though, as #118 tracks). So I think we're going to close this PR. |
That said, we already have some workarounds for packaging types in place in m2e, maybe this could simply be reused her, take a look at: Lines 98 to 105 in 840fb2e
one could the parse these plugins for |
@mickaelistria I could be interested in working on this, as it's something we need in our product. I will investigate some things, try and implement them, and create another PR when necessary. |
@kjsmita6 Thanks! And feel free to ping on issues or on the m2e-dev mailing-list if you need any assistance. |
Better use the https://github.com/eclipse-m2e/m2e-core/discussions |
Our application has a few custom Maven packaging types that do not show up in the drop-down and must be typed in manually in the pom.xml. This small change adds an extension point that allows the developers of the product/plugins to define packaging types that will be added to the pom editor.
The extension point is defined by the following:

which will add a packaging type
test-packaging-type
. This type does not actually exist and is only here for testing, which is why the next screenshot shows an error. The plugin developers should make sure that the packaging type actually will exist in the launched product.Then, in the launched product, see the type in the pom editor drop-down.

This is my first contribution to any Eclipse project, so please let me know if I did something incorrectly.