Skip to content

Commit

Permalink
last-minute bug in the deploy artifact mojo
Browse files Browse the repository at this point in the history
  • Loading branch information
stoicflame committed Aug 28, 2015
1 parent 31f7745 commit a664f97
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class DeployArtifactBaseMojo extends AbstractMojo implements Contextualiz
/**
* Version of the artifact to be deployed. Retrieved from POM file if specified.
*/
@Parameter( defaultValue = "${version}")
@Parameter( defaultValue = "${project.version}")
protected String version;

/**
Expand Down Expand Up @@ -216,6 +216,10 @@ else if (enunciateArtifact instanceof FileArtifact) {
throw new MojoExecutionException("Unable to determine the packaging of enunciate artifact " + enunciateArtifactId + ". Please specify it in the configuration.");
}

if (this.version == null) {
throw new MojoExecutionException("Null version.");
}

if (model == null) {
model = new Model();
model.setModelVersion("4.0.0");
Expand Down

0 comments on commit a664f97

Please sign in to comment.