multi-project templates

View: New views
4 Messages — Rating Filter:   Alert me  

multi-project templates

by kristoffer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I have looked for a feature where i can define some kind of template or profile centrally and inherit that for each "component". A component for us, has a special meaning in maven. For example, a general definition of a component is a maven pom type project and may contain the following projects:

* EAR (depends on all other projects within this component)
* IF (no dependencies)
* EJB (ejb type project that depend on interface project)
* WAR (war type project that depend on interface AND ejb project)
* RAR (rar type project that depend on the interface project)

There are other type of projects that are part of this definition but i have left them out here for brevity. We also have a couple of profiles and plugins that we need for each and every component. Together, this make our pom file very verbose.

Our system consist of quite many components (~35-45, each with maybe 5-6 projects) and so we repeat ourselves alot and it's hard to maintain consistency throughout the system.

We did construct such a building system in Ant previously, and I havent found any similar feature in Maven or if it is even possible to do with a plugin?

Cheers,
-Kristoffer

Re: multi-project templates

by Anders Hammar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That's called archetypes in the Maven world:
http://www.sonatype.com/books/maven-book/reference/archetypes.html

/Anders

On Fri, Nov 6, 2009 at 13:59, kristoffer <kristoffer.sjogren@...>wrote:

>
> Hi
>
> I have looked for a feature where i can define some kind of template or
> profile centrally and inherit that for each "component". A component for
> us,
> has a special meaning in maven. For example, a general definition of a
> component is a maven pom type project and may contain the following
> projects:
>
> * EAR (depends on all other projects within this component)
> * IF (no dependencies)
> * EJB (ejb type project that depend on interface project)
> * WAR (war type project that depend on interface AND ejb project)
> * RAR (rar type project that depend on the interface project)
>
> There are other type of projects that are part of this definition but i
> have
> left them out here for brevity. We also have a couple of profiles and
> plugins that we need for each and every component. Together, this make our
> pom file very verbose.
>
> Our system consist of quite many components (~35-45, each with maybe 5-6
> projects) and so we repeat ourselves alot and it's hard to maintain
> consistency throughout the system.
>
> We did construct such a building system in Ant previously, and I havent
> found any similar feature in Maven or if it is even possible to do with a
> plugin?
>
> Cheers,
> -Kristoffer
> --
> View this message in context:
> http://old.nabble.com/multi-project-templates-tp26230506p26230506.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

Re: multi-project templates

by kristoffer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Anders,

Yes i have looked at archtypes. But it seems that this is only a one-shoot generation of the projects? Can it maintain/enforce changes in archetype when it is updated centrally in a dynamic way?

Cheers,
-Kristoffer

Anders Hammar wrote:
That's called archetypes in the Maven world:
http://www.sonatype.com/books/maven-book/reference/archetypes.html

/Anders

On Fri, Nov 6, 2009 at 13:59, kristoffer <kristoffer.sjogren@ericsson.com>wrote:

>
> Hi
>
> I have looked for a feature where i can define some kind of template or
> profile centrally and inherit that for each "component". A component for
> us,
> has a special meaning in maven. For example, a general definition of a
> component is a maven pom type project and may contain the following
> projects:
>
> * EAR (depends on all other projects within this component)
> * IF (no dependencies)
> * EJB (ejb type project that depend on interface project)
> * WAR (war type project that depend on interface AND ejb project)
> * RAR (rar type project that depend on the interface project)
>
> There are other type of projects that are part of this definition but i
> have
> left them out here for brevity. We also have a couple of profiles and
> plugins that we need for each and every component. Together, this make our
> pom file very verbose.
>
> Our system consist of quite many components (~35-45, each with maybe 5-6
> projects) and so we repeat ourselves alot and it's hard to maintain
> consistency throughout the system.
>
> We did construct such a building system in Ant previously, and I havent
> found any similar feature in Maven or if it is even possible to do with a
> plugin?
>
> Cheers,
> -Kristoffer
> --
> View this message in context:
> http://old.nabble.com/multi-project-templates-tp26230506p26230506.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: multi-project templates

by Anders Hammar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No, not that I know of.

/Anders

On Tue, Nov 10, 2009 at 13:54, kristoffer
<kristoffer.sjogren@...>wrote:

>
> Hi Anders,
>
> Yes i have looked at archtypes. But it seems that this is only a one-shoot
> generation of the projects? Can it maintain/enforce changes in archetype
> when it is updated centrally in a dynamic way?
>
> Cheers,
> -Kristoffer
>
>
> Anders Hammar wrote:
> >
> > That's called archetypes in the Maven world:
> > http://www.sonatype.com/books/maven-book/reference/archetypes.html
> >
> > /Anders
> >
> > On Fri, Nov 6, 2009 at 13:59, kristoffer
> > <kristoffer.sjogren@...>wrote:
> >
> >>
> >> Hi
> >>
> >> I have looked for a feature where i can define some kind of template or
> >> profile centrally and inherit that for each "component". A component for
> >> us,
> >> has a special meaning in maven. For example, a general definition of a
> >> component is a maven pom type project and may contain the following
> >> projects:
> >>
> >> * EAR (depends on all other projects within this component)
> >> * IF (no dependencies)
> >> * EJB (ejb type project that depend on interface project)
> >> * WAR (war type project that depend on interface AND ejb project)
> >> * RAR (rar type project that depend on the interface project)
> >>
> >> There are other type of projects that are part of this definition but i
> >> have
> >> left them out here for brevity. We also have a couple of profiles and
> >> plugins that we need for each and every component. Together, this make
> >> our
> >> pom file very verbose.
> >>
> >> Our system consist of quite many components (~35-45, each with maybe 5-6
> >> projects) and so we repeat ourselves alot and it's hard to maintain
> >> consistency throughout the system.
> >>
> >> We did construct such a building system in Ant previously, and I havent
> >> found any similar feature in Maven or if it is even possible to do with
> a
> >> plugin?
> >>
> >> Cheers,
> >> -Kristoffer
> >> --
> >> View this message in context:
> >> http://old.nabble.com/multi-project-templates-tp26230506p26230506.html
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@...
> >> For additional commands, e-mail: users-help@...
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/multi-project-templates-tp26230506p26282890.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>