public interface MojoWithRepositoryParams extends MojoWithCommonParams
Modifier and Type | Method and Description |
---|---|
default ClassLoader |
createContainerClassLoader()
Creates a classloader for execution of oakpal logic.
|
default Set<org.apache.maven.artifact.Artifact> |
depToArtifact(@NotNull org.apache.maven.model.Dependency dependency,
@NotNull org.apache.maven.artifact.repository.RepositoryRequest baseRequest,
boolean transitive) |
org.apache.maven.repository.RepositorySystem |
getRepositorySystem() |
default boolean |
isTestScopeContainer()
There are basically two use cases for the oakpal-maven-plugin:
1) Adhoc testing of a content-package project artifact, in which case all oakpal classpath resources will be
found in
test scope, or
2) Creation and testing of an oakpal module with checklists, and/or creation and testing of an opear archive,
in which case all oakpal classpath resources will be found in a non-test scope classpath. |
default List<org.apache.maven.artifact.Artifact> |
resolveArtifacts(@NotNull List<org.apache.maven.model.Dependency> dependencies,
boolean transitive) |
default List<File> |
resolveDependencies(@NotNull List<org.apache.maven.model.Dependency> dependencies,
boolean transitive) |
getExecution, getProject, getSession, getSettings
org.apache.maven.repository.RepositorySystem getRepositorySystem()
default boolean isTestScopeContainer()
test
scope, or
2) Creation and testing of an oakpal module with checklists, and/or creation and testing of an opear archive,
in which case all oakpal classpath resources will be found in a non-test
scope classpath. Mojos should
override this method to return true
, to specify that a test
-scope classloader is desired, as in
the first case.test
-scope classloader is desired, or false if a non-test
-scope classloader is
desired.default ClassLoader createContainerClassLoader() throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException
- if an error occursdefault Set<org.apache.maven.artifact.Artifact> depToArtifact(@NotNull @NotNull org.apache.maven.model.Dependency dependency, @NotNull @NotNull org.apache.maven.artifact.repository.RepositoryRequest baseRequest, boolean transitive)
default List<org.apache.maven.artifact.Artifact> resolveArtifacts(@NotNull @NotNull List<org.apache.maven.model.Dependency> dependencies, boolean transitive)
Copyright © 2017–2020. All rights reserved.