public class AutoDiscoverWorkspaceLocationResolver extends Object implements WorkspaceLocationResolver
URLs if they reference to a Maven project (a target/classes
or target/test-classes/ folders).
If Maven surefire plugin is used to run test in Maven and the plugin has been configured with forkMode=always the
following Maven system property has to be propagated on surefire configuration:
${maven.multiModuleProjectDirectory}
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
static String |
MAVEN_MULTI_MODULE_PROJECT_DIRECTORY |
static String |
POM_XML_FILE |
| Constructor and Description |
|---|
AutoDiscoverWorkspaceLocationResolver(List<URL> classPath,
File rootArtifactClassesFolder)
Creates an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
File |
resolvePath(String artifactId)
Resolves the
File to file system for the given Artifact. |
public static final String POM_XML_FILE
public static final String MAVEN_MULTI_MODULE_PROJECT_DIRECTORY
protected final org.slf4j.Logger logger
public AutoDiscoverWorkspaceLocationResolver(List<URL> classPath, File rootArtifactClassesFolder)
classPath - URL's defined in class pathIllegalArgumentException - if the rootArtifactClassesFolder doesn't point to a Maven project.public File resolvePath(String artifactId)
File to file system for the given Artifact.resolvePath in interface WorkspaceLocationResolverartifactId - to resolve its File from the workspace, cannot be null.File for the given artifactId location or null if it is not present in workspace.Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.