maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <and...@hammar.net>
Subject Re: profile and compiler to include the source
Date Fri, 07 Dec 2012 06:30:45 GMT
I would like to state that this is not a good usage of profiles. You should
create four different Maven projects.

/Anders


On Fri, Dec 7, 2012 at 2:08 AM, Ashish Gupta <aguptamobile@gmail.com> wrote:

> Hi,
>
> I have 4 profiles. There are four directories in the source tree
> corresponding to each profile. I would like to compile source code under
> these directories only when build is running under the selected profile.
>
> I have tried enumerating the excludes for other 3 directories from one
> profile and then using <excludes> for these 3 defined exclude directories.
> This works but it requires unnecessary enumeration of all the other
> directories from the profiles. I really want to exclude
> all the 4 directories by default and include only the directory for the
> selected profile.
>
> Any suggestion.
>
> Thanks
> Ashish
>

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