-
Notifications
You must be signed in to change notification settings - Fork 727
Update Maven dependencies #5599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -132,28 +132,28 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <artifactItem> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <groupId>commons-collections</groupId> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <artifactId>commons-collections</artifactId> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <version>3.2.1</version> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <version>3.2.2</version> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <classifier>sources</classifier> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <outputDirectory>${project.build.directory}/test-projects/commons-collections-3.2.1/src</outputDirectory> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </artifactItem> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <artifactItem> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <groupId>commons-collections</groupId> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <artifactId>commons-collections</artifactId> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <version>3.2.1</version> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <version>3.2.2</version> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <outputDirectory>${project.build.directory}/test-projects/commons-collections-3.2.1/bin</outputDirectory> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </artifactItem> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- struts-core --> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <artifactItem> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <groupId>org.apache.struts</groupId> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <artifactId>struts-core</artifactId> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <version>1.3.9</version> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <version>1.3.10</version> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <classifier>sources</classifier> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <outputDirectory>${project.build.directory}/test-projects/struts-core-1.3.9/src</outputDirectory> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </artifactItem> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <artifactItem> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <groupId>org.apache.struts</groupId> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <artifactId>struts-core</artifactId> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <version>1.3.9</version> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <version>1.3.10</version> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <outputDirectory>${project.build.directory}/test-projects/struts-core-1.3.9/bin</outputDirectory> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </artifactItem> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
146
to
158
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same issue as the commons-collections block above: the artifact version was bumped to 1.3.10 but both Fix:
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </artifactItems> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The artifact version was bumped from 3.2.1 to 3.2.2, but both
outputDirectorypaths still embedcommons-collections-3.2.1. The test classCommonsCollectionsTest.java:27resolvestarget/test-projects/commons-collections-3.2.1as itsPROJECT_DIRand asserts hard-coded metric counts (412 classes, 26 323 ncloc, …) that were calibrated against 3.2.1 sources.At runtime, Maven will download the 3.2.2 sources/jar into the old directory name, so the test runs, but it analyses 3.2.2 code while expecting 3.2.1 numbers. If the source changed between those patch releases (commons-collections 3.2.2 was a security patch that did touch source files), the assertions will fail. At minimum, the directory name misrepresents what version is actually being tested.
Fix:
commons-collections-3.2.2(suggestion below).CommonsCollectionsTest.java:27to referencecommons-collections-3.2.2.