如何获取 javax:javaee-api-6.0.jar 的源代码
我使用 javax:javaee-api-6.0.jar maven 工件。
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
我想下载它的源代码与 dependency:sources mvn 目标。 我一直在官方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>
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
米奇是对的。
javaee-api 模块的目的是满足编译时依赖关系(这就是 Maven 范围设置为 provided 的原因)。该模块包含接口声明(或契约),您计划使用的 J2EE 容器必须满足这些声明。
如果您确实需要/想要查看源代码,我建议您查看一个开源 J2EE 容器。
Mich is correct.
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.
If you really need/want to see the source code, I'd suggest taking a look at one of the open source J2EE containers.
看看这些是否有任何好处以及它们是否适合您 http:// repo1.maven.org/maven2/org/apache/openejb/javaee-api/
see if these are any good and if they work for you http://repo1.maven.org/maven2/org/apache/openejb/javaee-api/
试试这个:(它附加了源代码)
它引入了大量的依赖项,但是由于它们都已提供,因此您实际上不会改变您的工件。
Try this: (it has sources attached)
It pulls in a huge number of dependencies, but as they are all provided you do effectively not alter your artifact.