Class MavenProjectInput
- java.lang.Object
-
- org.apache.maven.buildcache.checksum.MavenProjectInput
-
public class MavenProjectInput extends Object
MavenProjectInput
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MavenProjectInput.PathIgnoringCaseComparator
PathIgnoringCaseComparator
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE_IMPLEMENTATION_VERSION
Version of cache implementation.
-
Constructor Summary
Constructors Constructor Description MavenProjectInput(org.apache.maven.project.MavenProject project, NormalizedModelProvider normalizedModelProvider, MultiModuleSupport multiModuleSupport, ProjectInputCalculator projectInputCalculator, org.apache.maven.execution.MavenSession session, CacheConfig config, org.apache.maven.repository.RepositorySystem repoSystem, RemoteCacheRepository remoteCache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectsInputInfo
calculateChecksum()
static boolean
isCacheDisabled(org.apache.maven.project.MavenProject project)
Allow disabling caching entirely on a per-project level via a property - both artifact lookup and upload Defaults to false<maven.build.cache.enabled>false<maven.build.cache.enabled/>
static boolean
isRestoreGeneratedSources(org.apache.maven.project.MavenProject project)
Allow skipping generated sources restoration on a per-project level via a property (which defaults to true) e.g.static boolean
isRestoreOnDiskArtifacts(org.apache.maven.project.MavenProject project)
Allow skipping artifacts restoration on a per-project level via a property (which defaults to true) e.g.static boolean
isSkipCache(org.apache.maven.project.MavenProject project)
Skip lookup on a per-project level via a property to force module rebuild e.g.<maven.build.cache.skipCache>true<maven.build.cache.skipCache/>
-
-
-
Field Detail
-
CACHE_IMPLEMENTATION_VERSION
public static final String CACHE_IMPLEMENTATION_VERSION
Version of cache implementation. It is recommended to change to simplify remote cache maintenance- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MavenProjectInput
public MavenProjectInput(org.apache.maven.project.MavenProject project, NormalizedModelProvider normalizedModelProvider, MultiModuleSupport multiModuleSupport, ProjectInputCalculator projectInputCalculator, org.apache.maven.execution.MavenSession session, CacheConfig config, org.apache.maven.repository.RepositorySystem repoSystem, RemoteCacheRepository remoteCache)
-
-
Method Detail
-
calculateChecksum
public ProjectsInputInfo calculateChecksum() throws IOException
- Throws:
IOException
-
isSkipCache
public static boolean isSkipCache(org.apache.maven.project.MavenProject project)
Skip lookup on a per-project level via a property to force module rebuild e.g.<maven.build.cache.skipCache>true<maven.build.cache.skipCache/>
- Parameters:
project
-- Returns:
-
isRestoreGeneratedSources
public static boolean isRestoreGeneratedSources(org.apache.maven.project.MavenProject project)
Allow skipping generated sources restoration on a per-project level via a property (which defaults to true) e.g.<maven.build.cache.restoreGeneratedSources>false<maven.build.cache.restoreGeneratedSources/>
.- Parameters:
project
-- Returns:
-
isRestoreOnDiskArtifacts
public static boolean isRestoreOnDiskArtifacts(org.apache.maven.project.MavenProject project)
Allow skipping artifacts restoration on a per-project level via a property (which defaults to true) e.g.<maven.build.cache.restoreOnDiskArtifacts>false<maven.build.cache.restoreOnDiskArtifacts/>
.- Parameters:
project
-- Returns:
-
isCacheDisabled
public static boolean isCacheDisabled(org.apache.maven.project.MavenProject project)
Allow disabling caching entirely on a per-project level via a property - both artifact lookup and upload Defaults to false<maven.build.cache.enabled>false<maven.build.cache.enabled/>
- Parameters:
project
-- Returns:
-
-