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

Plugin validation issues (Maven 3.9) #102

Closed
AB-xdev opened this issue Sep 14, 2023 · 6 comments
Closed

Plugin validation issues (Maven 3.9) #102

AB-xdev opened this issue Sep 14, 2023 · 6 comments
Assignees
Milestone

Comments

@AB-xdev
Copy link

AB-xdev commented Sep 14, 2023

When using this plugin with Maven 3.9+ the following warning is displayed:

[WARNING] Plugin validation issues were detected in 1 plugin(s)
[WARNING] 
[WARNING]  * org.bsc.maven:maven-processor-plugin:4.5
[WARNING] 
[WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]

when running with -Dmaven.plugin.validation=VERBOSE the following is displayed:

...
[WARNING]   Plugin issue(s):
[WARNING]    * Plugin mixes multiple Maven versions: [3.5.4, 3.6.0]
[WARNING]    * Plugin should declare these Maven artifacts in `provided` scope: [org.apache.maven:maven-plugin-api:3.6.0, org.apache.maven:maven-builder-support:3.5.4, org.apache.maven:maven-model:3.6.0, org.apache.maven:maven-model-builder:3.5.4, org.apache.maven:maven-core:3.5.4, org.apache.maven:maven-repository-metadata:3.5.4, org.apache.maven:maven-resolver-provider:3.5.4, org.apache.maven:maven-settings:3.5.4, org.apache.maven:maven-artifact:3.6.0, org.apache.maven:maven-settings-builder:3.5.4]
...
@bsorrentino
Copy link
Owner

Hi @AB-xdev thanks for feedbacks

I'll check it soon

@bsorrentino bsorrentino self-assigned this Sep 15, 2023
@bsorrentino bsorrentino added this to the 5.0 milestone Sep 15, 2023
bsorrentino added a commit that referenced this issue Sep 15, 2023
@bsorrentino
Copy link
Owner

Hi @AB-xdev

I've deployed a 5.0-SNAPSHOT with fix. Please take the opportunity to try it and let me know the result 🙏

@AB-xdev
Copy link
Author

AB-xdev commented Sep 18, 2023

I checked out the new version using

	<pluginRepositories>
		<pluginRepository>
			<id>sonatype</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
		</pluginRepository>
	</pluginRepositories>

and it still complains about problems:

[WARNING]   Plugin issue(s):
[WARNING]    * Plugin should declare these Maven artifacts in `provided` scope: [org.apache.maven:maven-core:3.6.0, org.apache.maven:maven-plugin-api:3.6.0, org.apache.maven:maven-model-builder:3.6.0, org.apache.maven:maven-model:3.6.0, org.apache.maven:maven-builder-support:3.6.0, org.apache.maven:maven-settings:3.6.0, org.apache.maven:maven-resolver-provider:3.6.0, org.apache.maven:maven-settings-builder:3.6.0, org.apache.maven:maven-repository-metadata:3.6.0, org.apache.maven:maven-artifact:3.6.0]
[WARNING] 

bsorrentino added a commit that referenced this issue Sep 19, 2023
@bsorrentino
Copy link
Owner

HI @AB-xdev thanks for feedback

I've deployed another 5.0-SNAPSHOT . Please take the opportunity to try it and let me know the result 🙏

@AB-xdev
Copy link
Author

AB-xdev commented Sep 20, 2023

I've deployed another 5.0-SNAPSHOT . Please take the opportunity to try it and let me know the result 🙏

Checked it again (Also consider checking it yourself. You just have to install Maven 3.9+ - don't wait for me ;)):

[WARNING]   Plugin issue(s):
[WARNING]    * Plugin should declare these Maven artifacts in `provided` scope: [org.apache.maven:maven-artifact:3.6.0]

@bsorrentino
Copy link
Owner

Hi @AB-xdev

I just test it using dependency:tree command and I missed switching scope for org.apache.maven.plugin-tools:maven-plugin-annotations:3.6.0 to provided

I ask for your test for double check and seeing thread above I was right 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants