All Maven plugins on reporting section marked red
已回答
Hi
I've spot the issue that all maven plugins on the reporting section are marked red. Here's an example pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<dependencyManagement>
<!-- Maven site build-->
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId> <!-- marked red -->
...
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <!-- marked red -->
<version>3.1.1</version>
...
</plugin>
</plugins>
</reporting>
</project>
The site build itself went well, the plugins could be found and downloaded.
What I tried so far but with no luck:
- ReImport all Maven project
- Activate Settings > Maven > Use plugin registry
- Update Repositories using Settings > Maven > Repositories > Update
- Invalidate Cache and Restart
Used versions:
- IntelliJ 2019.3.2 Ultimate
- Maven 3.6.3
Any ideas?
请先登录再写评论。
Hello,
Is it reproducible in new sample project? Please share idea.log ("Help | Show Log in...") after restarting IDE and running "Reimport" from Maven tool window.
Same problem here. Nothing in the idea.log. Reimport doesn't help.
@Robert can you build project in IDE (Build | Rebuild Project action) or/and from command line mvn clean install?
Does reopening the project help?
Try also changing the Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Maven home path: and/or Maven | Importing | JDK for importer: options.
Andrey Dernov
Yes, the project can be build without problems.
No, reopening the project does not help.
I'm currently using the bundled Maven version (3.6.3) which seems to be 'latest and greatest'. Not sure what changing this would achieve.
And just to clearify what we're talking about. ArtifactId as well as version are marked red.
Not sure whether it could be of interest, but we do have a custom (Plugin) Repository configured (followed by the default Maven one). It is pointing to a local Nexus instance. Works fine for 'normal' dependencies and plugins.
Do you mean you have this problem only for plugins located in your local nexus? How do you configure it in Maven settings? Do you select them in User settings file: (if it is not a default ~/.m2 location)? Do you use authentication or custom SSL certificate on the server?
It would sill be useful to check the idea.log after you restart the IDE and re-import maven project. For uploading you can use https://uploads.services.jetbrains.com or any file sharing service. Thanks.
Please also try to re-index this Maven repository in Maven | Repositories settings dialog.
All our plugins and dependencies are (eventually) located in our local Nexus, as it acts as a proxy/cache. So, no, local works fine, at least for build plugins. Reporting not so much.
Same goes for <Repositories>. Nope, we do not use a settings file. No custom authentication or certificate.
Idea log for restart and re-import: Upload id: 2020_12_09_BTnv1gUpbY8uUDSq (file: idea.log)
I just tried re-indexing both repos, Maven as well as our local Nexus. Maven failed after a minute, Nexus failed immediately.
Does the problem happen only on one machine?
There are some bundled plugins disabled. Please try deleting the
disabled_plugins.txtfile from Intellij IDEA configuration directory and re-import the project.If problem remains please attach idea.log after IDE restart and trying to update the Maven repositories (the attached log doesn't seem to contain this action). Thank you.
The problem seems to happen on all developer machines.
I removed the .txt, restarted, re-imported. Nothing changed.
Upload id: 2020_12_09_NQt7caTckJvvmQUK (file: idea.log)
Maven repo update still failing (seems like Maven Central either has problem or doesn't like the 1GB download).
Info: IntelliJ IDEA Ultimate 2020.3
There are exceptions from Maven indexer (when trying to index central Maven repository):
If you have antivirus/firewall please try with it disabled or make sure that IDE settings directories IDE installation home and project files are excluded from the scan.
Have you tried to index local nexus repository during the time that log contains? What result do you get in IDE for this? If there is a error - you should see it when hovering over it in Repository settings dialog. It also should be logged in idea.log file.
Could you please also check that unresolved plugin(s) is(are) present in your local maven repository which is set in Maven | Local repository.
For this plugin there should be a path line this
I've clarified cause of the problem. At present moment IDE itself does not download reporting plugins until the plugin's specific goal is not invoked. This behaviour is aligned with the Maven. But it causes such issues as described when IDE will not find the plugin in local repository.
I've created a request to improve this: https://youtrack.jetbrains.com/issue/IDEA-257532 Thank you for reporting the problem.
Thanks alot :D
And yes, I can confirm your last postings.
Same problem with IntelliJ 2022.3.3 CE
This still appears to be an issue as we have it in our project as well, on all developer machines. Is there any open issue to track this?