Skip to content

Commit fb9a65f

Browse files
authored
Merge pull request #187 from AuthorizeNet/log4j-fix
Log4j fix
2 parents 28bd284 + c58f2bc commit fb9a65f

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
[![Code Climate](https://codeclimate.com/github/AuthorizeNet/sdk-java/badges/gpa.svg)](https://codeclimate.com/github/AuthorizeNet/sdk-java)
55
[![Maven Central](https://img.shields.io/maven-central/v/net.authorize/anet-java-sdk.svg?style=flat)](http://mvnrepository.com/artifact/net.authorize/anet-java-sdk)
66

7+
## IMPORTANT NOTE:
8+
9+
***Due to restrictions on Log4j2 v2.15.0, masking/hiding of sensitive data will not work for the time being.***
10+
11+
***We will work to include it again in future versions.***
12+
713

814
## Requirements
915
* JDK 1.5.0 to JDK 1.8.0

pom.xml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,28 @@
6161
<dependency>
6262
<groupId>org.apache.logging.log4j</groupId>
6363
<artifactId>log4j</artifactId>
64-
<version>2.13.3</version>
64+
<version>${log4j.version}</version>
6565
<type>pom</type>
6666
</dependency>
6767
<dependency>
6868
<groupId>org.apache.logging.log4j</groupId>
6969
<artifactId>log4j-jcl</artifactId>
70-
<version>2.13.3</version>
70+
<version>${log4j.version}</version>
7171
</dependency>
7272
<dependency>
7373
<groupId>org.apache.logging.log4j</groupId>
7474
<artifactId>log4j-api</artifactId>
75-
<version>2.13.3</version>
75+
<version>${log4j.version}</version>
7676
</dependency>
7777
<dependency>
7878
<groupId>org.apache.logging.log4j</groupId>
7979
<artifactId>log4j-core</artifactId>
80-
<version>2.13.3</version>
80+
<version>${log4j.version}</version>
8181
</dependency>
8282
<dependency>
8383
<groupId>org.apache.logging.log4j</groupId>
8484
<artifactId>log4j-1.2-api</artifactId>
85-
<version>2.13.3</version>
85+
<version>${log4j.version}</version>
8686
</dependency>
8787
<!-- Log4j Dependencies -->
8888
<dependency>
@@ -117,6 +117,7 @@
117117
<maven.compile.target>1.5</maven.compile.target>
118118
<maven.compile.optimize>true</maven.compile.optimize>
119119
<maven.compile.deprecation>true</maven.compile.deprecation>
120+
<log4j.version>2.15.0</log4j.version>
120121
</properties>
121122
<build>
122123
<plugins>
@@ -173,6 +174,20 @@
173174
</execution>
174175
</executions>
175176
</plugin>
177+
<plugin>
178+
<artifactId>maven-dependency-plugin</artifactId>
179+
<executions>
180+
<execution>
181+
<phase>package</phase>
182+
<goals>
183+
<goal>copy-dependencies</goal>
184+
</goals>
185+
<configuration>
186+
<outputDirectory>${project.build.directory}/lib</outputDirectory>
187+
</configuration>
188+
</execution>
189+
</executions>
190+
</plugin>
176191
</plugins>
177192
<resources>
178193
<resource>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy