intellij idea在哪里存储binary,source和javadoc jar文件?

时间:2015-08-03 20:15:15

标签: intellij-idea

将maven文件夹导入intellij时,请检查以下选项:

enter image description here

但是在状态栏中显示索引和下载以及其他繁忙活动之后,我仍然无法找到二进制文件,源文件或javadoc jar文件:

tree .
.
├── funFx.iml
├── pom.xml
└── src
    ├── main
    │   └── java
    │       └── vu
    │           └── co
    │               └── kspace
    │                   ├── App.java
    │                   ├── Digits.java
    │                   ├── ISBN10.java
    │                   └── Point.java
    └── test
        └── java
            └── vu
                └── co
                    └── kspace
                        └── AppTest.java

外部库树显示二进制jar存在,但是:

enter image description here

唯一隐藏的目录是.idea:

tree .idea
.idea
├── compiler.xml
├── encodings.xml
├── libraries
│   ├── Maven__com_github_fommil_jniloader_1_1.xml
│   ├── Maven__com_github_fommil_netlib_core_1_1_2.xml
│   ├── Maven__com_github_fommil_netlib_native_ref_java_1_1.xml
│   ├── Maven__com_github_fommil_netlib_native_system_java_1_1.xml
│   ├── Maven__com_github_fommil_netlib_netlib_native_ref_linux_armhf_natives_1_1.xml
│   ├── Maven__com_github_fommil_netlib_netlib_native_ref_linux_i686_natives_1_1.xml
│   ├── Maven__com_github_fommil_netlib_netlib_native_ref_linux_x86_64_natives_1_1.xml
│   ├── Maven__com_github_fommil_netlib_netlib_native_ref_osx_x86_64_natives_1_1.xml
│   ├── Maven__com_github_fommil_netlib_netlib_native_ref_win_i686_natives_1_1.xml
│   ├── Maven__com_github_fommil_netlib_netlib_native_ref_win_x86_64_natives_1_1.xml
│   ├── Maven__com_github_fommil_netlib_netlib_native_system_linux_armhf_natives_1_1.xml
│   ├── Maven__com_github_fommil_netlib_netlib_native_system_linux_i686_natives_1_1.xml
│   ├── Maven__com_github_fommil_netlib_netlib_native_system_linux_x86_64_natives_1_1.xml
│   ├── Maven__com_github_fommil_netlib_netlib_native_system_osx_x86_64_natives_1_1.xml
│   ├── Maven__com_github_fommil_netlib_netlib_native_system_win_i686_natives_1_1.xml
│   ├── Maven__com_github_fommil_netlib_netlib_native_system_win_x86_64_natives_1_1.xml
│   ├── Maven__com_googlecode_matrix_toolkits_java_mtj_1_0_3.xml
│   ├── Maven__junit_junit_3_8_1.xml
│   └── Maven__net_sourceforge_f2j_arpack_combined_all_0_1.xml
├── misc.xml
├── modules.xml
├── vcs.xml
└── workspace.xml

1 directory, 25 files

明确下载了Doc文件:

enter image description here

1 个答案:

答案 0 :(得分:0)

查看项目中的.idea目录。它将包含一个库文件夹,其中列出了xml文件中列出的所有maven依赖项。

例如,我有以下内容:

MyProject/.idea/libraries/Maven__org_testng_testng_6_8.xml

其中包含:

<component name="libraryTable">
  <library name="Maven: org.testng:testng:6.8">
    <CLASSES>
      <root url="jar://$MAVEN_REPOSITORY$/org/testng/testng/6.8/testng-6.8.jar!/" />
    </CLASSES>
    <JAVADOC>
      <root url="jar://$MAVEN_REPOSITORY$/org/testng/testng/6.8/testng-6.8-javadoc.jar!/" />
    </JAVADOC>
    <SOURCES>
      <root url="jar://$MAVEN_REPOSITORY$/org/testng/testng/6.8/testng-6.8-sources.jar!/" />
    </SOURCES>
  </library>
</component>

Orid的回答是正确的。 Intellij Idea使用您的标准maven存储库来存储所有源和javadoc jar。

$MAVEN_REPOSITORY$ == ~/.m2