LiuBodong opened a new issue #6625:
URL: https://github.com/apache/dolphinscheduler/issues/6625


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   branch: dev
   开发分支
   
   When use standalone server, the DolphinPluginManager looks for plugin 
dependencies from local maven repository. but the local maven repository is a 
fixed value in `DolphinPluginManagerConfig.java` who's value is 
`${user.home}/.m2/repository`.
   当使用本地单机开发时,插件加载器会从本地Maven仓库加载插件,但是本地仓库的值是在代码中写死的: 
`${user.home}/.m2/repository`.
   
   In my developement envirionment, I set the maven local repository path 
(localRepository) to `D:\\repository` in `${user.home}/.m2/settings.xml`.
   
在我的开发环境中,我在Maven的配置文件`${user.home}/.m2/settings.xml`中设置了本地仓库(localRepository)的地址
   ![Local Maven Repository 
Settings](https://user-images.githubusercontent.com/23203149/139199519-7c7705a3-5d3d-4931-93ce-e2d1affc137f.png)
   
   so that the plugin manager could not load plugin correctly
   因此,插件加载器无法正确加载插件
   
   ### What you expected to happen
   
   * we should load from settings.xml firstly
     1. load from `${user.home}/.m2/settings.xml`
     2. if `${user.home}/.m2/settings.xml` not exists, load from 
`${MAVEN_HOME}/conf/settings.xml`
   * if settings.xml not exists or the node `localRepository` not exists in 
settings.xml, use default value
   
   ### How to reproduce
   
   * set local repository into another path in ide
   * start standalone server
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to