-
Notifications
You must be signed in to change notification settings - Fork 29
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
If possible, please use dependency management in runtime's parent pom #402
Comments
The exact reason to provide the bom is that in your dependency section you don't have to put any version because it is defined in the bom for you |
Thanks for answering me. How is this implemented in practice?
Now, let's say I need to declare the dependency on
but eclipse complains with this error: |
I also read that another way to do it is by declaring the bom as the parent, so in
and of course removed what I mentioned in my previous comment from the |
Oh yeah silly me the generation of the bom is wrong! I need to fix that. What works today is that if you use https://maven.bestsolution.at/efxclipse-releases/at/bestsolution/efxclipse/rt/at.bestsolution.efxclipse.rt.release/3.6.0/at.bestsolution.efxclipse.rt.release-3.6.0.pom as your parent you can use the variables in there. But the bom way is the better one! |
Thanks for answering me. I can't tell you how much I hit my head against the wall today! |
All maven e(fx)clipse application's parent pom declare a parent:
When an application needs to declare a dependency to a component like
org.eclipse.e4.core.di.annotations
it should not be necessary to delve into the repository and look, for example at https://maven.bestsolution.at/efxclipse-releases/at/bestsolution/efxclipse/rt/at.bestsolution.efxclipse.rt.release-bom/3.6.0/at.bestsolution.efxclipse.rt.release-bom-3.6.0.pom to find out which version number should be used (1.6.200.v20180817-1215
in the example).A much better approach, if possible, would be to have the version number automatically provided so there will be no need to specify the version number. This might also make updating from one version of e(fx)clipse to another much easier, because all the dependencies will be recalculated based on what the platform needs.
The text was updated successfully, but these errors were encountered: