Class CoreExtensionEntry

java.lang.Object
org.apache.maven.extension.internal.CoreExtensionEntry

public class CoreExtensionEntry extends Object
Provides information about artifacts (identified by groupId:artifactId string key) and classpath elements exported by Maven core itself or a Maven core extension.
Since:
3.3.0
  • Constructor Details

    • CoreExtensionEntry

      public CoreExtensionEntry(org.codehaus.plexus.classworlds.realm.ClassRealm realm, Collection<String> artifacts, Collection<String> packages)
  • Method Details

    • getClassRealm

      public org.codehaus.plexus.classworlds.realm.ClassRealm getClassRealm()
      Returns ClassLoader used to load extension classes.
    • getExportedArtifacts

      public Set<String> getExportedArtifacts()
      Returns artifacts exported by the extension, identified by groupId:artifactId string key.
    • getExportedPackages

      public Set<String> getExportedPackages()
      Returns classpath elements exported by the extension.
    • discoverFrom

      public static CoreExtensionEntry discoverFrom(org.codehaus.plexus.classworlds.realm.ClassRealm loader)
    • discoverFrom

      public static CoreExtensionEntry discoverFrom(org.codehaus.plexus.classworlds.realm.ClassRealm loader, Collection<File> classpath)