maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manfred Moser" <manf...@mosabuam.com>
Subject Re: profile and compiler to include the source
Date Fri, 07 Dec 2012 07:32:28 GMT
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 <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
>>
>


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


Mime
View raw message