Package org.eclipse.tycho.core.resolver
Class DefaultTargetPlatformConfigurationReader
- java.lang.Object
-
- org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader
-
@Component(role=DefaultTargetPlatformConfigurationReader.class) public class DefaultTargetPlatformConfigurationReader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private TargetPlatformFilterConfigurationReaderfilterReaderprivate org.codehaus.plexus.logging.Loggerloggerprivate static java.lang.StringOPTIONAL_RESOLUTION_IGNOREprivate static java.lang.StringOPTIONAL_RESOLUTION_REQUIREprivate java.util.Map<java.lang.String,TychoProject>projectTypesprivate org.apache.maven.repository.RepositorySystemrepositorySystem
-
Constructor Summary
Constructors Constructor Description DefaultTargetPlatformConfigurationReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTargetArtifact(TargetPlatformConfiguration result, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.codehaus.plexus.util.xml.Xpp3Dom artifactDom)private voidaddTargetEnvironments(TargetPlatformConfiguration result, org.apache.maven.project.MavenProject project, org.codehaus.plexus.util.xml.Xpp3Dom configuration)protected TargetEnvironmentgetDeprecatedTargetEnvironment(org.codehaus.plexus.util.xml.Xpp3Dom configuration)private static java.lang.StringgetStringValue(org.codehaus.plexus.util.xml.Xpp3Dom element)Returns the string value of the given node, with all "value not set" cases normalized tonull.TargetPlatformConfigurationgetTargetPlatformConfiguration(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project)private static TargetEnvironmentnewTargetEnvironment(org.codehaus.plexus.util.xml.Xpp3Dom environmentDom)private voidreadDependencyResolutionConfiguration(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)protected voidreadExtraRequirements(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)private voidreadFilters(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)private voidreadProfileProperties(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)private voidsetAllowConflictingDependencies(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)private voidsetBREEHeaderSelectionPolicy(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)private voidsetDisableP2Mirrors(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)private voidsetExecutionEnvironment(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)private voidsetExecutionEnvironmentDefault(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)private voidsetIncludePackedArtifacts(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)private voidsetOptionalDependencies(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)private voidsetPomDependencies(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)private voidsetResolveWithEEContraints(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)Take the constraints of the configured execution environment into account when resolving dependencies or target definitions.private voidsetTarget(TargetPlatformConfiguration result, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.codehaus.plexus.util.xml.Xpp3Dom configuration)private voidsetTargetDefinitionIncludeSources(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)private voidsetTargetPlatformResolver(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
-
-
Field Detail
-
OPTIONAL_RESOLUTION_REQUIRE
private static final java.lang.String OPTIONAL_RESOLUTION_REQUIRE
- See Also:
- Constant Field Values
-
OPTIONAL_RESOLUTION_IGNORE
private static final java.lang.String OPTIONAL_RESOLUTION_IGNORE
- See Also:
- Constant Field Values
-
logger
@Requirement private org.codehaus.plexus.logging.Logger logger
-
repositorySystem
@Requirement private org.apache.maven.repository.RepositorySystem repositorySystem
-
projectTypes
@Requirement private java.util.Map<java.lang.String,TychoProject> projectTypes
-
filterReader
@Requirement private TargetPlatformFilterConfigurationReader filterReader
-
-
Method Detail
-
getTargetPlatformConfiguration
public TargetPlatformConfiguration getTargetPlatformConfiguration(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project) throws BuildFailureException
- Throws:
BuildFailureException
-
setIncludePackedArtifacts
private void setIncludePackedArtifacts(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setTargetDefinitionIncludeSources
private void setTargetDefinitionIncludeSources(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration) throws BuildFailureException
- Throws:
BuildFailureException
-
readDependencyResolutionConfiguration
private void readDependencyResolutionConfiguration(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setOptionalDependencies
private void setOptionalDependencies(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)
-
readExtraRequirements
protected void readExtraRequirements(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom) throws BuildFailureException
- Throws:
BuildFailureException
-
readProfileProperties
private void readProfileProperties(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)
-
setExecutionEnvironment
private void setExecutionEnvironment(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setExecutionEnvironmentDefault
private void setExecutionEnvironmentDefault(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setBREEHeaderSelectionPolicy
private void setBREEHeaderSelectionPolicy(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setResolveWithEEContraints
private void setResolveWithEEContraints(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)
Take the constraints of the configured execution environment into account when resolving dependencies or target definitions. These constraints include the list of system packages and the Bundle-RequiredExecutionEnvironment header. When set totrue, the dependency resolution verifies that the bundle and all required bundles can be used in an OSGi container with the configured execution environment.
-
setDisableP2Mirrors
private void setDisableP2Mirrors(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setAllowConflictingDependencies
private void setAllowConflictingDependencies(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
addTargetEnvironments
private void addTargetEnvironments(TargetPlatformConfiguration result, org.apache.maven.project.MavenProject project, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
getDeprecatedTargetEnvironment
protected TargetEnvironment getDeprecatedTargetEnvironment(org.codehaus.plexus.util.xml.Xpp3Dom configuration) throws TargetPlatformConfigurationException
-
setPomDependencies
private void setPomDependencies(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setTarget
private void setTarget(TargetPlatformConfiguration result, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
addTargetArtifact
protected void addTargetArtifact(TargetPlatformConfiguration result, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.codehaus.plexus.util.xml.Xpp3Dom artifactDom)
-
setTargetPlatformResolver
private void setTargetPlatformResolver(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
readFilters
private void readFilters(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
newTargetEnvironment
private static TargetEnvironment newTargetEnvironment(org.codehaus.plexus.util.xml.Xpp3Dom environmentDom) throws TargetPlatformConfigurationException
-
getStringValue
private static java.lang.String getStringValue(org.codehaus.plexus.util.xml.Xpp3Dom element)
Returns the string value of the given node, with all "value not set" cases normalized tonull.
-
-