grails-maven icon indicating copy to clipboard operation
grails-maven copied to clipboard

Plugin should sync and validate the project.build.finalName property to app.name in application.properties app.name not project.name

Open krajewf opened this issue 9 years ago • 1 comments

In AbstractGrailsMojo.java the code sets the project.name as the app.name if not equal, then MvnValidateMojo.java validates that the project.artifactId equals the app.name. This does not allow you to set the project.name different than project.build.finalName or project.artifactId in the Maven pom. The sync and validation should operate off the project.artifactId or project.build.finalName since according to section 9.2 Maven Properties of the Sonatype Maven: A Complete Reference "A project’s artifactId is often used as the name of a deliverable" where the project.name is described as "The name and project description can often be useful properties to reference from documentation".

krajewf avatar Feb 27 '15 23:02 krajewf

Yes, our team has been impacted by this issue. Temporarily, we have renamed our project.name equal to the artefactId but its not ideal.

selera avatar Mar 01 '15 04:03 selera