maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand HS <anan...@gmail.com>
Subject Re: A question on using finalNames
Date Fri, 06 Nov 2009 00:12:22 GMT
>
> Hi,
> I have a strange requirement for which I need to some guidance.
>
> I have a multi module project ( ear, jar, ejb, war1, war2 ) that are
> controlled by a root pom.
> I also have several resource configurations that need to contain the name
> to the artifacts ( jar, ejb ) . Examples are jboss-service.xml etc..
>
> As a way to always work with constant jar file names in configurations, we
> came with an idea of using finalNames for artifacts like jar and ejb
> modules.
> This works all fine if the build process is controlled using root pom.
>
> However, once I go into the ear module ( which contains pom to package all
> other artifacts like ejb, jar , war etc. ) and package the ear, it does not
> consider the artifacts with their finalnames but reads the artifacts from my
> local repository.
>
> This now poses problem because my configurations that I mentioned before do
> not work because they use finalNames and the ear generated through the ear
> pom xml contains artifacts with 'versions' from local repository.
>
> I am not quite sure about a good practice to followed in such scnearios,
> but my question is mainly around the area of how to create my final artifact
> ( the ear ) to work seamlessly regardless of whether its created from root
> pom or the pom for the ear. A secondary requirement is the the
> configurations to refer to the artifacts by name should also work
> seamlessly.
>
> I hope Im clear. Please let me know if more information is required.
>
> Thanks for all your suggestions.
>
> Thanks,
> Anand
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message