Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
ROO-3551: Solving error on child projects without version
Browse files Browse the repository at this point in the history
  • Loading branch information
jcagarcia committed Nov 10, 2014
1 parent 02f8ce2 commit 32c99ec
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -107,11 +107,19 @@ public Pom(final String groupId, final String artifactId,
Validate.notBlank(packaging, "Invalid packaging '%s'", packaging);
Validate.notBlank(path, "Invalid path '%s'", path);

gav = new GAV(groupId, artifactId, version);
//gav = new GAV(groupId, artifactId, version);
this.moduleName = StringUtils.stripToEmpty(moduleName);
this.name = StringUtils.stripToEmpty(name);
this.packaging = packaging;
this.parent = parent;

if(version == null && parent.getVersion() != null) {
gav = new GAV(groupId, artifactId, parent.getVersion());
}
else {
gav = new GAV(groupId, artifactId, version);
}

this.path = path;
this.sourceDirectory = StringUtils.defaultIfEmpty(sourceDirectory,
Path.SRC_MAIN_JAVA.getDefaultLocation());
Expand Down

0 comments on commit 32c99ec

Please sign in to comment.