Package org.alfresco.maven.plugin.config
Class ModuleDependency
- java.lang.Object
-
- org.alfresco.maven.plugin.config.MavenDependency
-
- org.alfresco.maven.plugin.config.ModuleDependency
-
public class ModuleDependency extends MavenDependency
Defines an Alfresco extension module dependency (JAR or AMP) to be overlayed on an Alfresco webapp file.
This is so we can skip the WAR projects in the AIO project, and so we can include the Share Services AMP when running with a simple platform JAR.
This class is used by the RunMojo class.
Alfresco Maven Plugin config looks something like this:<platformModules> <moduleDependency> <groupId>${alfresco.groupId}</groupId> <artifactId>alfresco-share-services</artifactId> <version>${alfresco.share.version}</version> <type>amp</type> </moduleDependency> <moduleDependency> <groupId>${project.groupId}</groupId> <artifactId>${project.artifactId}</artifactId> <version>${project.version}</version> </moduleDependency> </platformModules>- Since:
- 3.0.0
- Version:
- 1.0
- Author:
- martin.bergljung@alfresco.com
-
-
Constructor Summary
Constructors Constructor Description ModuleDependency()ModuleDependency(String g, String a, String v, String t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetType()inthashCode()booleanisAmp()booleanisJar()voidsetType(String type)StringtoString()-
Methods inherited from class org.alfresco.maven.plugin.config.MavenDependency
getArtifactId, getClassifier, getGroupId, getVersion, setArtifactId, setClassifier, setGroupId, setVersion
-
-
-
-
Field Detail
-
TYPE_JAR
public static final String TYPE_JAR
- See Also:
- Constant Field Values
-
TYPE_AMP
public static final String TYPE_AMP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public String getType()
-
setType
public void setType(String type)
-
isAmp
public boolean isAmp()
-
isJar
public boolean isJar()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classMavenDependency
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMavenDependency
-
toString
public String toString()
- Overrides:
toStringin classMavenDependency
-
-