Skip to content

Commit 0c4524f

Browse files
committed
Activate bom profile in log4j-bom
Adds a `.logging-parent-bom-activator` file to activate the `bom` profile.
1 parent c8ca07f commit 0c4524f

File tree

2 files changed

+16
-39
lines changed

2 files changed

+16
-39
lines changed

.logging-parent-bom-activator

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
##
16+
This file activates the `flatten-bom` profile.

pom.xml

-39
Original file line numberDiff line numberDiff line change
@@ -578,45 +578,6 @@
578578

579579
<plugins>
580580

581-
<!-- Enable BOM flattening -->
582-
<plugin>
583-
<groupId>org.codehaus.mojo</groupId>
584-
<artifactId>flatten-maven-plugin</artifactId>
585-
<version>${flatten-maven-plugin.version}</version>
586-
<executions>
587-
<execution>
588-
<id>flatten-revision</id>
589-
<configuration>
590-
<!--
591-
~ Flatten Maven Plugin removes the `child.project.url.inherit.append.path` attribute on this POM.
592-
~
593-
~ This causes a difference between the effective model of children built on this POM
594-
~ and those built on the flattened version.
595-
~
596-
~ Until https://github.com/mojohaus/flatten-maven-plugin/issues/412 we must expand &lt;url&gt;
597-
-->
598-
<pomElements>
599-
<url>expand</url>
600-
</pomElements>
601-
</configuration>
602-
</execution>
603-
<execution>
604-
<id>flatten-bom</id>
605-
<goals>
606-
<goal>flatten</goal>
607-
</goals>
608-
<phase>process-resources</phase>
609-
<inherited>false</inherited>
610-
<configuration>
611-
<pomElements>
612-
<!-- CycloneDX Maven Plugin uses this data -->
613-
<distributionManagement>keep</distributionManagement>
614-
</pomElements>
615-
</configuration>
616-
</execution>
617-
</executions>
618-
</plugin>
619-
620581
<!-- Apache RAT (Release Audit Tool) check to verify licenses.
621582
`apache-rat-plugin`: https://creadur.apache.org/rat/apache-rat-plugin/
622583
Release Audit Tool: https://creadur.apache.org/rat/index.html -->

0 commit comments

Comments
 (0)