Skip to content
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

[MSHADE-223] - Endless processing with promoteTransitiveDependencies #15

Closed
wants to merge 1 commit into from
Closed

Conversation

dmitri-gb
Copy link
Contributor

@dmitri-gb dmitri-gb commented Feb 1, 2019

Fix the endless processing that was caused by not checking the classifier of the dependencies when adding excludes.

I opted for just comparing the results of the getId method, as it already contains all the necessary info (groupId + artifactId + type + classifier). The previous check dep.getType() == null seems unnecessary, as the type is generally never null.

I also added an integration test that reproduces the issue. It includes an invoker.properties file that sets invoker.timeoutInSeconds=60, because without the fix the issue manifests as a non-terminating build.

PS. This fix likely also addresses the complaints that have been filed under MSHADE-148 after its closure.

Fix the endless processing that was caused by not checking the
classifier of the dependencies when adding excludes.
@xhumanoid
Copy link

@khmarbaise @rmannibucau

Hi, any updates when it will merged?

without this fix we have infinity loops with 2 artifact but different classifiers

        <dependency>
            <groupId>groupId</groupId>
            <artifactId>artifactId</artifactId>
            <version>0.0.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>groupId</groupId>
            <artifactId>artifactId</artifactId>
            <version>0.0.1</version>
            <classifier>tests</classifier>
            <scope>test</scope>
        </dependency>

@rmannibucau
Copy link
Contributor

LGTM, i dont have a computer handy but no blocker to merge it in the week for me

@rfscholte
Copy link
Contributor

Fixed with 038d807 and be330db
Thanks for the PR!

@rfscholte rfscholte closed this Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants