diff options
Diffstat (limited to 'openecomp-be/tools/artifact-copy-plugin/src/main/java/org/openecomp/sdc/onboarding/util/CalibrateArtifactPlugin.java')
-rw-r--r-- | openecomp-be/tools/artifact-copy-plugin/src/main/java/org/openecomp/sdc/onboarding/util/CalibrateArtifactPlugin.java | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/openecomp-be/tools/artifact-copy-plugin/src/main/java/org/openecomp/sdc/onboarding/util/CalibrateArtifactPlugin.java b/openecomp-be/tools/artifact-copy-plugin/src/main/java/org/openecomp/sdc/onboarding/util/CalibrateArtifactPlugin.java deleted file mode 100644 index fa871c20c5..0000000000 --- a/openecomp-be/tools/artifact-copy-plugin/src/main/java/org/openecomp/sdc/onboarding/util/CalibrateArtifactPlugin.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.openecomp.sdc.onboarding.util; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.plugin.AbstractMojo; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugin.MojoFailureException; -import org.apache.maven.plugins.annotations.*; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.MavenProjectHelper; - -import java.io.File; -import java.io.IOException; - -@Mojo(name = "calibrate-artifact-helper", threadSafe = true, defaultPhase = LifecyclePhase.INSTALL, - requiresDependencyResolution = ResolutionScope.TEST) -public class CalibrateArtifactPlugin extends AbstractMojo { - - private static final String ARTIFACT_COPY_PATH = "artifactPathToCopy"; - - @Parameter(defaultValue = "${session}") - private MavenSession session; - @Parameter(defaultValue = "${project}", readonly = true) - private MavenProject project; - @Component - private MavenProjectHelper projectHelper; - @Parameter - private String groupId; - @Parameter - private String artifactId; - @Parameter - private String version; - @Parameter - private String excludePackaging; - @Parameter - private ArtifactHelper artifactHelper; - - @Override - public void execute() throws MojoExecutionException, MojoFailureException { - if (project.getPackaging().equals(excludePackaging)) { - return; - } - if (project.getProperties().containsKey(ARTIFACT_COPY_PATH) - && project.getProperties().getProperty(ARTIFACT_COPY_PATH) != null) { - File f = new File(project.getProperties().getProperty(ARTIFACT_COPY_PATH)); - if (f.exists()) { - project.getArtifact().setFile(f); - } - } - try { - artifactHelper.shutDown(project); - } catch (IOException | ClassNotFoundException e) { - throw new MojoExecutionException("Unexpected Error Occured during shutdown activities", e); - } - } -} |