Open rocambille opened 5 years ago
I would like to be assigned this issue please
If you want to use "barista" in maven projects, it would be a good idea creating a maven-plugin instead of that simple project. The benefit is, that your are able to proceed(and configure) it inside the pom and integrate the execution inside the maven lifecycle.
If you want to use "barista" in maven projects, it would be a good idea creating a maven-plugin instead of that simple project. The benefit is, that your are able to proceed(and configure) it inside the pom and integrate the execution inside the maven lifecycle.
thx @bhegmanns for the feedback. the maven-plugin is a great idea, I will investigate it :)
I can do it (I think in a short way). Create a new branch vor mavenized project and I'll make a PR.
@bhegmanns here it is: https://github.com/wasthishelpful/barista/tree/maven-plugin
read
groupId
andartifactId
from pom.xml (it is assumed that Barista is used at root of a maven project), and use the information to generate package line in templates -- seesrc/main/resources/templates/barista
.the package declaration in a template should be
package groupId.artifactId;
.a subpackage should be used for subdirectories. eg an entity should be generated in
src/main/java/groupId/artifactId/entities
, and should have a package declarationpackage groupId.artifactId.entities;
.