Skip to content

Conversation

@msimacek
Copy link
Contributor

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

I am not an expert of Plexus, so my I am just giving my 2 cents.

The refactor looks good to me.

I left a comment about the unit tests, we can add some more cases in order to have better coverage and expecially in order to be sure that we are testing what we think we are testing

descriptor.setArtifactId( "maven-it-plugin" );
List<String> errors = new ArrayList<>();
mavenPluginValidator.validate( plugin, descriptor, errors );
assertFalse( errors.isEmpty() );
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we should test more the "errors" result, it is not clear that we are catching the error we are generating with the lines above.
We have three validations which can fire an error, we should test every of them.

@michael-o
Copy link
Member

Willing to merge if someone can extend the tests.

@msimacek
Copy link
Contributor Author

msimacek commented Aug 6, 2019

Hi, I currently don't have time to continue with this PR, but @mizdebsk will take it over and complete the tests. Please be patient.

@mizdebsk
Copy link

mizdebsk commented Aug 6, 2019

Ack, I will take over this PR from @msimacek - rebase it and extend unit tests.

@michael-o
Copy link
Member

Thanks guys, no need to rush. Will just wait.

@rfscholte
Copy link
Contributor

hmm, we need to rethink this a bit, I'm not sure if passing a list to get the errors is the preferred way. Also I would consider to use a Problem or something similar instead, so we can provide more detailed information.

michael-o pushed a commit to Dufgui/maven that referenced this pull request May 2, 2021
Modified by: Guillaume Dufour <guillaume.duff@gmail.com>

This closes apache#134 and closes apache#470
@asfgit asfgit closed this in 83e3664 May 3, 2021
pzygielo pushed a commit to pzygielo/maven that referenced this pull request Jan 4, 2023
…#134) issue apache#131 apache#132

* fix resolution order in reverse issue in <flattenDependencyMode>all</flattenDependencyMode>
* fix missing dependency in flattened pom due to <classifier> issue in <flattenDependencyMode>all</flattenDependencyMode>
* remove unused imports
* add more tests
@jira-importer
Copy link

Resolve #7576

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.

6 participants