Skip to content

Commit

Permalink
Deployment does not run when packaging is not JAR #6
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataygurturk committed Apr 6, 2016
1 parent 06bf249 commit caedd2b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
)
public class LambadaDeployer extends AbstractMojoPlugin {


protected static final String SUPPORTED_PACKAGING = "jar";

/**
* Checks region for valid values.
* <p>
Expand All @@ -39,6 +42,12 @@ public void checkRegion(String region) {
public void execute() throws MojoExecutionException {
try {

if (!mavenProject.getPackaging().equals(SUPPORTED_PACKAGING)) {
getLog().info(LOG_SEPERATOR);
getLog().info("Project packaging is not JAR (potentially a parent project), skipping deployment.");
return;
}

Deployment deployment = getDeployment();
printLogo();
getLog().info("Deployment to AWS Lambda and Gateway is starting.");
Expand Down

0 comments on commit caedd2b

Please sign in to comment.