Class DefaultTargetPlatformConfigurationReader

    • 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
    • Constructor Detail

      • DefaultTargetPlatformConfigurationReader

        public DefaultTargetPlatformConfigurationReader()
    • Method Detail

      • setIncludePackedArtifacts

        private void setIncludePackedArtifacts​(TargetPlatformConfiguration result,
                                               org.codehaus.plexus.util.xml.Xpp3Dom configuration)
      • 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)
      • 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 to true, 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)
      • 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)
      • 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 to null.