简体   繁体   English

netbeans保存附件源的位置(JavaDoc,源)

[英]Where netbeans saves attached sources (JavaDoc, Sources)

When i read a class from any library attached to my project i can download sources like: (javadoc and sources), so in which folder netbeans saves this resources? 当我从连接到项目的任何库中读取类时,我可以下载诸如以下的源:(javadoc和源),那么netbeans可以在哪个文件夹中保存此资源? 在此处输入图片说明

You need to distinguish between two situations: 您需要区分两种情况:

Native, Ant based projects 基于Ant的本地项目

In that case, you provide the location of the sources and JavaDocs manually . 在这种情况下, 可以手动提供源和JavaDocs的位置。 It's your responsibility to download and store them somewhere on your hard disk. 您有责任将其下载并存储在硬盘上的某个位置。 NetBeans does not download anything, you just tell NetBeans where to find them. NetBeans不会下载任何内容,您只是告诉NetBeans在哪里可以找到它们。

Maven based projects 基于Maven的项目

The sources and JavaDocs are downloaded by Maven and stored in the local Maven repository. 源代码和JavaDocs由Maven下载并存储在本地Maven存储库中。 On Linux this is ~/.m2 (I think) and on Windows the default location is %homepath%\\.m2 在Linux上,这是~/.m2 (我认为),在Windows上,默认位置是%homepath%\\.m2

You can also use manually downloaded sources and JavaDocs in a Maven based project. 您还可以在基于Maven的项目中使用手动下载的源代码和JavaDocs。 This can eg be done from within the project Window: 例如,这可以在项目窗口中完成:

在此处输入图片说明

In that case it's again your responsibility to download and store the files somewhere. 在这种情况下,再次负责将文件下载和存储在某个地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM