
com.github.jlgrock.javascriptframework.sourcearchive.FullSourceArchiveMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of source-archive-maven-plugin Show documentation
Show all versions of source-archive-maven-plugin Show documentation
This is just a shortcut to using the Maven Assembly Plugin. So long as your source code is in the standardized places, you can run the goals provided by this plugin and it will reference the standardized assembly.xml files contained within the plugin and apply them.
package com.github.jlgrock.javascriptframework.sourcearchive;
import org.apache.maven.project.MavenProject;
/**
* This Mojo will zip everything in the declared source directory into
* a Source Archive file, which will be stored into the local
* repository.
*
* @author Justin Grant
* @requiresProject
* @goal full-source-archive
* @phase package
* @inheritByDefault false
* @threadSafe
*/
public class FullSourceArchiveMojo extends AbstractSourceArchiveMojo {
/**
* The resource to assemble with.
*/
public static final String DESCRIPTOR_RESOURCE_NAME = "full-src-assembly.xml";
/**
* @parameter default-value="${project}"
* @required
* @readonly
*/
private MavenProject project;
@Override
public final MavenProject getProject() {
return project;
}
@Override
protected final String getDescriptorResourceName() {
return DESCRIPTOR_RESOURCE_NAME;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy