本文介绍了如何获取javax:javaee-api-6.0.jar的源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用javax:javaee-api-6.0.jar maven工件.

I use the javax:javaee-api-6.0.jar maven artifact.

<dependency>
  <groupId>javax</groupId>
  <artifactId>javaee-api</artifactId>
  <version>6.0</version>
  <scope>provided</scope>
</dependency>

我想使用dependency:sources mvn目标下载其源代码.我一直在Maven官方存储库中寻找源,但仍然找不到.

I would like to download its source code with the dependency:sources mvn goal.I was looking for the sources in the official maven repositories, but I still can't find it.

您能给我一些有关如何实现目标的建议吗?谢谢.

Could you give me a bit of advice on how can I achieve my object?Thank you.

推荐答案

Mich是正确的.

Mich is correct.

javaee-api 模块的目的是满足编译时依赖性(这就是Maven范围设置为提供的原因).该模块包含接口声明(或协定),您打算使用的J2EE容器必须满足该声明.

The purpose of the javaee-api module is to satisfy compile-time dependencies (That is why the Maven scope is set to provided). The module contains interface declarations (or contract) which must be satisfied by the J2EE container you plan to use.

如果您确实需要/想要查看源代码,我建议您看一下其中一个开源J2EE容器.

If you really need/want to see the source code, I'd suggest taking a look at one of the open source J2EE containers.

这篇关于如何获取javax:javaee-api-6.0.jar的源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 07:10