NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Best HowTo? Composing multicluster/multisuite maven applications

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
arittner



Joined: 10 Jun 2009
Posts: 118

PostPosted: Thu Jul 29, 2010 9:21 am    Post subject: Best HowTo? Composing multicluster/multisuite maven applications Reply with quote

Hi!

I've a base RCP application with many core modules (sXbase). It's a core platform for our CRM application. The application is a maven based project.

This application project is my base platform for some suites (with different cluster id's). E.g.: customer suite (customers), report suite (report), office integration suite (office), ...

What is the best way to assemble all the suites / clusters into a whole application? Currently I test a suite by suite. All my profile.xml files of my suites are contain a "pointer" to my application:

Code:
<netbeans.installation>../../platforms/sXbase/application/target/s3</netbeans.installation>


And every pom points with <parent>...</parent> to the sXbase application.


To run a full application I install all nbm's by hand... Embarassed - But IMHO this is a job for maven. I need a hint to create a maven project with all my clusters.

br, josh.
Back to top
Milos Kleint
Posted via mailing list.





PostPosted: Thu Jul 29, 2010 9:49 am    Post subject: [platform-dev] Re: Best HowTo? Composing multicluster/multisuite maven applications Reply with quote

one or multiple nbm-application packaging projects?

Milos


On Thu, Jul 29, 2010 at 11:21 AM, arittner <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hi!

I've a base RCP application with many core modules (sXbase). It's a core platform for our CRM application. The application is a maven based project.

This application project is my base platform for some suites (with different cluster id's). E.g.: customer suite (customers), report suite (report), office integration suite (office), ...

What is the best way to assemble all the suites / clusters into a whole application?  Currently I test a suite by suite. All my profile.xml files of my suites are contain a "pointer" to my application:


Code:
<netbeans.installation>../../platforms/sXbase/application/target/s3</netbeans.installation>



And every pom points with <parent>...</parent> to the sXbase application.


To run a full application I install all nbm's by hand...  [Embarassed] - But IMHO this is a job for maven. I need a hint to create a maven project with all my clusters.

br, josh.

------------------------
JNBB/BeanDev: Das deutsche Blog zur NetBeans Platform (http://www.sepix.de/blogs/blogrittner)




Back to top
arittner



Joined: 10 Jun 2009
Posts: 118

PostPosted: Fri Jul 30, 2010 12:36 pm    Post subject: Re: [platform-dev] Re: Best HowTo? Composing multicluster/multisuite maven applications Reply with quote

Hi Milos!

Thank you. But a nbm-application packaging can't be a parent for other poms. But I've found a solution to avoid "Copy&paste" all dependencies. I create for my plattform and for all suites an extra "dependency"-pom. I move the dependencies from my platform/suites into the different poms and use this poms as a dependency. So it's possible to stick all my applications together.

An example:

My platform:

Code:

<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>de.sepix</groupId>
    <artifactId>sXbase</artifactId>
    <packaging>pom</packaging>
    <version>4.2-SNAPSHOT</version>
    <name>S3 V4.2 - Sepix Sales System - Maven Build</name>
    <modules>
      <!-- my bunch of modules -->
    </modules>


My core dependencies:

Code:

<project>
  <modelVersion>4.0.0</modelVersion>

  <groupId>de.sepix.core</groupId>
  <artifactId>core-deps</artifactId>
  <packaging>pom</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>S3 V4.2 - Core Dependencies</name>
    <dependencies>
        <!-- All my dependencies == modules from pom:de.sepix.sXbase
               Moved from my old platform nbm-application packager
        -->


My Platform builder:

Code:

<project>
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>de.sepix</groupId>
        <artifactId>sXbase</artifactId>
        <version>4.2-SNAPSHOT</version>
    </parent>
    <artifactId>application</artifactId>
    <packaging>nbm-application</packaging>
    <version>4.2-SNAPSHOT</version>
    <name>S3 V4.2 - Sepix Sales System </name>
    <dependencies>
        <dependency>
          <groupId>de.sepix.core</groupId>
          <artifactId>core-deps</artifactId>
          <type>pom</type>
          <version>1.0-SNAPSHOT</version>
        </dependency>



And now my Application with two dependencies from my customer suite (without an extra dep-pom for the suite)

Code:

<project>
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>de.sepix</groupId>
        <artifactId>sXbase</artifactId>
        <version>4.2-SNAPSHOT</version>
    </parent>

    <groupId>de.sepix.s3</groupId>
    <artifactId>test-application</artifactId>
    <packaging>nbm-application</packaging>
    <version>4.2-SNAPSHOT</version>
    <name>S³ V4.2 Standard Test Application</name>
   
    <description>S³ Test Application packager</description>
   
    <dependencies>

        <!-- The platform -->
        <dependency>
            <groupId>de.sepix.core</groupId>
            <artifactId>core-deps</artifactId>
            <version>1.0-SNAPSHOT</version>
            <type>pom</type>
        </dependency>


        <!-- My suite -->
        <!-- Todo: create an extra pom with suite deps -->
        <dependency>
            <groupId>de.sepix.app.custtables</groupId>
            <artifactId>sXcusttables</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>

        <dependency>
            <groupId>de.sepix.app</groupId>
            <artifactId>sXcustdef</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>
    </dependencies>



I hope this is the right direction. It would be very useful to have always an additional pom for dependencies in all new netbeans projects.

br, josh.


Milos Kleint wrote:
one or multiple nbm-application packaging projects?

Milos


On Thu, Jul 29, 2010 at 11:21 AM, arittner <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hi!

I've a base RCP application with many core modules (sXbase). It's a core platform for our CRM application. The application is a maven based project.

This application project is my base platform for some suites (with different cluster id's). E.g.: customer suite (customers), report suite (report), office integration suite (office), ...

What is the best way to assemble all the suites / clusters into a whole application?  Currently I test a suite by suite. All my profile.xml files of my suites are contain a "pointer" to my application:


Code:
<netbeans.installation>../../platforms/sXbase/application/target/s3</netbeans.installation>



And every pom points with <parent>...</parent> to the sXbase application.


To run a full application I install all nbm's by hand...  [Embarassed] - But IMHO this is a job for maven. I need a hint to create a maven project with all my clusters.

br, josh.

------------------------
JNBB/BeanDev: Das deutsche Blog zur NetBeans Platform (http://www.sepix.de/blogs/blogrittner)




Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo