Class DependencyInfo

java.lang.Object
org.apache.maven.plugins.war.util.DependencyInfo

public class DependencyInfo extends Object
Holds a dependency and packaging information.
  • Field Details

    • dependency

      private final org.apache.maven.model.Dependency dependency
    • targetFileName

      private String targetFileName
  • Constructor Details

    • DependencyInfo

      public DependencyInfo(org.apache.maven.model.Dependency dependency)
      Creates a new instance.
      Parameters:
      dependency - the dependency
  • Method Details

    • getDependency

      public org.apache.maven.model.Dependency getDependency()
      Returns the dependency.
      Returns:
      the dependency
    • getTargetFileName

      public String getTargetFileName()
      Returns the target filename of the dependency. If no target file name is associated, returns null.
      Returns:
      the target file name or null
    • setTargetFileName

      public void setTargetFileName(String targetFileName)
      Sets the target file name.
      Parameters:
      targetFileName - the target file name
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object