grails - 在 IntelliJ IDEA 中管理 Grails 自动依赖项的源代码和 javadoc?

标签 grails maven intellij-idea javadoc

如何将源代码和 javadoc 附加到 IntelliJ IDEA 中的库,这些库通过 Grails 依赖项解析自动链接,并且未在 IDEA 项目设置中明确列出?

例如在 BuildConfig.groovy:

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

有没有办法让IDEA自动从Maven存储库中获取源代码和javadoc?

最佳答案

IDEA 自动将源代码附加到项目插件模块中。 JavaDoc 可以手动附加到项目结构界面中的插件模块:

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

IDEA project structure

关于grails - 在 IntelliJ IDEA 中管理 Grails 自动依赖项的源代码和 javadoc?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7578423/

相关文章:

tomcat - 是否可以在不停止应用程序的情况下部署新的 .war 应用程序?

grails - 如何让 Grails 从 Maven 存储库中获取最新的本地 jars?

Grails 2.0.3 忽略可为空约束

mysql - grails 域默认按上次更新字段排序

java - Gradle jar 不包含 Guava 前提条件

java - 使用 eirslett :frontend-maven-plugin 在 gitlab.com 上运行 maven build

maven-2 - 从原型(prototype)创建项目时如何抑制属性替换?

maven - 在 maven-plugin-testing-harness 中注入(inject) DefaultRepositorySystem 时出错

git - 将 Git bash 作为外部工具嵌入 PyCharm 并在 PyCharm 窗口 (windows xp) 中使用它

python - IntelliJ 不想导入