Class MvnFragmentResource

java.lang.Object
com.zfabrik.resources.provider.Resource
com.zfabrik.impl.mvncr.MvnFragmentResource

public class MvnFragmentResource extends Resource
A fragment for a Maven based component repository (see MvnRepositoryResource). An mvncr fragment adds configuration information to an mvncr repository by referring to it and specifying configuration properties that can be merged.

The purpose of fragments is to support modularization of mvncr component repository configuration while still maintaining one Maven dependency graph. See also the wiki.

Configuration Properties

Using a component descriptor the following properties can be set
name meaning default
mvncr.component The component name (or a comma-separated list of component names) of MVNCR declarations this fragment adds to or a fragment adding to some other mvncr. Deprecated as component names are not robust for this use-case when using links. Instead use mvncr.repository n.a.
mvncr.repositoryThe symbolic name (or a comma-separated list of symbolic names) of MVNCR declarations this fragment adds to or a fragment adding to some other mvncr. n.a.
mvncr.roots As above. Will be merged with the repo this fragment adds to n.a.
mvncr.managed As above. Will be merged with the repo this fragment adds to n.a.
mvncr.excluded As above. Will be merged with the repo this fragment adds to n.a.
  • Field Details

  • Constructor Details

    • MvnFragmentResource

      public MvnFragmentResource(String name)
  • Method Details

    • getName

      public String getName()
    • as

      public <T> T as(Class<T> clz)
      Overrides:
      as in class Resource