You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/site/markdown/maven-artifacts.md.vm
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -123,15 +123,14 @@ To build with [SBT](http://www.scala-sbt.org/), add the dependencies listed belo
123
123
124
124
#sbt(['log4j-api', 'log4j-core'])
125
125
126
-
$h2 Bill of Material
126
+
$h2 Maven Bill of Materials (BOM)
127
127
128
-
To keep your Log4j module versions in sync with each other, a
129
-
<abbr id="Bill of Material">BOM</abbr>
130
-
pom.xml file is provided for your convenience. To use this with
131
-
[Maven](https://maven.apache.org/), add the dependency listed below to your
132
-
`pom.xml`
133
-
file. When you specify the version identifier in this section, you don't have to specify the version in your
134
-
`<dependencies/>` section.
128
+
To keep your Log4j module versions aligned, a [Maven Bill of Materials (BOM) POM](https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#bill-of-materials-bom-poms) is provided for your convenience.
129
+
130
+
To use this with Maven, add the dependency listed below to your `pom.xml` file.
131
+
Note that the `<dependencyManagement>` nesting and the `<scope>import</scope>` instruction.
132
+
This will *import* all modules bundled with the associated Log4j release to your `dependencyManagement`.
133
+
As a result, you don't have to specify versions of the imported modules (`log4j-api`, `log4j-core`, etc.) while adding them using `<dependency>` elements.
135
134
136
135
`pom.xml`
137
136
@@ -188,6 +187,11 @@ dependencies {
188
187
}
189
188
```
190
189
190
+
$h2 CycloneDX Software Bill of Materials (SBOM)
191
+
192
+
Starting with version `2.22.0`, Log4j distributes [CyclenoDX Software Bill of Materials (SBOM)](https://cyclonedx.org/capabilities/sbom/) along with each deployed artifact.
193
+
This is streamlined by `logging-parent`, see https://logging.apache.org/logging-parent/latest/#cyclonedx-sbom[its website] for details.
194
+
191
195
$h2 Optional Components
192
196
193
197
Log4j 2.x contains several optional components that can be included in an application.
0 commit comments