Skip to content

Commit

Permalink
Build classpath before creating custom annotator
Browse files Browse the repository at this point in the history
Closes #256
  • Loading branch information
joelittlejohn committed Oct 16, 2014
1 parent dd45e0f commit 56c2351
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ public class Jsonschema2PojoMojo extends AbstractMojo implements GenerationConfi
"NP_UNWRITTEN_FIELD", "UWF_UNWRITTEN_FIELD" }, justification = "Private fields set by Maven.")
public void execute() throws MojoExecutionException {

addProjectDependenciesToClasspath();

try {
getAnnotationStyle();
} catch (IllegalArgumentException e) {
Expand Down Expand Up @@ -399,8 +401,6 @@ public void execute() throws MojoExecutionException {
project.addCompileSourceRoot(outputDirectory.getPath());
}

addProjectDependenciesToClasspath();

try {
Jsonschema2Pojo.generate(this);
} catch (IOException e) {
Expand Down

0 comments on commit 56c2351

Please sign in to comment.