四时宝库

程序员的知识宝库

如何查看maven下载后的jar包的源码

  • 设置maven导包时自动下载源码


  • 1,选择项目的pom.xml,右键,选择 Run as ,Maven build 如下图:

  • 2,输入:dependency:sources ,pom.xml ,勾选 Update Snapshorts, skip tests,点击
  • Run,下载源码。


  • 3,显示结果:

[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective model for com.neo:spring-boot-elasticsearch:jar:1.0

[WARNING] 'parent.relativePath' of POM com.neo:spring-boot-elasticsearch:1.0 (C:\Users\lenovo\Downloads\spring-boot-examples-master\spring-boot-elasticsearch\pom.xml) points at com.example:spring-boot-examples instead of org.springframework.boot:spring-boot-starter-parent, please verify your project structure @ line 14, column 10

[WARNING]

[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

[WARNING]

[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

[WARNING]

[INFO]

[INFO] -----------------< com.neo:spring-boot-elasticsearch >------------------

[INFO] Building spring-boot-elasticsearch 1.0

[INFO] --------------------------------[ jar ]---------------------------------

[INFO]

[INFO] --- maven-dependency-plugin:3.1.1:sources (default-cli) @ spring-boot-elasticsearch ---

[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-data-elasticsearch/2.1.0.RELEASE/spring-boot-starter-data-elasticsearch-2.1.0.RELEASE-sources.jar

[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter/2.1.0.RELEASE/spring-boot-starter-2.1.0.RELEASE-sources.jar

[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-logging/2.1.0.RELEASE/spring-boot-starter-logging-2.1.0.RELEASE-sources.jar

[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-test/2.1.0.RELEASE/spring-boot-starter-test-2.1.0.RELEASE-sources.jar

[INFO]

[INFO] The following files have been resolved:

[INFO] org.springframework.boot:spring-boot:jar:sources:2.1.0.RELEASE

[INFO] org.springframework.boot:spring-boot-autoconfigure:jar:sources:2.1.0.RELEASE

[INFO] ch.qos.logback:logback-classic:jar:sources:1.2.3

[INFO] ch.qos.logback:logback-core:jar:sources:1.2.3

[INFO] org.apache.logging.log4j:log4j-to-slf4j:jar:sources:2.11.1

[INFO] org.apache.logging.log4j:log4j-api:jar:sources:2.11.1

[INFO] org.slf4j:jul-to-slf4j:jar:sources:1.7.25

[INFO] javax.annotation:javax.annotation-api:jar:sources:1.3.2

[INFO] org.yaml:snakeyaml:jar:sources:1.23

[INFO] org.springframework.data:spring-data-elasticsearch:jar:sources:3.1.2.RELEASE

[INFO] org.springframework:spring-context:jar:sources:5.1.2.RELEASE

[INFO] org.springframework:spring-aop:jar:sources:5.1.2.RELEASE

[INFO] org.springframework:spring-beans:jar:sources:5.1.2.RELEASE

[INFO] org.springframework:spring-expression:jar:sources:5.1.2.RELEASE

[INFO] org.springframework:spring-tx:jar:sources:5.1.2.RELEASE

[INFO] org.springframework.data:spring-data-commons:jar:sources:2.1.2.RELEASE

[INFO] joda-time:joda-time:jar:sources:2.10.1

[INFO] org.elasticsearch.client:transport:jar:sources:6.4.2

[INFO] org.elasticsearch:elasticsearch:jar:sources:6.4.2

[INFO] org.elasticsearch:elasticsearch-core:jar:sources:6.4.2

[INFO] org.elasticsearch:elasticsearch-secure-sm:jar:sources:6.4.2

[INFO] org.elasticsearch:elasticsearch-x-content:jar:sources:6.4.2

[INFO] com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:sources:2.9.7

[INFO] com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:sources:2.9.7

[INFO] com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:sources:2.9.7

[INFO] org.apache.lucene:lucene-core:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-analyzers-common:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-backward-codecs:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-grouping:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-highlighter:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-join:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-memory:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-misc:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-queries:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-queryparser:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-sandbox:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-spatial:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-spatial-extras:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-spatial3d:jar:sources:7.4.0

[INFO] org.apache.lucene:lucene-suggest:jar:sources:7.4.0

[INFO] org.elasticsearch:elasticsearch-cli:jar:sources:6.4.2

[INFO] net.sf.jopt-simple:jopt-simple:jar:sources:5.0.2

[INFO] com.carrotsearch:hppc:jar:sources:0.7.1

[INFO] com.tdunning:t-digest:jar:sources:3.2

[INFO] org.hdrhistogram:HdrHistogram:jar:sources:2.1.9

[INFO] org.elasticsearch:jna:jar:sources:4.5.1

[INFO] org.elasticsearch.plugin:reindex-client:jar:sources:6.4.2

[INFO] org.elasticsearch.client:elasticsearch-rest-client:jar:sources:6.4.2

[INFO] org.apache.httpcomponents:httpclient:jar:sources:4.5.6

[INFO] org.apache.httpcomponents:httpcore:jar:sources:4.4.10

[INFO] org.apache.httpcomponents:httpasyncclient:jar:sources:4.1.4

[INFO] org.apache.httpcomponents:httpcore-nio:jar:sources:4.4.10

[INFO] commons-codec:commons-codec:jar:sources:1.11

[INFO] org.elasticsearch.plugin:lang-mustache-client:jar:sources:6.4.2

[INFO] com.github.spullara.mustache.java:compiler:jar:sources:0.9.3

[INFO] org.elasticsearch.plugin:percolator-client:jar:sources:6.4.2

[INFO] org.elasticsearch.plugin:parent-join-client:jar:sources:6.4.2

[INFO] org.elasticsearch.plugin:rank-eval-client:jar:sources:6.4.2

[INFO] com.fasterxml.jackson.core:jackson-core:jar:sources:2.9.7

[INFO] com.fasterxml.jackson.core:jackson-databind:jar:sources:2.9.7

[INFO] com.fasterxml.jackson.core:jackson-annotations:jar:sources:2.9.0

[INFO] org.elasticsearch.plugin:transport-netty4-client:jar:sources:6.4.2

[INFO] io.netty:netty-buffer:jar:sources:4.1.29.Final

[INFO] io.netty:netty-codec:jar:sources:4.1.29.Final

[INFO] io.netty:netty-codec-http:jar:sources:4.1.29.Final

[INFO] io.netty:netty-common:jar:sources:4.1.29.Final

[INFO] io.netty:netty-handler:jar:sources:4.1.29.Final

[INFO] io.netty:netty-resolver:jar:sources:4.1.29.Final

[INFO] io.netty:netty-transport:jar:sources:4.1.29.Final

[INFO] org.slf4j:slf4j-api:jar:sources:1.7.25

[INFO] org.springframework.boot:spring-boot-test:jar:sources:2.1.0.RELEASE

[INFO] org.springframework.boot:spring-boot-test-autoconfigure:jar:sources:2.1.0.RELEASE

[INFO] com.jayway.jsonpath:json-path:jar:sources:2.4.0

[INFO] net.minidev:json-smart:jar:sources:2.3

[INFO] net.minidev:accessors-smart:jar:sources:1.2

[INFO] org.ow2.asm:asm:jar:sources:5.0.4

[INFO] junit:junit:jar:sources:4.12

[INFO] org.assertj:assertj-core:jar:sources:3.11.1

[INFO] org.mockito:mockito-core:jar:sources:2.23.0

[INFO] net.bytebuddy:byte-buddy:jar:sources:1.9.3

[INFO] net.bytebuddy:byte-buddy-agent:jar:sources:1.9.3

[INFO] org.objenesis:objenesis:jar:sources:2.6

[INFO] org.hamcrest:hamcrest-core:jar:sources:1.3

[INFO] org.hamcrest:hamcrest-library:jar:sources:1.3

[INFO] org.skyscreamer:jsonassert:jar:sources:1.5.0

[INFO] com.vaadin.external.google:android-json:jar:sources:0.0.20131108.vaadin1

[INFO] org.springframework:spring-core:jar:sources:5.1.2.RELEASE

[INFO] org.springframework:spring-jcl:jar:sources:5.1.2.RELEASE

[INFO] org.springframework:spring-test:jar:sources:5.1.2.RELEASE

[INFO] org.xmlunit:xmlunit-core:jar:sources:2.6.2

[INFO]

[INFO] The following files have NOT been resolved:

[INFO] org.springframework.boot:spring-boot-starter-data-elasticsearch:jar:2.1.0.RELEASE:compile

[INFO] org.springframework.boot:spring-boot-starter:jar:2.1.0.RELEASE:compile

[INFO] org.springframework.boot:spring-boot:jar:2.1.0.RELEASE:compile

[INFO] org.springframework.boot:spring-boot-autoconfigure:jar:2.1.0.RELEASE:compile

[INFO] org.springframework.boot:spring-boot-starter-logging:jar:2.1.0.RELEASE:compile

[INFO] ch.qos.logback:logback-classic:jar:1.2.3:compile

[INFO] ch.qos.logback:logback-core:jar:1.2.3:compile

[INFO] org.apache.logging.log4j:log4j-to-slf4j:jar:2.11.1:compile

[INFO] org.apache.logging.log4j:log4j-api:jar:2.11.1:compile

[INFO] org.slf4j:jul-to-slf4j:jar:1.7.25:compile

[INFO] javax.annotation:javax.annotation-api:jar:1.3.2:compile

[INFO] org.yaml:snakeyaml:jar:1.23:compile

[INFO] org.springframework.data:spring-data-elasticsearch:jar:3.1.2.RELEASE:compile

[INFO] org.springframework:spring-context:jar:5.1.2.RELEASE:compile

[INFO] org.springframework:spring-aop:jar:5.1.2.RELEASE:compile

[INFO] org.springframework:spring-beans:jar:5.1.2.RELEASE:compile

[INFO] org.springframework:spring-expression:jar:5.1.2.RELEASE:compile

[INFO] org.springframework:spring-tx:jar:5.1.2.RELEASE:compile

[INFO] org.springframework.data:spring-data-commons:jar:2.1.2.RELEASE:compile

[INFO] joda-time:joda-time:jar:2.10.1:compile

[INFO] org.elasticsearch.client:transport:jar:6.4.2:compile

[INFO] org.elasticsearch:elasticsearch:jar:6.4.2:compile

[INFO] org.elasticsearch:elasticsearch-core:jar:6.4.2:compile

[INFO] org.elasticsearch:elasticsearch-secure-sm:jar:6.4.2:compile

[INFO] org.elasticsearch:elasticsearch-x-content:jar:6.4.2:compile

[INFO] com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.9.7:compile

[INFO] com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.9.7:compile

[INFO] com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.9.7:compile

[INFO] org.apache.lucene:lucene-core:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-analyzers-common:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-backward-codecs:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-grouping:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-highlighter:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-join:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-memory:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-misc:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-queries:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-queryparser:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-sandbox:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-spatial:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-spatial-extras:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-spatial3d:jar:7.4.0:compile

[INFO] org.apache.lucene:lucene-suggest:jar:7.4.0:compile

[INFO] org.elasticsearch:elasticsearch-cli:jar:6.4.2:compile

[INFO] net.sf.jopt-simple:jopt-simple:jar:5.0.2:compile

[INFO] com.carrotsearch:hppc:jar:0.7.1:compile

[INFO] com.tdunning:t-digest:jar:3.2:compile

[INFO] org.hdrhistogram:HdrHistogram:jar:2.1.9:compile

[INFO] org.elasticsearch:jna:jar:4.5.1:compile

[INFO] org.elasticsearch.plugin:reindex-client:jar:6.4.2:compile

[INFO] org.elasticsearch.client:elasticsearch-rest-client:jar:6.4.2:compile

[INFO] org.apache.httpcomponents:httpclient:jar:4.5.6:compile

[INFO] org.apache.httpcomponents:httpcore:jar:4.4.10:compile

[INFO] org.apache.httpcomponents:httpasyncclient:jar:4.1.4:compile

[INFO] org.apache.httpcomponents:httpcore-nio:jar:4.4.10:compile

[INFO] commons-codec:commons-codec:jar:1.11:compile

[INFO] org.elasticsearch.plugin:lang-mustache-client:jar:6.4.2:compile

[INFO] com.github.spullara.mustache.java:compiler:jar:0.9.3:compile

[INFO] org.elasticsearch.plugin:percolator-client:jar:6.4.2:compile

[INFO] org.elasticsearch.plugin:parent-join-client:jar:6.4.2:compile

[INFO] org.elasticsearch.plugin:rank-eval-client:jar:6.4.2:compile

[INFO] com.fasterxml.jackson.core:jackson-core:jar:2.9.7:compile

[INFO] com.fasterxml.jackson.core:jackson-databind:jar:2.9.7:compile

[INFO] com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile

[INFO] org.elasticsearch.plugin:transport-netty4-client:jar:6.4.2:compile

[INFO] io.netty:netty-buffer:jar:4.1.29.Final:compile

[INFO] io.netty:netty-codec:jar:4.1.29.Final:compile

[INFO] io.netty:netty-codec-http:jar:4.1.29.Final:compile

[INFO] io.netty:netty-common:jar:4.1.29.Final:compile

[INFO] io.netty:netty-handler:jar:4.1.29.Final:compile

[INFO] io.netty:netty-resolver:jar:4.1.29.Final:compile

[INFO] io.netty:netty-transport:jar:4.1.29.Final:compile

[INFO] org.slf4j:slf4j-api:jar:1.7.25:compile

[INFO] org.springframework.boot:spring-boot-starter-test:jar:2.1.0.RELEASE:test

[INFO] org.springframework.boot:spring-boot-test:jar:2.1.0.RELEASE:test

[INFO] org.springframework.boot:spring-boot-test-autoconfigure:jar:2.1.0.RELEASE:test

[INFO] com.jayway.jsonpath:json-path:jar:2.4.0:test

[INFO] net.minidev:json-smart:jar:2.3:test

[INFO] net.minidev:accessors-smart:jar:1.2:test

[INFO] org.ow2.asm:asm:jar:5.0.4:test

[INFO] junit:junit:jar:4.12:test

[INFO] org.assertj:assertj-core:jar:3.11.1:test

[INFO] org.mockito:mockito-core:jar:2.23.0:test

[INFO] net.bytebuddy:byte-buddy:jar:1.9.3:test

[INFO] net.bytebuddy:byte-buddy-agent:jar:1.9.3:test

[INFO] org.objenesis:objenesis:jar:2.6:test

[INFO] org.hamcrest:hamcrest-core:jar:1.3:test

[INFO] org.hamcrest:hamcrest-library:jar:1.3:test

[INFO] org.skyscreamer:jsonassert:jar:1.5.0:test

[INFO] com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test

[INFO] org.springframework:spring-core:jar:5.1.2.RELEASE:compile

[INFO] org.springframework:spring-jcl:jar:5.1.2.RELEASE:compile

[INFO] org.springframework:spring-test:jar:5.1.2.RELEASE:test

[INFO] org.xmlunit:xmlunit-core:jar:2.6.2:test

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 10.965 s

[INFO] Finished at: 2021-02-17T17:28:09+08:00

[INFO] ------------------------------------------------------------------------

[WARNING] The requested profile "pom.xml" could not be activated because it does not exist.

  • 4,查看源码:

发表评论:

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言
    友情链接