Class WarPluginInfo

java.lang.Object
org.eclipse.jetty.maven.plugin.WarPluginInfo

public class WarPluginInfo extends Object
WarPluginInfo Information about the maven-war-plugin contained in the pom
  • Constructor Details

    • WarPluginInfo

      public WarPluginInfo(org.apache.maven.project.MavenProject project)
  • Method Details

    • getProject

      public org.apache.maven.project.MavenProject getProject()
      Returns:
      the project
    • getWarArtifacts

      public Set<org.apache.maven.artifact.Artifact> getWarArtifacts()
      Get all dependent artifacts that are wars.
      Returns:
      all artifacts of type "war" or "zip"
    • getWarArtifact

      public org.apache.maven.artifact.Artifact getWarArtifact(String groupId, String artifactId, String classifier)
      Get an artifact of type war that matches the given coordinates.
      Parameters:
      groupId - the groupId to match
      artifactId - the artifactId to match
      classifier - the classified to match
      Returns:
      the matching Artifact or null if no match
    • getWarPlugin

      public org.apache.maven.model.Plugin getWarPlugin()
      Find the maven-war-plugin, if one is configured
      Returns:
      the plugin
    • getDependentMavenWarIncludes

      public List<String> getDependentMavenWarIncludes()
      Get value of dependentWarIncludes for maven-war-plugin
      Returns:
      the list of dependent war includes
    • getDependentMavenWarExcludes

      public List<String> getDependentMavenWarExcludes()
      Get value of dependentWarExcludes for maven-war-plugin
      Returns:
      the list of dependent war excludes
    • getMavenWarOverlayConfigs

      public List<OverlayConfig> getMavenWarOverlayConfigs()
      Get config for any overlays that have been declared for the maven-war-plugin.
      Returns:
      the list of overlay configs
    • match

      public boolean match(org.apache.maven.artifact.Artifact a, String gid, String aid, String cls)
    • match

      public boolean match(org.apache.maven.artifact.Artifact a, String gid, String aid)
      Check if the given artifact matches the group and artifact coordinates.
      Parameters:
      a - the artifact to check
      gid - the group id
      aid - the artifact id
      Returns:
      true if matched false otherwise