Package sc.repos.mvn

Class MvnRepositoryPackage

  • All Implemented Interfaces:
    java.io.Serializable, IComponent, IStoppable

    public class MvnRepositoryPackage
    extends RepositoryPackage
    The main class for defining a maven repository. These can be created from Java, defined as components in a layer, or created programmatically from constructs found in the POM file. Like RepositoryPackages, the first package instance with a given package name is stored - any other configured packages will modify the original instance and set their 'replacedByPackage" value to point to the canonical package for that name.
    See Also:
    Serialized Form
    • Field Detail

      • includeOptional

        public boolean includeOptional
        Should the optional dependencies of this package be included
      • includeProvided

        public boolean includeProvided
        Should we include dependencies marked as "provided" scope in maven - ordinarily provided by the environment this component runs in
      • useRepositories

        public boolean useRepositories
        Should we use the repository tags found to define additional maven repositories to search from. Setting to true can slow down searches but might be required if a package uses a non-default repository. Sometimes the repository tag is set to point to an unreachable internal address.
      • installFileTypes

        public java.util.ArrayList<java.lang.String> installFileTypes
        Should we use the distributionManagement repository tags found in the POM file of the package to define additional maven repositories to search from. Setting to true can slow down searches and also for some packages, it might point to an internal maven server.
      • includeModules

        public java.util.ArrayList<java.lang.String> includeModules
        Set these to control which sub-modules of this package are included
      • excludeModules

        public java.util.ArrayList<java.lang.String> excludeModules
    • Constructor Detail

      • MvnRepositoryPackage

        public MvnRepositoryPackage​(Layer layer)
      • MvnRepositoryPackage

        public MvnRepositoryPackage()