[
https://issues.apache.org/jira/browse/MNG-7283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17427067#comment-17427067
]
wangjie commented on MNG-7283:
------------------------------
thank you very much for your help.
I thought about ServiceLoader before, but there will be the following problems:
(1) Recursively summarize the dependencies of component implementation
Because these components themselves also contain dependencies, I need to
recursively calculate what other dependencies are needed after the
implementation of this component is added
(2) Package conflict
The dependencies of these components may have been declared in the project. I
also need to determine which version of the dependency to use
I think these two problems should be solved when the project is built. Rather
than solve it while the application is running.
> add dependency when maven exec
> ------------------------------
>
> Key: MNG-7283
> URL: https://issues.apache.org/jira/browse/MNG-7283
> Project: Maven
> Issue Type: Wish
> Components: Dependencies
> Reporter: wangjie
> Priority: Major
> Fix For: wontfix-candidate
>
>
> *1、background*
> as we all kown, each cloud environment has different component
> implementations. For example: The message queue components of AWS and Alibaba
> Cloud are similar in function, but different in implementation.
> we are try to build a unified API specification, developers only need to
> introduce unified standardized APIs for these components when developing.
> When the project is built and deployed on different clouds, we will
> automatically introduce the implementation dependencies of different
> components under different clouds for the project.
> *2、issues*
> Due to the above reason, we hope to add some dependencies when maven starts
> to build the project. After reading the documentation and google related
> issues, I found that maven does not support this feature(I don’t know much
> about maven. If maven supports this feature, please share with me. Thanks in
> advance).
> If maven does not support adding dependencies at the beginning of the build,
> can the community consider supporting this feature?
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)