mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-10 18:13:35 +02:00
force package phase before mojo execution
This commit is contained in:
@@ -179,7 +179,7 @@ public abstract class AbstractBaseScmMojo extends AbstractScmMojo
|
||||
String pluginDirectoryPath = pluginDirectory.getAbsolutePath();
|
||||
|
||||
installArtifact(excludeList, pluginDirectoryPath, classpath,
|
||||
pluginRepository, projectArtifact);
|
||||
pluginRepository, getPluginArtifact());
|
||||
|
||||
if (artifacts != null)
|
||||
{
|
||||
@@ -202,6 +202,25 @@ public abstract class AbstractBaseScmMojo extends AbstractScmMojo
|
||||
|
||||
//~--- get methods ----------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
protected Artifact getPluginArtifact()
|
||||
{
|
||||
if (projectArtifact.getFile() == null)
|
||||
{
|
||||
File file = new File(project.getBuild().getDirectory(),
|
||||
project.getBuild().getFinalName().concat(".jar"));
|
||||
|
||||
projectArtifact.setFile(file);
|
||||
}
|
||||
|
||||
return projectArtifact;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
|
||||
@@ -49,7 +49,7 @@ import java.util.List;
|
||||
* @author Sebastian Sdorra
|
||||
* @goal install
|
||||
* @requiresDependencyResolution runtime
|
||||
* @phase package
|
||||
* @execute phase="package"
|
||||
*/
|
||||
public class InstallMojo extends AbstractBaseScmMojo
|
||||
{
|
||||
|
||||
@@ -55,7 +55,7 @@ import java.util.List;
|
||||
* @author Sebastian Sdorra
|
||||
* @goal run
|
||||
* @requiresDependencyResolution runtime
|
||||
* @phase package
|
||||
* @execute phase="package"
|
||||
*/
|
||||
public class RunMojo extends AbstractBaseScmMojo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user