You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Pazmiño, Iván Andrés <ia...@sri.ad> on 2010/12/21 22:20:31 UTC

Multimodule ear project

Hello,

I'm trying to move an existing project to maven2 but having some
problems. The currently produced project's artifact is an ear and it
must remain that way. The new project I would like to make it
modularized in three: one for the ejb, other for persistence and the
last module for a wui.

The problem is the parent project can't be packaged as an ear, but as a
pom. Then, how do you setup a multimodule ear project? 

I also would like these modules to look like three different projects in
eclipse IDE, but being one project in the directory structure so it's
one also when commited to the scm. But this is bonus.

Thanks,
IP

"Clausula de Confidencialidad: La información contenida en el presente mensaje es confidencial, está dirigida 
exclusivamente a su destinatario y no puede ser vinculante. El Servicio de Rentas Internas no se 
responsabiliza por su uso y deja expresa constancia que en los registros de la Institución consta la 
información originalmente enviada. Este mensaje está protegido por la Ley de Propiedad Intelectual, Ley de 
Comercio Electrónico, Firmas y Mensajes de datos, reglamentos y acuerdos internacionales relacionados. Si 
usted no es el destinatario de este mensaje, recomendamos su eliminación inmediata. La distribución o copia 
del mismo, está prohibida y será sancionada de acuerdo al Código Penal y demás normas aplicables. La 
transmisión de información por correo electrónico, no garantiza que la misma sea segura o esté libre de error, 
por consiguiente, se recomienda su verificación.Toda solicitud de información requerida de manera oficial al 
SRI debe ser ingresada por Secretaría General y dirigida a la máxima autoridad de la Institución, conforme a 
la Ley y demás normas vigentes."

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Multimodule ear project

Posted by Ron Wheeler <rw...@artifact-software.com>.
On 21/12/2010 4:20 PM, Pazmiño Mazón, Iván Andrés wrote:
> Hello,
>
> I'm trying to move an existing project to maven2 but having some
> problems. The currently produced project's artifact is an ear and it
> must remain that way. The new project I would like to make it
> modularized in three: one for the ejb, other for persistence and the
> last module for a wui.
>
Don't stop at three unless it is a very tiny app. Try to construct your 
application in an SOA with services supported by utilities.
> The problem is the parent project can't be packaged as an ear, but as a
> pom. Then, how do you setup a multimodule ear project?
>

> I also would like these modules to look like three different projects in
> eclipse IDE, but being one project in the directory structure so it's
> one also when commited to the scm. But this is bonus.
It is not a bonus.
You should be heading towards smaller projects that are functionally 
independent so that changes in functionality impact only small projects 
that can be easily modified and tested.
It also makes it easier for a developer to pick up a project and 
understand it.
Eclipse and Maven will assemble the artifacts that you need from repos 
of compiled artifacts rather than from source code.
Once you have built and tested a version of a utility and installed it 
in your local or corporate repository, you do not want the source code 
cluttering up your Eclipse workspace.

Ron

> Thanks,
> IP
>
> "Clausula de Confidencialidad: La información contenida en el presente mensaje es confidencial, está dirigida
> exclusivamente a su destinatario y no puede ser vinculante. El Servicio de Rentas Internas no se
> responsabiliza por su uso y deja expresa constancia que en los registros de la Institución consta la
> información originalmente enviada. Este mensaje está protegido por la Ley de Propiedad Intelectual, Ley de
> Comercio Electrónico, Firmas y Mensajes de datos, reglamentos y acuerdos internacionales relacionados. Si
> usted no es el destinatario de este mensaje, recomendamos su eliminación inmediata. La distribución o copia
> del mismo, está prohibida y será sancionada de acuerdo al Código Penal y demás normas aplicables. La
> transmisión de información por correo electrónico, no garantiza que la misma sea segura o esté libre de error,
> por consiguiente, se recomienda su verificación.Toda solicitud de información requerida de manera oficial al
> SRI debe ser ingresada por Secretaría General y dirigida a la máxima autoridad de la Institución, conforme a
> la Ley y demás normas vigentes."
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Multimodule ear project

Posted by Anders Hammar <an...@hammar.net>.
Just to keep the naming correct. You create an aggregating pom, not a parent
pom. That aggregating pom has all the modules specified.
(It can be the parent as well, but that's a different thing.)

/Anders

2010/12/21 Thomas Sundberg <ts...@kth.se>

> Hi!
>
> Divide your project into four parts. Three jars (ejb, persistance,
> wui) and one ear module, have the ear module depend on the other three
> modules. And tie the sack together with a parent pom module.
>
> /Thomas
>
> 2010/12/21 Pazmiño Mazón, Iván Andrés <ia...@sri.ad>:
> > Hello,
> >
> > I'm trying to move an existing project to maven2 but having some
> > problems. The currently produced project's artifact is an ear and it
> > must remain that way. The new project I would like to make it
> > modularized in three: one for the ejb, other for persistence and the
> > last module for a wui.
> >
> > The problem is the parent project can't be packaged as an ear, but as a
> > pom. Then, how do you setup a multimodule ear project?
> >
> > I also would like these modules to look like three different projects in
> > eclipse IDE, but being one project in the directory structure so it's
> > one also when commited to the scm. But this is bonus.
> >
> > Thanks,
> > IP
> >
> > "Clausula de Confidencialidad: La información contenida en el presente
> mensaje es confidencial, está dirigida
> > exclusivamente a su destinatario y no puede ser vinculante. El Servicio
> de Rentas Internas no se
> > responsabiliza por su uso y deja expresa constancia que en los registros
> de la Institución consta la
> > información originalmente enviada. Este mensaje está protegido por la Ley
> de Propiedad Intelectual, Ley de
> > Comercio Electrónico, Firmas y Mensajes de datos, reglamentos y acuerdos
> internacionales relacionados. Si
> > usted no es el destinatario de este mensaje, recomendamos su eliminación
> inmediata. La distribución o copia
> > del mismo, está prohibida y será sancionada de acuerdo al Código Penal y
> demás normas aplicables. La
> > transmisión de información por correo electrónico, no garantiza que la
> misma sea segura o esté libre de error,
> > por consiguiente, se recomienda su verificación.Toda solicitud de
> información requerida de manera oficial al
> > SRI debe ser ingresada por Secretaría General y dirigida a la máxima
> autoridad de la Institución, conforme a
> > la Ley y demás normas vigentes."
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
>
> --
> Thomas Sundberg
> M. Sc. in Computer Science
>
> Mobile: +46 70 767 33 15
> Blog: http://thomassundberg.wordpress.com/
> Twitter: @thomassundberg
>
> Better software through faster feedback
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Multimodule ear project

Posted by Ron Wheeler <rw...@artifact-software.com>.
On 21/12/2010 5:21 PM, Thomas Sundberg wrote:
> Hi!
>
> Divide your project into four parts. Three jars (ejb, persistance,
> wui) and one ear module, have the ear module depend on the other three
> modules. And tie the sack together with a parent pom module.
Good start but keep decomposing the 3 jars.

Ron

> /Thomas
>
> 2010/12/21 Pazmiño Mazón, Iván Andrés<ia...@sri.ad>:
>> Hello,
>>
>> I'm trying to move an existing project to maven2 but having some
>> problems. The currently produced project's artifact is an ear and it
>> must remain that way. The new project I would like to make it
>> modularized in three: one for the ejb, other for persistence and the
>> last module for a wui.
>>
>> The problem is the parent project can't be packaged as an ear, but as a
>> pom. Then, how do you setup a multimodule ear project?
>>
>> I also would like these modules to look like three different projects in
>> eclipse IDE, but being one project in the directory structure so it's
>> one also when commited to the scm. But this is bonus.
>>
>> Thanks,
>> IP
>>
>> "Clausula de Confidencialidad: La información contenida en el presente mensaje es confidencial, está dirigida
>> exclusivamente a su destinatario y no puede ser vinculante. El Servicio de Rentas Internas no se
>> responsabiliza por su uso y deja expresa constancia que en los registros de la Institución consta la
>> información originalmente enviada. Este mensaje está protegido por la Ley de Propiedad Intelectual, Ley de
>> Comercio Electrónico, Firmas y Mensajes de datos, reglamentos y acuerdos internacionales relacionados. Si
>> usted no es el destinatario de este mensaje, recomendamos su eliminación inmediata. La distribución o copia
>> del mismo, está prohibida y será sancionada de acuerdo al Código Penal y demás normas aplicables. La
>> transmisión de información por correo electrónico, no garantiza que la misma sea segura o esté libre de error,
>> por consiguiente, se recomienda su verificación.Toda solicitud de información requerida de manera oficial al
>> SRI debe ser ingresada por Secretaría General y dirigida a la máxima autoridad de la Institución, conforme a
>> la Ley y demás normas vigentes."
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Multimodule ear project

Posted by Thomas Sundberg <ts...@kth.se>.
Hi!

Divide your project into four parts. Three jars (ejb, persistance,
wui) and one ear module, have the ear module depend on the other three
modules. And tie the sack together with a parent pom module.

/Thomas

2010/12/21 Pazmiño Mazón, Iván Andrés <ia...@sri.ad>:
> Hello,
>
> I'm trying to move an existing project to maven2 but having some
> problems. The currently produced project's artifact is an ear and it
> must remain that way. The new project I would like to make it
> modularized in three: one for the ejb, other for persistence and the
> last module for a wui.
>
> The problem is the parent project can't be packaged as an ear, but as a
> pom. Then, how do you setup a multimodule ear project?
>
> I also would like these modules to look like three different projects in
> eclipse IDE, but being one project in the directory structure so it's
> one also when commited to the scm. But this is bonus.
>
> Thanks,
> IP
>
> "Clausula de Confidencialidad: La información contenida en el presente mensaje es confidencial, está dirigida
> exclusivamente a su destinatario y no puede ser vinculante. El Servicio de Rentas Internas no se
> responsabiliza por su uso y deja expresa constancia que en los registros de la Institución consta la
> información originalmente enviada. Este mensaje está protegido por la Ley de Propiedad Intelectual, Ley de
> Comercio Electrónico, Firmas y Mensajes de datos, reglamentos y acuerdos internacionales relacionados. Si
> usted no es el destinatario de este mensaje, recomendamos su eliminación inmediata. La distribución o copia
> del mismo, está prohibida y será sancionada de acuerdo al Código Penal y demás normas aplicables. La
> transmisión de información por correo electrónico, no garantiza que la misma sea segura o esté libre de error,
> por consiguiente, se recomienda su verificación.Toda solicitud de información requerida de manera oficial al
> SRI debe ser ingresada por Secretaría General y dirigida a la máxima autoridad de la Institución, conforme a
> la Ley y demás normas vigentes."
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Thomas Sundberg
M. Sc. in Computer Science

Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Twitter: @thomassundberg

Better software through faster feedback

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org