Interface MavenContext

  • All Known Implementing Classes:
    MavenContextImpl

    public interface MavenContext
    Makes maven information which is constant for the whole maven session available as a service to the embedded OSGi runtime.
    • Method Detail

      • getLocalRepositoryRoot

        java.io.File getLocalRepositoryRoot()
      • isOffline

        boolean isOffline()
        whether maven was started in offline mode (CLI option "-o")
      • getSessionProperties

        java.util.Properties getSessionProperties()
        Session-global properties merged from (in order of precedence)
        1. user properties ("-Dkey=value" via CLI)
        2. properties in active profiles of settings.xml
        3. system properties