在IntelliJ IDEA中管理Grails自动依赖关系的源代码和javadoc? [英] Manage source and javadoc for Grails automatic dependencies in IntelliJ IDEA?

查看:303
本文介绍了在IntelliJ IDEA中管理Grails自动依赖关系的源代码和javadoc?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于<例如
BuildConfig.groovy

$ p $ grails.project.dependency.resolution = {
存储库{
mavenRepohttp://oss.sonatype.org/content/repositories/releases/
}
依赖项{
runtime'org.elasticsearch: elasticsearch:0.17.7'
}
}

IDEA是否会自动从Maven存储库中获取源代码和javadoc?

解决方案

IDEA将源自动附加到项目插件模块。可以手动将JavaDoc连接到项目结构接口中的插件模块:

文件 - >项目结构 - >项目设置 - >模块 - > 项目名称 -grailsPlugins - >路径 - > JavaDoc




How do I attach source and javadoc to libraries in IntelliJ IDEA that are linked automatically by Grails dependency resolution and are not explicitly listed in the IDEA project settings?

For example in BuildConfig.groovy:

grails.project.dependency.resolution = {
    repositories {
        mavenRepo "http://oss.sonatype.org/content/repositories/releases/"
    }
    dependencies {
        runtime 'org.elasticsearch:elasticsearch:0.17.7'
    }
}

Is there a method to have IDEA automatically pick up the source and javadoc from the Maven repository?

解决方案

IDEA attached the source automatically to the project plugin module. The JavaDoc can be manually attached to the plugin module in the project structure interface at:

File -> Project Structure -> Project Settings -> Modules -> project name-grailsPlugins -> Paths -> JavaDoc

这篇关于在IntelliJ IDEA中管理Grails自动依赖关系的源代码和javadoc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆