Class MavenTestHelper

java.lang.Object
org.mule.maven.client.test.MavenTestHelper

public class MavenTestHelper extends Object
Helper class to work with tests using mule maven client
Since:
1.0
  • Constructor Details

    • MavenTestHelper

      public MavenTestHelper()
  • Method Details

    • createDefaultEnterpriseMavenConfiguration

      public static MavenConfiguration createDefaultEnterpriseMavenConfiguration() throws IOException
      Creates a default maven configuration for enterprise edition.
      Returns:
      a new maven configuration based on the user environment.
      Throws:
      IOException
    • createDefaultEnterpriseMavenConfiguration

      public static MavenConfiguration createDefaultEnterpriseMavenConfiguration(boolean forceUpdateSnapshots) throws IOException
      Creates a default maven configuration for enterprise edition.
      Parameters:
      forceUpdateSnapshots - true if updates should be forced to be updated.
      Returns:
      a new maven configuration based on the user environment.
      Throws:
      IOException
    • createDefaultCommunityMavenConfiguration

      public static MavenConfiguration createDefaultCommunityMavenConfiguration(boolean forceUpdateSnapshots) throws IOException
      Creates a default maven configuration for community edition.
      Parameters:
      forceUpdateSnapshots - true if updates should be forced to be updated.
      Returns:
      a new maven configuration based on the user environment.
      Throws:
      IOException
    • createDefaultCommunityMavenConfiguration

      public static MavenConfiguration createDefaultCommunityMavenConfiguration() throws IOException
      Creates a default maven configuration for community edition.
      Returns:
      a new maven configuration based on the user environment.
      Throws:
      IOException
    • createDefaultEnterpriseMavenConfigurationBuilder

      public static MavenConfiguration.MavenConfigurationBuilder createDefaultEnterpriseMavenConfigurationBuilder() throws IOException
      Creates a maven config builder with the enterprise default settings.
      Returns:
      a new maven configuration builder based on the user environment.
      Throws:
      IOException
    • createDefaultEnterpriseMavenConfigurationBuilder

      public static MavenConfiguration.MavenConfigurationBuilder createDefaultEnterpriseMavenConfigurationBuilder(boolean forceUpdateSnapshots) throws IOException
      Creates a maven config builder with the enterprise default settings.
      Returns:
      a new maven configuration builder based on the user environment.
      Throws:
      IOException
    • createDefaultCommunityMavenConfigurationBuilder

      public static MavenConfiguration.MavenConfigurationBuilder createDefaultCommunityMavenConfigurationBuilder() throws IOException
      Creates a maven config builder with the community default settings.
      Returns:
      a new maven configuration builder based on the user environment.
      Throws:
      IOException
    • createDefaultCommunityMavenConfigurationBuilder

      public static MavenConfiguration.MavenConfigurationBuilder createDefaultCommunityMavenConfigurationBuilder(boolean forceUpdateSnapshots) throws IOException
      Creates a maven config builder with the community default settings.
      Returns:
      a new maven configuration builder based on the user environment.
      Throws:
      IOException
    • getLocalRepositoryFolder

      public static File getLocalRepositoryFolder()
      Returns:
      the local repository folder discovered for the environment.