Package org.eclipse.tycho.core.shared
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.File
getLocalRepositoryRoot()
MavenLogger
getLogger()
java.util.Collection<ReactorProject>
getProjects()
MavenRepositorySystem
getRepositorySystem()
java.util.Properties
getSessionProperties()
Session-global properties merged from (in order of precedence) user properties ("-Dkey=value" via CLI) properties in active profiles of settings.xml system propertiesboolean
isOffline()
whether maven was started in offline mode (CLI option "-o")
-
-
-
Method Detail
-
getLocalRepositoryRoot
java.io.File getLocalRepositoryRoot()
-
getLogger
MavenLogger getLogger()
-
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)- user properties ("-Dkey=value" via CLI)
- properties in active profiles of settings.xml
- system properties
-
getProjects
java.util.Collection<ReactorProject> getProjects()
- Returns:
- collection of all reactor projects
-
getRepositorySystem
MavenRepositorySystem getRepositorySystem()
-
-