Vfs 860 bom - #698
Vfs 860 bom#698jafarre-bi wants to merge 2 commits into
Conversation
|
The link in the description is not to the Jira issue. So far this doesn't seem to be what Maven recommends, or am I missing something? |
Fixed
This is from Maven documentation:
and
This can't be done in Apache Commons projects because they need to inherit from org.apache.commons:commons-parent. The solutions I can think of are:
This draft PR implements option 3, but any option is acceptable for me. Option 1: Option 2: Option 3: Option 4: |
commons-vfs2-bom has commons-vfs2-project as a parent. When you import it into a different project, you expect to have this project's dependencies managed only, but instead, you get numerous other dependencies managed from commons-vfs2-project and its parents.
This pull request detaches the BOM from its parent, which is the only way to get rid of unwanted dependency management.
Unfortunately, as the BOM is part of the reactor, other parts of the parent POM are required for the build to succeed, and we must manually copy them. The only solution for this would be to remove the BOM from the reactor itself, as building a BOM is trivial and probably allows for a much simpler POM file to be written for it. However, the BOM would then need to be built separately.
Link to the Jira issue: VFS-860