Skip to content

Conversation

JensGroenborgAndersen
Copy link

As discussed in #913 (comment), except the user tag is not limited to the first entry. A user tag will however disable the optimize option

@JensGroenborgAndersen JensGroenborgAndersen force-pushed the master branch 4 times, most recently from 3ecaead to 355f7b4 Compare March 19, 2024 14:07
As discussed in fabric8io#913 (comment), except the user tag is not limited to the first entry.
A user tag will however disable the optimize option.

Signed-off-by: Jens Andersen <[email protected]>
Signed-off-by: Jens Andersen <[email protected]>
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
57.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@rohanKanojia rohanKanojia self-requested a review April 24, 2024 10:36
@BeforeEach
void containerSetup() throws ComponentLookupException, SecDispatcherException {
Mockito.lenient().when(container.lookup(SecDispatcher.ROLE, "maven")).thenReturn(secDispatcher);
// Mockito.lenient().when(container.lookup(SecDispatcher.ROLE, "maven")).thenReturn(secDispatcher);
Copy link
Member

@rohanKanojia rohanKanojia May 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this mockito expectation commented out?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh i guess I forgot about those. As i remember, it happened because the Security dispatcher stuff doesn't work with never versions of maven. I guess it should be enabled, so that whoever knows how it is supposed to work can make the appropriate fixes.

// throw new MojoExecutionException("Error looking security dispatcher",e);
// } catch (ReflectiveOperationException e) {
// throw new MojoExecutionException("Cannot decrypt password: " + e.getCause(),e);
// }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is used for decrypting password from maven settings.xml . Why is this commented out? Disabling this might cause problems for users who are using encryption with maven

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Signed-off-by: Jens Andersen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants