Interface MavenRepositoryResolver
- All Known Implementing Classes:
MavenRepositoryDefaultResolver
public interface MavenRepositoryResolver
m2 discovery process is used for plugins/connectors loading.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringStudio's property used to specify maven repository location.static final StringSystem property used to enforce maven repository location.static final StringSystem property used to enforce the location of settings.xml.static final Stringstatic final Patternstatic final Patternstatic final Pattern -
Method Summary
-
Field Details
-
TALEND_COMPONENT_MANAGER_M2_REPOSITORY
System property used to enforce maven repository location.- See Also:
-
TALEND_COMPONENT_MANAGER_M2_SETTINGS
System property used to enforce the location of settings.xml.- See Also:
-
STUDIO_MVN_REPOSITORY
Studio's property used to specify maven repository location. If setglobal, the Studio uses user's settings. Otherwise, Studio's internal repository is used.- See Also:
-
M2_HOME
- See Also:
-
MAVEN_HOME
- See Also:
-
M2_REPOSITORY
- See Also:
-
M2_SETTINGS
- See Also:
-
CONF_SETTINGS
- See Also:
-
USER_HOME
-
XML_COMMENTS_PATTERN
-
XML_EMPTY_LINES_PATTERN
-
XML_LOCAL_REPO_PATTERN
-
-
Method Details
-
discover
Main entry point for the discovery process. It allows to priorize how we may find the local maven repository path according the context.- Returns:
- local maven repository path discovered.
-
fallback
Make sure that we provide a fallback if discovery fails. such likereturn PathHandler.get(USER_HOME).resolve(M2_REPOSITORY);- Returns:
- a fallback path to local maven repository
-