NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
arittner
Joined: 10 Jun 2009 Posts: 118
|
Posted: Thu Jul 29, 2010 9:21 am Post subject: Best HowTo? Composing multicluster/multisuite maven applications |
|
|
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... - 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.
|
Posted: Thu Jul 29, 2010 9:49 am Post subject: [platform-dev] Re: Best HowTo? Composing multicluster/multisuite maven applications |
|
|
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
|
Posted: Fri Jul 30, 2010 12:36 pm Post subject: Re: [platform-dev] Re: Best HowTo? Composing multicluster/multisuite maven applications |
|
|
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 |
|
 |
|
|
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
|
|