embedding maven archetype plugin in a java application

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

embedding maven archetype plugin in a java application

Bob Kubista
Hello,

I am trying to generate maven projects with an archetype from a java application. However, whilest the archetype works, I cannot seem to generate a new project from the archetype within a java application. I've been looking at how Eclipse IDE does it, but there is a lot of code go wire everything together. Does anyone have any tips?

Kind regards,

Bob Kubista
Reply | Threaded
Open this post in threaded view
|

Re: embedding maven archetype plugin in a java application

Peter Lamby-2
You can take a look at the maven-archetype-plugin:integration-test mojo. This mojo creates a project from an archetype and checks if all expected files are present.

The first half of the plugin should do what you want.

You can also just look at the generate mojo.

Am 8. Oktober 2020 15:39:54 MESZ schrieb Bob Kubista <[hidden email]>:

>Hello,
>
>I am trying to generate maven projects with an archetype from a java
>application. However, whilest the archetype works, I cannot seem to
>generate a new project from the archetype within a java application.
>I've been looking at how Eclipse IDE does it, but there is a lot of
>code go wire everything together. Does anyone have any tips?
>
>Kind regards,
>
>Bob Kubista

--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.