Create project template from maven archetype

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Create project template from maven archetype

migueljbento
We have a maven archetype to create custom applications to our platform
and we would like to translate that functionality into a Netbeans
project template.

I've created a basic project template which works but there's some
functionality lacking, . We want to create a new project type in a new
category that basically performs the same function as "New project >
Maven > Project from Archetype" using a fixed archetype.

Can this be done?

Thanks,
Miguel Bento.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Create project template from maven archetype

Milos Kleint-2
not without some coding and without a hard dependency on the
org.netbeans.modules.maven module.
you will have to create your own module depending on o.n.m.m module
and register the wizard in your code,..
org.netbeans.modules.maven.apisupport does something along these lines..

The biggest obstacle is probably that you will need to create an
implementation dependency on o.n.m.m because the api is only intended
for friend modules.. implementation dependency means your module will
only work in a single version of netbeans.

Milos

On Mon, Feb 20, 2012 at 5:12 PM, Miguel Bento <[hidden email]> wrote:

> We have a maven archetype to create custom applications to our platform and
> we would like to translate that functionality into a Netbeans project
> template.
>
> I've created a basic project template which works but there's some
> functionality lacking, . We want to create a new project type in a new
> category that basically performs the same function as "New project > Maven >
> Project from Archetype" using a fixed archetype.
>
> Can this be done?
>
> Thanks,
> Miguel Bento.
Loading...