Class MavenRepoService
- java.lang.Object
-
- fr.paris.lutece.plugins.lutecetools.service.MavenRepoService
-
public final class MavenRepoService extends Object
Version Service
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclearLogs()fr.paris.lutece.plugins.lutecetools.business.ComponentgetComponent(String strArtifactId, boolean bFetch)Gets a component using cache featurefr.paris.lutece.plugins.lutecetools.business.ComponentgetComponent(String strArtifactId, boolean bFetch, boolean bForceReload)Gets a component using cache featurefr.paris.lutece.plugins.lutecetools.business.ComponentgetComponent(String strArtifactId, boolean bFetch, boolean bForceReload, String strType)Gets a componentComponentsInfosgetComponents()Gets the component listList<String>getComponentsListFromRepository()Get the components listStringgetLatestCoreVersion()StringgetLogs()StringgetVersion(String strUrl)Retrieve a version from the maven repositorystatic MavenRepoServiceinstance()Returns the unique instancevoidsetPomSiteVersion()Set the POM site versionvoidsetReleaseVersion(fr.paris.lutece.plugins.lutecetools.business.Dependency component)Set the component's versionvoidupdateCache()Update the cache (reset and rebuild)
-
-
-
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 namebFetch-- 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 namebFetch-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()
-
-