Skip to content

Commit

Permalink
Fix #261 Require Maven project to run goals
Browse files Browse the repository at this point in the history
  • Loading branch information
ctubbsii committed May 9, 2018
1 parent 70382dd commit c8fa0a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/revelc/code/formatter/FormatterMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
* @author Matt Blanchette
* @author marvin.froeder
*/
@Mojo(name = "format", defaultPhase = LifecyclePhase.PROCESS_SOURCES, requiresProject = false, threadSafe = true)
@Mojo(name = "format", defaultPhase = LifecyclePhase.PROCESS_SOURCES, requiresProject = true, threadSafe = true)
public class FormatterMojo extends AbstractMojo implements ConfigurationSource {

private static final String FILE_S = " file(s)";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/revelc/code/formatter/ValidateMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*
* @author marvin.froeder
*/
@Mojo(name = "validate", defaultPhase = LifecyclePhase.VALIDATE, requiresProject = false, threadSafe = true)
@Mojo(name = "validate", defaultPhase = LifecyclePhase.VALIDATE, requiresProject = true, threadSafe = true)
public class ValidateMojo extends FormatterMojo {

@Parameter(defaultValue = "false", property = "aggregator", required = true)
Expand Down

0 comments on commit c8fa0a4

Please sign in to comment.