|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.kuali.maven.plugin.ksite.mojo.KualiSiteMojo
public class KualiSiteMojo
This plugin organizes/standardizes the maven site publication process for the Kuali organization
Field Summary | |
---|---|
private String |
bucket
The name of the AWS bucket the site gets published to |
private String |
downloadPrefix
The prefix for the location that artifacts can be downloaded from |
private String |
downloadReleasePrefix
The prefix into the bucket when downloading a release version |
private String |
downloadSnapshotPrefix
The prefix into the bucket when downloading a snapshot version |
private String |
hostname
The public DNS name for the site |
private String |
organizationGroupId
The groupId for the organization |
private org.apache.maven.project.MavenProject |
project
The Maven project this plugin runs in. |
private String |
publicUrlProtocol
The protocol for the public facing website |
private String |
publishUrlProtocol
The protocol used when publishing the web site |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
KualiSiteMojo()
|
Method Summary | |
---|---|
void |
execute()
|
String |
getBucket()
|
String |
getDownloadPrefix()
|
String |
getDownloadReleasePrefix()
|
String |
getDownloadSnapshotPrefix()
|
String |
getHostname()
|
String |
getOrganizationGroupId()
|
org.apache.maven.project.MavenProject |
getProject()
|
String |
getPublicUrlProtocol()
|
String |
getPublishUrlProtocol()
|
protected void |
handleDownloadUrl(String downloadUrl,
org.apache.maven.model.DistributionManagement dm)
|
protected void |
handlePublicUrl(String publicUrl,
org.apache.maven.project.MavenProject project)
|
protected void |
handlePublishUrl(String publishUrl,
org.apache.maven.model.Site site)
|
protected boolean |
isReplace(String s,
String token)
Return true if "s" is empty or contains "token" |
protected boolean |
isUrlMatch(String url1,
String url2)
Return true if the 2 urls are exactly the same or if the only thing different about them is a trailing slash |
void |
setBucket(String bucket)
|
void |
setDownloadPrefix(String downloadPrefix)
|
void |
setDownloadReleasePrefix(String downloadReleasePrefix)
|
void |
setDownloadSnapshotPrefix(String downloadSnapshotPrefix)
|
void |
setHostname(String hostname)
|
void |
setOrganizationGroupId(String parentGroupId)
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
void |
setPublicUrlProtocol(String publicUrlProtocol)
|
void |
setPublishUrlProtocol(String publishUrlProtocol)
|
protected void |
warn(String pomString,
String calculatedString,
String propertyDescription)
|
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String downloadSnapshotPrefix
private String downloadReleasePrefix
private String publishUrlProtocol
private String publicUrlProtocol
private String downloadPrefix
private String organizationGroupId
private String bucket
private String hostname
private org.apache.maven.project.MavenProject project
Constructor Detail |
---|
public KualiSiteMojo()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected boolean isReplace(String s, String token)
protected void warn(String pomString, String calculatedString, String propertyDescription)
protected boolean isUrlMatch(String url1, String url2)
protected void handleDownloadUrl(String downloadUrl, org.apache.maven.model.DistributionManagement dm)
protected void handlePublishUrl(String publishUrl, org.apache.maven.model.Site site)
protected void handlePublicUrl(String publicUrl, org.apache.maven.project.MavenProject project)
public org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject project)
project
- the project to setpublic String getBucket()
getBucket
in interface org.kuali.maven.common.SiteContext
public void setBucket(String bucket)
bucket
- the bucket to setpublic String getHostname()
getHostname
in interface org.kuali.maven.common.SiteContext
public void setHostname(String hostname)
hostname
- the hostname to setpublic String getDownloadPrefix()
getDownloadPrefix
in interface org.kuali.maven.common.SiteContext
public void setDownloadPrefix(String downloadPrefix)
downloadPrefix
- the downloadPrefix to setpublic String getOrganizationGroupId()
getOrganizationGroupId
in interface org.kuali.maven.common.SiteContext
public void setOrganizationGroupId(String parentGroupId)
parentGroupId
- the parentGroupId to setpublic String getPublishUrlProtocol()
getPublishUrlProtocol
in interface org.kuali.maven.common.SiteContext
public void setPublishUrlProtocol(String publishUrlProtocol)
publishUrlProtocol
- the publishUrlProtocol to setpublic String getPublicUrlProtocol()
getPublicUrlProtocol
in interface org.kuali.maven.common.SiteContext
public void setPublicUrlProtocol(String publicUrlProtocol)
publicUrlProtocol
- the publicUrlProtocol to setpublic String getDownloadSnapshotPrefix()
getDownloadSnapshotPrefix
in interface org.kuali.maven.common.SiteContext
public void setDownloadSnapshotPrefix(String downloadSnapshotPrefix)
downloadSnapshotPrefix
- the downloadSnapshotPrefix to setpublic String getDownloadReleasePrefix()
getDownloadReleasePrefix
in interface org.kuali.maven.common.SiteContext
public void setDownloadReleasePrefix(String downloadReleasePrefix)
downloadReleasePrefix
- the downloadReleasePrefix to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |