javax.annotation在哪里
好吧,所以这可能是一个NooB问题(我更多是C ++的人),但是我迷失在Java森林及其框架森林中……
Ok, so this is probably a NooB question (I'm more of a C++ guy), but I'm lost in the java woods and its frameworks forests...
我正在尝试研究Eclipse RCP开发。为此,我遵循了这个著名的教程:
http:// www .vogella.com / tutorials / EclipseRCP / article.html
I'm trying to look into eclipse RCP development. For that I'm following this well-known tutorial: http://www.vogella.com/tutorials/EclipseRCP/article.html
在第15步中,我需要添加以下依赖项软件包以导入我的捆绑软件中。
javax.annotation
javax.injection
At step 15 I need to add the following dependency packages to import in my bundle. javax.annotation javax.injection
问题是我无法选择它们(它们不在选择列表中)
我确实有javax.el javax.servlet。*和javax.xml。*
The problem is that I cannot select these (they are not in the selection list) I do have javax.el javax.servlet.* and javax.xml.*
查看
http://docs.oracle.com/javase/7/docs/api/overview-summary.html
建议这应该是标准Java的一部分。
Looking at http://docs.oracle.com/javase/7/docs/api/overview-summary.html suggests that this should be part of the standard java.
我遗漏了什么明显的错误?
What obvious mistake am I missing?
JavaEE 7的版本:
The version for JavaEE 7:
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
请参阅: http://mvnrepository.com/artifact/javax.annotation/javax.annotation-api
如果您使用Java 8:
http://docs.oracle.com/javase/8/docs/api/javax/annotation/package-summary.html
If you use Java 8: http://docs.oracle.com/javase/8/docs/api/javax/annotation/package-summary.html