开发者

Manage source and javadoc for Grails automatic dependencies in IntelliJ IDEA?

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

Manage source and javadoc for Grails automatic dependencies in IntelliJ IDEA?


IDEA 11 will be ably to search and download sources for any jar. The search is performed using https://oss.sonatype.org/ by artifactId and version got from name of jar.


not an answer, but an idea:

you might hook into the 'grails integrate-with' gant script and add this functionality yourself. $GRAILS_HOME/scripts/IntegrateWith.groovy uses some templates for .ipr and .iml file that could be modified.

At some point in future it is excepted that gradle will be used for building Grails projects but there's still a long way to go.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜