Re: Create own archetype with specific folder format according to settings

2017-09-12 Thread Christian Wansart
Thank you for the link. I spend the last hours working on it and it finally works. Sorry for bothering you guys here. Best regards, Christian Am 12.09.17, 16:06 schrieb "Yaron Golan" : Hi, Please take a look at:

Re: When time do we need to delete .m2/repository

2017-09-12 Thread John Patrick
I do similar to Eric for jenkins. But also for both developer builds and jenkins, I've got all projects setup to use the http://www.mojohaus.org/build-helper-maven-plugin/remove-project-artifact-mojo.html plugin. With both a default and clean phase execution. So when either jenkins or a developer

Create own archetype with specific folder format according to settings

2017-09-12 Thread Christian Wansart
Hello, I am trying to create an own archetype which should create a specific folder structure inside the package given through the groupId and artifactId. So let’s say I have this project structure: > my-app/pom.xml > my-app/src/main/java/models/DefaultUser.java >

Re: When time do we need to delete .m2/repository

2017-09-12 Thread Eric B
I have my jenkins jobs designed to use private m2 repos per job. I dont find the need to delete them since the only transient changes are the snapshots, which get reevaluated at every build anyhow. Thanks Eric On Sep 11, 2017 2:43 PM, "Stephen Connolly"

RE: Create own archetype with specific folder format according to settings

2017-09-12 Thread Yaron Golan
Hi, Please take a look at: https://maven.apache.org/guides/mini/guide-creating-archetypes.html Yaron Golan CI/CD, ALM Team AT Network Applications Development · SD   Tel Aviv | Tampa | Atlanta | New Jersey |Chicago ···

Project dependencies vs plugin dependencies for a mojo looking at the project

2017-09-12 Thread Adam Hardy
Hi, when I'm coding a mojo, if I call MavenProject's getArtifacts(), I can only get artifacts from the project level dependencies. How do I obtain artifacts from a plugin's dependencies? Presumably I call something like project.getPlugin(key).getDependencies()? If the 'key' required for