I want to view Spring Documentation via Intellj's View->Quick Documentation features.
To achieve this, I have tried this following by using external documentation link:
Ok, I've added the url of the Spring Framework docs. as instructed, but yet, when I do ctrl+Q on a Spring Framework item, it doesn't show any docs. on the pop-up above...
Here is the url I used: https://docs.spring.io/spring-framework/docs/current/javadoc-api/
Intellij Support
But it is not working.
Can anyone help, please?
Quick Documentation
"Quick Documentation" is different from "External Documentation". For "Quick Documentation" you just need to configure your dependencies to include sources.
Do you have a Maven or Gradle project?
For Gradle and IntelliJ you can use the gradle-intellij-plugin in your build.gradle(.kts) file. It has a downloadSources option, which is true by default.
For Maven, there is an option to automatically download sources, documenation, and annotations in the IntelliJ settings under "Maven" > "Importing".
To see whether it's working or to do it manually, go to "Project Structure" > "Project Settings" > "Libraries" in IntelliJ. You can see and manually add or modify the source JARs and documentation URLs for all your libraries.
External Documentation
For external documentation (opening JavaDoc in the browser), you can tell IntelliJ to download the JavaDoc with the idea Gradle plugin like this:
idea {
module {
downloadJavadoc = true
//or in Gradle Kotlin DSL:
//isDownloadJavaDoc = true
}
}
For Maven the option is again in the IntelliJ settings.
Related
I was trying to create a new project in intelliJ using maven module but notice that it has disappear. I tried google but can't find a solution.
Perhaps you need to enable Maven Integration in your plugins.
I opened a Maven pom.xml project file that describes a project that creates a WAR file.
I want to enable Web Application support in the hope that that will help me edit JSPs.
I follow the instructions here but I do not have the "Web Application" option. I see this instead:
What am I doing wrong?
I had to enable the plugin "Java EE: EJB, JPA, Servlets". I enabled JSP Support, thinking it would enable all I needed for JSP support - clearly not. Annoying
I am new to IntelliJ but coming from Eclipse I expected Maven support to be far better. It really is but I could not find how to define a remote archetype catalog in IntelliJ (14.1).
All I could find was a way to add a Archetype manually but that is not what I need. I would like to point to a XML file on a remote server that contains the list of all archetypes available.
In Eclipse, it looks like this :
Maybe you would like to try an Intellij Plugin that I wrote yesterday. It enables you to add remote archetype catalogs to Idea: Maven Archetype Catalog plugin
To make my answer more clear: I had the same issue that it struggles me that you can add Maven Archetype Catalog files in Eclipse, but not in IntelliJ IDEA. So I tried to write a plugin for IntelliJ IDEA, so that you can actually define URLs to archetype-catalog.xml.
The plugin just parses those URLs and provides the Maven Archetypes to the list of available Archetypes in IntelliJ IDEA.
After installing the Plugin you can find a new entry in the Settings menu at File - Settings - Build, Execution and Deployment - Build tools.
I know this is kinda old thread, but in the future if some one will look for it.
This Maven Archetype Catalogs is a plugin for intellij that allows import external archetypes from a URL.
It solved my problem on Linux, haven't tried it on Windows.
To add this plugin go to File->Settings->Plugins->Browse repositories
in the search bar type "Maven Archetype Catalogs". Install and restart.
To use it go to File -> Settings -> Build, Execution, Deployment -> Build Tools -> Maven Archetype Catalogs. click the '+' and add the archetype-catalog
It seems that there is a plugin to do this - Maven Archetypes. The reviews are not favourable, and I have never used it though so cannot comment to its effectiveness.
You could also (assuming Windows/IntelliJ 14), edit C:\Users\<username>\.IntelliJIdea14\system\Maven\Indices\UserArchetypes.xml and add the archetypes manually. Not ideal, but still workable.
Screenshots are made in IDEA 14, I've also checked IDEA 13, it's also true for it.
If this is what you need
Then it's in the Preferences:
In the IntelliJ Maven Projects tree-view pane, you can see the Lifecycle tasks for all of the maven modules.
By default, these show "Basic Tasks Only". I can untick this, but then I see everything.....
Is it possible to add just one task (integration-test) to the "Basic Tasks Only" list?
i.e. can the IntelliJ Maven Integration plugin be configured?
Or can I write my own plugin to configure this at runtime?
Any tips appreciated. IntelliJ 12.1.4.
Maven plugin is not configurable like this, it is either showing only basic phases or full lifecycle.
A typical workaround for your use case would be to create a Maven run configuration based on the phase you want to launch.
If you really want to fine grain the visible phases inside the Maven tool window, you would have to modify the IntelliJ Community Edition, whose code is available, patches are always welcome by JetBrains.
I'm playing with maven plugins, specifically i'm trying to develop a custom maven plugin for eclipse. All goes well, it builds from console ... etc until:`
"Plugin execution not covered by lifecycle configuration"
appears. I research and find this:
http://wiki.eclipse.org/M2E_plugin_execution_not_covered;
obviously i do not want to ignore the plugin's execution, the execute instruction does not seem to work, as for the delegate to project configurator, i am not able to find
AbstractJavaProjectConfigurator.java.
I've searched in org.eclipse.jdt , core and source but there is no reference to what i am searching, best match i could find was here:
http://git.eclipse.org/c/m2e/m2e-core.git/tree/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt
All in one, what i want to achive is this: "Starting with m2e 1.1, maven plugin developers are able to provide lifecycle mapping metadata as part of the plugin itself." as stated in the first link i inserted. Any help would be greatly appreciated.
To simply bypass the mojo execution or telling m2e to simply execute your mojo via maven embedder you need the following:
a proper lifecycle mapping as explained in your link. Reference: https://github.com/php-maven/maven-php-plugin/blob/master/ide-plugins/eclipse/tags/2.0.3/org.phpmaven.eclipse.core/lifecycle-mapping-metadata.xml
However I put it in the root of the eclipse project to be able to debug it (finding those extra resources sometimes failes if you put them in src folders).
A build properties to embedd it into build: https://github.com/php-maven/maven-php-plugin/blob/master/ide-plugins/eclipse/tags/2.0.3/org.phpmaven.eclipse.core/build.properties
Activation via dependencies and extension:
Hope this helps. I was confused about the project configurator too. But the above example does not require any project configurator.