Class MavenRepoService


  • public final class MavenRepoService
    extends Object
    Version Service
    • Method Detail

      • instance

        public static MavenRepoService instance()
        Returns the unique instance
        Returns:
        the unique instance
      • setReleaseVersion

        public void setReleaseVersion​(fr.paris.lutece.plugins.lutecetools.business.Dependency component)
        Set the component's version
        Parameters:
        component - The component
      • setPomSiteVersion

        public void setPomSiteVersion()
        Set the POM site version
      • getVersion

        public String getVersion​(String strUrl)
        Retrieve a version from the maven repository
        Parameters:
        strUrl - The maven repository URL
        Returns:
        The version
      • getComponents

        public ComponentsInfos getComponents()
        Gets the component list
        Returns:
        the component list
      • getComponentsListFromRepository

        public List<String> getComponentsListFromRepository()
        Get the components list
        Returns:
        The list
      • getComponent

        public fr.paris.lutece.plugins.lutecetools.business.Component getComponent​(String strArtifactId,
                                                                                   boolean bFetch)
        Gets a component using cache feature
        Parameters:
        strArtifactId - The component name
        bFetch -
        Returns:
        The component
      • getComponent

        public fr.paris.lutece.plugins.lutecetools.business.Component getComponent​(String strArtifactId,
                                                                                   boolean bFetch,
                                                                                   boolean bForceReload)
        Gets a component using cache feature
        Parameters:
        strArtifactId - The component name
        bFetch -
        bForceReload -
        Returns:
        The component
      • getComponent

        public fr.paris.lutece.plugins.lutecetools.business.Component getComponent​(String strArtifactId,
                                                                                   boolean bFetch,
                                                                                   boolean bForceReload,
                                                                                   String strType)
        Gets a component
        Parameters:
        strArtifactId -
        bFetch -
        bForceReload -
        strType - the component type
        Returns:
      • updateCache

        public void updateCache()
        Update the cache (reset and rebuild)
      • getLogs

        public String getLogs()
      • clearLogs

        public static void clearLogs()
      • getLatestCoreVersion

        public String getLatestCoreVersion()