-
Work Item
-
Resolution: Fixed
-
Minor
-
None
-
All
-
GreenHopper Ranking:0|i2drtn:
-
9223372036854775807
-
Small
Description
Improve the m2 discovery process, m2 discovery is used for plugins/connectors loading.
Technical analysis
Actual discovery process:
- Read talend.component.manager.m2.repository system property
- Check if we're running in studio and uses its m2 if system property is not set to maven.repository=global
- Parse maven's settings.xml (or if provided talend.component.manager.m2.settings) for checking if a property localRepository is defined
- Fallbacks to ${user.home}/.m2/repository
We should improve at least by :
- in settings.xml
- evaluate system properties
- evaluate env variables
- evaluate the ~ value in any properties content
And checking for maven env properties (ie $M2_HOME) should go after 3.
Final Implementation
The following chart is a representation of the solution HERE
Settings.xml parsing has been improving:
- evaluate system properties
- evaluate env variables|
New function implemented to evaluate the ~ value in any properties content
- is related to
-
TCOMP-2082 ComponentManager's findDefaultM2 method takes comment as granted
- Done
-
TCOMP-2120 Improve m2 discover process part 2
- Rejected