Skip to content

Commit

Permalink
BZ-1169622: additional fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrenaat committed Jan 23, 2015
1 parent 6c36687 commit 2ced635
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -121,6 +121,12 @@ public void setContent( final String projectName,
// and preserved as is in the pom.xml file. However, as it is used to construct the default workspace and
// hence package names, it is sanitized in the ProjectService.newProject() method.
pom = new POM();
if ( projectName == null && groupId == null && version == null ) {
pom.getGav().setGroupId( context.getActiveOrganizationalUnit().getDefaultGroupId() );
pom.getGav().setVersion( "1.0" );
gavWizardPage.setPom( pom, false );
return;
}
pom.setName( projectName );
pom.getGav().setGroupId( groupId );
pom.getGav().setArtifactId( sanitizeProjectName( projectName ) );
Expand Down

0 comments on commit 2ced635

Please sign in to comment.