Package hudson.maven

Class MavenEmbedderRequest

java.lang.Object
hudson.maven.MavenEmbedderRequest

public class MavenEmbedderRequest extends Object
Author:
Olivier Lamy
  • 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 read conf/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

      public TaskListener getListener()
    • setListener

      public MavenEmbedderRequest setListener(TaskListener listener)
    • getMavenHome

      public File getMavenHome()
    • setMavenHome

      public MavenEmbedderRequest setMavenHome(File mavenHome)
    • getProfiles

      public String getProfiles()
    • setProfiles

      public MavenEmbedderRequest setProfiles(String profiles)
    • getSystemProperties

      public Properties getSystemProperties()
    • setSystemProperties

      public MavenEmbedderRequest setSystemProperties(Properties systemProperties)
    • getPrivateRepository

      public String getPrivateRepository()
    • setPrivateRepository

      public MavenEmbedderRequest setPrivateRepository(String privateRepository)
    • getAlternateSettings

      public File getAlternateSettings()
    • setAlternateSettings

      public MavenEmbedderRequest setAlternateSettings(File alternateSettings)
      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

      public static ClassLoader getDefaultMavenClassLoader()
      Default value of getClassLoader()
      Since:
      1.519
    • getClassLoader

      public ClassLoader getClassLoader()
    • setClassLoader

      public MavenEmbedderRequest setClassLoader(ClassLoader classLoader)
    • isProcessPlugins

      public boolean isProcessPlugins()
    • setProcessPlugins

      public MavenEmbedderRequest setProcessPlugins(boolean processPlugins)
    • isResolveDependencies

      public boolean isResolveDependencies()
    • setResolveDependencies

      public MavenEmbedderRequest setResolveDependencies(boolean resolveDependencies)
    • getValidationLevel

      public int getValidationLevel()
    • setValidationLevel

      public MavenEmbedderRequest setValidationLevel(int validationLevel)
      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

      public File getGlobalSettings()
    • setGlobalSettings

      public MavenEmbedderRequest setGlobalSettings(File globalSettings)
    • setUpdateSnapshots

      public MavenEmbedderRequest setUpdateSnapshots(boolean updateSnapshots)
    • isUpdateSnapshots

      public boolean isUpdateSnapshots()