Skip to content

Commit

Permalink
Add auto-generated plugin reference to the 2.x site (#2404)
Browse files Browse the repository at this point in the history
  • Loading branch information
vy authored Mar 26, 2024
1 parent 21b283f commit 2ae8089
Show file tree
Hide file tree
Showing 50 changed files with 580 additions and 3,697 deletions.
1 change: 1 addition & 0 deletions log4j-1.2-api/.log4j-plugin-processing-activator
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file is here to activate the `plugin-processing` Maven profile.
28 changes: 6 additions & 22 deletions log4j-1.2-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,21 @@
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j</artifactId>
<version>${revision}</version>
<relativePath>../log4j-parent</relativePath>
</parent>

<artifactId>log4j-1.2-api</artifactId>
<packaging>jar</packaging>

<name>Apache Log4j 1.x Compatibility API</name>
<description>The Apache Log4j 1.x Compatibility API</description>

<properties>
<module.name>org.apache.log4j</module.name>

Expand All @@ -45,6 +49,7 @@
<Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
<!-- we have an `bnd.bnd` file to override the parent's defaults -->
</properties>

<dependencies>
<!-- Used for JMS appenders (needs an implementation of course) -->
<dependency>
Expand Down Expand Up @@ -138,27 +143,6 @@
</dependency>
</dependencies>

<build>
<plugins>

<!-- Enable Log4j plugin processing -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths combine.children="append">
<path>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${project.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>

</plugins>
</build>

<profiles>

<!-- Fixes incompatible with Java 8 -->
Expand Down
2 changes: 1 addition & 1 deletion log4j-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<name>Apache Log4j API</name>
<description>The Apache Log4j API</description>
<properties>
<javadoc.skip>false</javadoc.skip>
<maven.javadoc.skip>false</maven.javadoc.skip>

<!--
~ OSGi and JPMS options
Expand Down
1 change: 1 addition & 0 deletions log4j-cassandra/.log4j-plugin-processing-activator
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file is here to activate the `plugin-processing` Maven profile.
26 changes: 4 additions & 22 deletions log4j-cassandra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j</artifactId>
Expand All @@ -25,8 +27,10 @@
</parent>

<artifactId>log4j-cassandra</artifactId>

<name>Apache Log4j Cassandra</name>
<description>Cassandra appender for Log4j.</description>

<properties>

<!--
Expand Down Expand Up @@ -108,26 +112,4 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<!--
~ Modules that contain `log4j-core` plugins, must be compiled with:
~
~ org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
-->
<annotationProcessorPaths combine.children="append">
<path>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${project.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
1 change: 1 addition & 0 deletions log4j-core-java9/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<properties>
<maven.compiler.release>9</maven.compiler.release>
<maven.deploy.skip>true</maven.deploy.skip>
<sign.skip>true</sign.skip>
</properties>
<dependencies>
<!-- Naturally, all implementations require the log4j-api JAR -->
Expand Down
1 change: 1 addition & 0 deletions log4j-core-test/.log4j-plugin-processing-activator
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file is here to activate the `plugin-processing` Maven profile.
20 changes: 4 additions & 16 deletions log4j-core-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j</artifactId>
Expand All @@ -25,9 +27,10 @@
</parent>

<artifactId>log4j-core-test</artifactId>
<packaging>jar</packaging>

<name>Apache Log4j Core Tests</name>
<description>The Apache Log4j Implementation Tests</description>

<properties>
<!-- Ignore less important (high rank) bugs for test artifacts -->
<spotbugs.maxRank>9</spotbugs.maxRank>
Expand Down Expand Up @@ -351,21 +354,6 @@
<build>
<plugins>

<!-- Enable Log4j plugin processing -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths combine.children="append">
<path>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${project.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down
Loading

0 comments on commit 2ae8089

Please sign in to comment.