Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Commit

Permalink
make base package name in the maven plugin definition optional
Browse files Browse the repository at this point in the history
  • Loading branch information
amckenzie committed Dec 5, 2017
1 parent 2618185 commit 94a1221
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
@Mojo(name = "generate", requiresDependencyResolution = COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.GENERATE_SOURCES)
public class GenerateMojo extends BasicMojo {

private static final String EMPTY_STRING = "";
/**
* The fully qualified classname for the generator to use
*/
Expand All @@ -44,8 +45,8 @@ public class GenerateMojo extends BasicMojo {
/**
* Base package name used for generated Java classes.
*/
@Parameter(property = "basePackageName", required = true)
private String basePackageName;
@Parameter(property = "basePackageName", required = false, defaultValue = EMPTY_STRING)
private String basePackageName = EMPTY_STRING;

@Parameter(property = "generatorProperties", required = false)
private GeneratorProperties generatorProperties;
Expand Down

0 comments on commit 94a1221

Please sign in to comment.