com.atlassian.maven.plugins.testharness
Class PluginDependency

java.lang.Object
  extended by org.apache.maven.model.Dependency
      extended by com.atlassian.maven.plugins.testharness.PluginDependency
All Implemented Interfaces:
java.io.Serializable

public class PluginDependency
extends org.apache.maven.model.Dependency

This subclass of the standard Maven Dependency class exists for two reasons:

  1. Plugin configuration in POMs assumes by default that all of the sub-elements refer to classes in the same package as the MOJO. There's no good way to tell it that the MOJO is configured with Dependency objects.
  2. XStream does not call the field initializers when deserializing, so the default artifact type wasn't being respected.

See Also:
Serialized Form

Constructor Summary
PluginDependency()
           
 
Method Summary
 java.lang.String getType()
           
 
Methods inherited from class org.apache.maven.model.Dependency
addExclusion, getArtifactId, getClassifier, getExclusions, getGroupId, getManagementKey, getModelEncoding, getScope, getSystemPath, getVersion, isOptional, removeExclusion, setArtifactId, setClassifier, setExclusions, setGroupId, setModelEncoding, setOptional, setScope, setSystemPath, setType, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PluginDependency

public PluginDependency()
Method Detail

getType

public java.lang.String getType()
Overrides:
getType in class org.apache.maven.model.Dependency


Copyright © 2010 Atlassian Pty Ltd. All Rights Reserved.