Class RuntimeSupport
java.lang.Object
eu.maveniverse.maven.mima.context.internal.RuntimeSupport
- All Implemented Interfaces:
Runtime
Support class for
Runtime implementations.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRuntimeSupport(String name, String version, int priority, String mavenVersion) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcustomizeChecksumPolicy(ContextOverrides overrides, org.eclipse.aether.DefaultRepositorySystemSession session) customizeContext(ContextOverrides overrides, Context context, boolean reset) protected ContextcustomizeContext(RuntimeSupport runtime, ContextOverrides overrides, Context context, boolean reset) protected voidcustomizeLocalRepositoryManager(Context context, org.eclipse.aether.DefaultRepositorySystemSession session) protected List<org.eclipse.aether.repository.RemoteRepository> customizeRemoteRepositories(ContextOverrides contextOverrides, List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories) protected voidcustomizeSnapshotUpdatePolicy(ContextOverrides overrides, org.eclipse.aether.DefaultRepositorySystemSession session) protected MavenUserHomeImplprotected static StringdiscoverArtifactVersion(String groupId, String artifactId, String defVal) protected static StringloadClasspathProperties(String resource) loadPomProperties(String groupId, String artifactId) abstract booleanReturnstrueif this runtime creates managed repository system, that is opposite when MIMA runs in Maven (or any other environment providing resolver), where it does not manage it, as hosting Maven or app does.Returns a string representing Maven version this runtime uses, nevernull.name()The runtime name (mostly for keying purposes), nevernull.protected voidnewLocalRepositoryManager(Path localRepoPath, org.eclipse.aether.RepositorySystem repositorySystem, org.eclipse.aether.DefaultRepositorySystemSession session) intpriority()The priority of runtime instance.toString()version()The runtime version, nevernull.
-
Field Details
-
UNKNOWN
- See Also:
-
DEFAULT_BASEDIR
-
DEFAULT_USER_HOME
-
DEFAULT_MAVEN_USER_HOME
-
-
Constructor Details
-
RuntimeSupport
-
-
Method Details
-
name
Description copied from interface:RuntimeThe runtime name (mostly for keying purposes), nevernull. -
version
Description copied from interface:RuntimeThe runtime version, nevernull. -
priority
public int priority()Description copied from interface:RuntimeThe priority of runtime instance. Priorities use natural integer ordering. -
mavenVersion
Description copied from interface:RuntimeReturns a string representing Maven version this runtime uses, nevernull. This mostly stands for "maven models" version, except when MIMA runs inside of Maven, when it carries the "actual Maven version".- Specified by:
mavenVersionin interfaceRuntime
-
managedRepositorySystem
public abstract boolean managedRepositorySystem()Description copied from interface:RuntimeReturnstrueif this runtime creates managed repository system, that is opposite when MIMA runs in Maven (or any other environment providing resolver), where it does not manage it, as hosting Maven or app does. In general, you should always treat "root context" as explained inContextand your code will be portable.- Specified by:
managedRepositorySystemin interfaceRuntime
-
customizeContext
-
customizeContext
protected Context customizeContext(RuntimeSupport runtime, ContextOverrides overrides, Context context, boolean reset) -
customizeLocalRepositoryManager
protected void customizeLocalRepositoryManager(Context context, org.eclipse.aether.DefaultRepositorySystemSession session) -
newLocalRepositoryManager
protected void newLocalRepositoryManager(Path localRepoPath, org.eclipse.aether.RepositorySystem repositorySystem, org.eclipse.aether.DefaultRepositorySystemSession session) -
customizeChecksumPolicy
protected void customizeChecksumPolicy(ContextOverrides overrides, org.eclipse.aether.DefaultRepositorySystemSession session) -
customizeSnapshotUpdatePolicy
protected void customizeSnapshotUpdatePolicy(ContextOverrides overrides, org.eclipse.aether.DefaultRepositorySystemSession session) -
customizeRemoteRepositories
protected List<org.eclipse.aether.repository.RemoteRepository> customizeRemoteRepositories(ContextOverrides contextOverrides, List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories) -
defaultMavenUserHome
-
discoverMavenVersion
-
discoverArtifactVersion
-
loadPomProperties
-
loadClasspathProperties
-
toString
-