Class WarPluginInfo


  • public class WarPluginInfo
    extends java.lang.Object
    WarPluginInfo Information about the maven-war-plugin contained in the pom
    • Constructor Summary

      Constructors 
      Constructor Description
      WarPluginInfo​(org.apache.maven.project.MavenProject project)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getDependentMavenWarExcludes()
      Get value of dependentWarExcludes for maven-war-plugin
      java.util.List<java.lang.String> getDependentMavenWarIncludes()
      Get value of dependentWarIncludes for maven-war-plugin
      java.util.List<OverlayConfig> getMavenWarOverlayConfigs()
      Get config for any overlays that have been declared for the maven-war-plugin.
      org.apache.maven.project.MavenProject getProject()  
      org.apache.maven.artifact.Artifact getWarArtifact​(java.lang.String groupId, java.lang.String artifactId, java.lang.String classifier)
      Get an artifact of type war that matches the given coordinates.
      java.util.Set<org.apache.maven.artifact.Artifact> getWarArtifacts()
      Get all dependent artifacts that are wars.
      org.apache.maven.model.Plugin getWarPlugin()
      Find the maven-war-plugin, if one is configured
      boolean match​(org.apache.maven.artifact.Artifact a, java.lang.String gid, java.lang.String aid)
      Check if the given artifact matches the group and artifact coordinates.
      boolean match​(org.apache.maven.artifact.Artifact a, java.lang.String gid, java.lang.String aid, java.lang.String cls)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WarPluginInfo

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

      • getProject

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

        public java.util.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​(java.lang.String groupId,
                                                                 java.lang.String artifactId,
                                                                 java.lang.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 java.util.List<java.lang.String> getDependentMavenWarIncludes()
        Get value of dependentWarIncludes for maven-war-plugin
        Returns:
        the list of dependent war includes
      • getDependentMavenWarExcludes

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

        public java.util.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,
                             java.lang.String gid,
                             java.lang.String aid,
                             java.lang.String cls)
      • match

        public boolean match​(org.apache.maven.artifact.Artifact a,
                             java.lang.String gid,
                             java.lang.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