Totally agree... this becomes unmanageable and also means that an artifact deployed to a repository server with the same coordinates (GAV) will have different content depending on what profile was activated during the build..
Bad idea... On Thu, December 6, 2012 10:30 pm, Anders Hammar wrote: > 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 <[email protected]> > 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 >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
