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>
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_AMP |
static String |
TYPE_JAR |
| Constructor and Description |
|---|
ModuleDependency() |
ModuleDependency(String g,
String a,
String v,
String t) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getType() |
int |
hashCode() |
boolean |
isAmp() |
boolean |
isJar() |
void |
setType(String type) |
String |
toString() |
getArtifactId, getClassifier, getGroupId, getVersion, setArtifactId, setClassifier, setGroupId, setVersionpublic static final String TYPE_JAR
public static final String TYPE_AMP
public String getType()
public void setType(String type)
public boolean isAmp()
public boolean isJar()
public boolean equals(Object o)
equals in class MavenDependencypublic int hashCode()
hashCode in class MavenDependencypublic String toString()
toString in class MavenDependencyCopyright © 2019. All rights reserved.