Robert Franz
Robert Franz

Reputation: 543

OS-Specific Maven Profile is always activated

I'm trying to define a profile that is activated only in case two conditions fit:

I tried to define it that way, but in case the operating system matches the profile is activated, even the folder does not exist. But I want to run some plugins in case the folder exists, in case a binary is required the operating system must match.

Thanks in advance..

Upvotes: 2

Views: 446

Answers (1)

noahlz
noahlz

Reputation: 10311

According to the Maven JIRA, this is an open issue: http://jira.codehaus.org/browse/MNG-4565

The comments for the above-linked issue point to a Maven extension that provides the functionality you are looking for: https://github.com/johnjcool/and-activation-profile-selector

Upvotes: 3

Related Questions