Skip to content

Commit

Permalink
updated init, plan, apply and destroy goals to be runnable outside of…
Browse files Browse the repository at this point in the history
… a project
  • Loading branch information
Clayton7510 committed Feb 26, 2020
1 parent 4897c79 commit 5cbffaa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Expand Up @@ -17,7 +17,7 @@
* <br>
* Runs 'terraform apply'
*/
@Mojo(name = "apply")
@Mojo(name = "apply", requiresProject = false)
public class Apply extends TerraformMojo<String> {
@Parameter(property = "tfRootDir")
String tfRootDir;
Expand Down
Expand Up @@ -17,7 +17,7 @@
* <br>
* Runs 'terraform destroy'
*/
@Mojo(name = "destroy")
@Mojo(name = "destroy", requiresProject = false)
public class Destroy extends TerraformMojo<String> {
@Parameter(property = "tfRootDir")
String tfRootDir;
Expand Down
Expand Up @@ -8,7 +8,6 @@
import org.apache.commons.lang3.StringUtils;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

Expand All @@ -19,8 +18,7 @@
* <br>
* Runs 'terraform init'
*/
@Execute(goal = "get")
@Mojo(name = "init")
@Mojo(name = "init", requiresProject = false)
public class Init extends TerraformMojo<String> {
@Parameter(property = "tfRootDir")
String tfRootDir;
Expand Down
Expand Up @@ -17,7 +17,7 @@
* <br>
* Runs 'terraform plan'
*/
@Mojo(name = "plan")
@Mojo(name = "plan", requiresProject = false)
public class Plan extends TerraformMojo<String> {
@Parameter(property = "tfRootDir")
String tfRootDir;
Expand Down

0 comments on commit 5cbffaa

Please sign in to comment.