Nah, profiles all need an ID regardless. The activation element allows
profiles to be automatically activated.

On 29 September 2014 10:40, Gary Gregory <[email protected]> wrote:

> On Mon, Sep 29, 2014 at 10:31 AM, Matt Sicker <[email protected]> wrote:
>
>> This could use a profile id like jdk8.
>>
>
> But does that mean that you then need to invoke it specifically with the
> -P option?
>
> Gary
>
>
>>
>> ---------- Forwarded message ----------
>> From: <[email protected]>
>> Date: 29 September 2014 09:28
>> Subject: git commit: Use a Maven profile to activate FindBugs 3.0.0 only
>> on Java 8.
>> To: [email protected]
>>
>>
>> Repository: logging-log4j2
>> Updated Branches:
>>   refs/heads/master 1201fa3d6 -> 630aea837
>>
>>
>> Use a Maven profile to activate FindBugs 3.0.0 only on Java 8.
>>
>> Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
>> Commit:
>> http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/630aea83
>> Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/630aea83
>> Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/630aea83
>>
>> Branch: refs/heads/master
>> Commit: 630aea83739fed055ccb07f1e50c17f9a7fc0921
>> Parents: 1201fa3
>> Author: Gary Gregory <[email protected]>
>> Authored: Mon Sep 29 10:28:47 2014 -0400
>> Committer: Gary Gregory <[email protected]>
>> Committed: Mon Sep 29 10:28:47 2014 -0400
>>
>> ----------------------------------------------------------------------
>>  pom.xml | 8 ++++++++
>>  1 file changed, 8 insertions(+)
>> ----------------------------------------------------------------------
>>
>>
>>
>> http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/630aea83/pom.xml
>> ----------------------------------------------------------------------
>> diff --git a/pom.xml b/pom.xml
>> index e710812..a9024cf 100644
>> --- a/pom.xml
>> +++ b/pom.xml
>> @@ -1275,5 +1275,13 @@
>>          </plugins>
>>        </build>
>>      </profile>
>> +    <profile>
>> +      <activation>
>> +        <jdk>[1.8,)</jdk>
>> +      </activation>
>> +      <properties>
>> +        <findbugs.plugin.version>3.0.0</findbugs.plugin.version>
>> +      </properties>
>> +    </profile>
>>    </profiles>
>>  </project>
>>
>>
>>
>>
>> --
>> Matt Sicker <[email protected]>
>>
>
>
>
> --
> E-Mail: [email protected] | [email protected]
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
Matt Sicker <[email protected]>

Reply via email to