Package hudson.maven
Class MavenEmbedderRequest
java.lang.Object
hudson.maven.MavenEmbedderRequest
- Author:
- Olivier Lamy
-
Constructor Summary
ConstructorDescriptionMavenEmbedderRequest
(TaskListener listener, File mavenHome, String profiles, Properties systemProperties, String privateRepository, File alternateSettings) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoader
Default value ofgetClassLoader()
org.eclipse.aether.transfer.TransferListener
int
org.eclipse.aether.repository.WorkspaceReader
boolean
boolean
boolean
setAlternateSettings
(File alternateSettings) Overrides the user settings (by default we look at ~/.m2/settings.xml)setClassLoader
(ClassLoader classLoader) setGlobalSettings
(File globalSettings) setListener
(TaskListener listener) setMavenHome
(File mavenHome) setPrivateRepository
(String privateRepository) setProcessPlugins
(boolean processPlugins) setProfiles
(String profiles) setResolveDependencies
(boolean resolveDependencies) setSystemProperties
(Properties systemProperties) setTransferListener
(org.eclipse.aether.transfer.TransferListener transferListener) setUpdateSnapshots
(boolean updateSnapshots) setValidationLevel
(int validationLevel) Controls the level of error checks done while parsing POM.void
setWorkspaceReader
(org.eclipse.aether.repository.WorkspaceReader workspaceReader)
-
Constructor Details
-
MavenEmbedderRequest
public MavenEmbedderRequest(TaskListener listener, File mavenHome, String profiles, Properties systemProperties, String privateRepository, File alternateSettings) - Parameters:
listener
- This is where the log messages from Maven will be recorded.mavenHome
- Directory of the Maven installation. We readconf/settings.xml
from here. Can be null.profiles
- Profiles to activate/deactivate. Can be null.systemProperties
- The system properties that the embedded Maven sees.privateRepository
- Optional private repository to use as the local repository.alternateSettings
- Optional alternate settings.xml file.
-
-
Method Details
-
getListener
-
setListener
-
getMavenHome
-
setMavenHome
-
getProfiles
-
setProfiles
-
getSystemProperties
-
setSystemProperties
-
getPrivateRepository
-
setPrivateRepository
-
getAlternateSettings
-
setAlternateSettings
Overrides the user settings (by default we look at ~/.m2/settings.xml) -
getTransferListener
public org.eclipse.aether.transfer.TransferListener getTransferListener() -
setTransferListener
public MavenEmbedderRequest setTransferListener(org.eclipse.aether.transfer.TransferListener transferListener) -
getDefaultMavenClassLoader
Default value ofgetClassLoader()
- Since:
- 1.519
-
getClassLoader
-
setClassLoader
-
isProcessPlugins
public boolean isProcessPlugins() -
setProcessPlugins
-
isResolveDependencies
public boolean isResolveDependencies() -
setResolveDependencies
-
getValidationLevel
public int getValidationLevel() -
setValidationLevel
Controls the level of error checks done while parsing POM.- See Also:
-
ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_3_0
-
getWorkspaceReader
public org.eclipse.aether.repository.WorkspaceReader getWorkspaceReader() -
setWorkspaceReader
public void setWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader workspaceReader) -
getGlobalSettings
-
setGlobalSettings
-
setUpdateSnapshots
-
isUpdateSnapshots
public boolean isUpdateSnapshots()
-