-
Notifications
You must be signed in to change notification settings - Fork 459
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
Maven can't locate this plugin due to "org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'spotless'" #520
Comments
I have the same issue. It'll be much more handy if people can use the shorter version for this plugin otherwise it will just fizzle out as one of those "recommendations" |
This might be a dumb question, but I'm not great with maven. At the very top of our plugin-maven readme, we've got a little plugin block to copy, and it looks like you copied it exactly right. We also have an example command line I don't understand how having a Regardless of whether I understand the problem or not, we're happy to take a PR to fix/improve it. Here is our POM template: And here is how we populate and run it: spotless/plugin-maven/build.gradle Lines 139 to 180 in e870e78
I'm happy to help with any gradle integration issues, but I don't know anything about the maven part. |
Closing due to inactivity and inability to replicate. Happy to reopen with an open source repo that demonstrates the issue. |
I have the same issue. $ mvn -X spotless:check
...
[DEBUG] Could not find metadata com.diffplug.spotless/maven-metadata.xml in central (https://repo.maven.apache.org/maven2)
......
......
[ERROR] No plugin found for prefix 'spotless' in the current project and in the plugin groups [com.diffplug.spotless, com.github.spotbugs, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/luowentao/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1] I'm not familiar with building a maven plugin neither. But I do find something, I guess. As a contrast, there are two other pluginGroups , which have
<metadata>
<plugins>
<plugin>
<name>SpotBugs Maven Plugin</name>
<prefix>spotbugs</prefix> <!-- HERE -->
<artifactId>spotbugs-maven-plugin</artifactId>
</plugin>
</plugins>
</metadata> So, maybe there is something go wrong during DEPLOY phrase, or maybe maven-publish error? |
👋 It is unfortunately still an issue. As @vlaw said the repository is missing maven-metadata file (another example for According to the documentation, this file at group level should be automatically uploaded when using "maven-plugin" as packaging type. Furthermore, it says here that the Gradle "maven-publish" plugin seems to ignore the packaging type. I hope this can help, it would be really nice to be able to simply call |
For anyone searching to resolve the same |
The text was updated successfully, but these errors were encountered: