-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ which shows log4j 1.2.12 dependency. | |
This obsolete version of log4j is not part of runtime, but is found by security scan tools in the local maven cache. | ||
|
||
### Reproduce the problem | ||
* compile the project with clean maven cache. | ||
``` | ||
rm -rf ~/.m2/repository/* | ||
git clone https://github.com/jveverka/mvn-dependency-log4j.git | ||
|
@@ -20,6 +21,13 @@ mvn clean install | |
ls -la ~/.m2/repository/log4j/log4j/ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jveverka
Author
Owner
|
||
# log4j 1.2.12 is downloaded by maven dependency plugin | ||
``` | ||
* remove maven maven-dependency-plugin from [pom.xml](pom.xml) and compile the project with clean maven cache. | ||
``` | ||
rm -rf ~/.m2/repository/* | ||
mvn clean install | ||
ls -la ~/.m2/repository/log4j/log4j/ | ||
# log4j 1.2.12 is NOT downloaded by maven dependency plugin | ||
``` | ||
|
||
### Expected behaviour | ||
``mvn clean install`` does not cause download of ``log4j:log4j:1.2.12`` into local ``~/.m2/repository`` maven cache. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@jveverka What is your result for that command?