【发布时间】:2013-12-03 11:16:24
【问题描述】:
我有一个带有注释的类:
@WebService(endpointInterface = "ws.AccOpsProcessorWS")
每当我运行 mvn clean install 时,都会出现以下错误:
annotations are not supported in -source 1.3
(use -source 5 or higher to enable annotations)
@WebService(endpointInterface = "ws.AccOpsProcessorWS")
我无法理解这里的问题。 eclipse和机器中的JDK版本是1.6
【问题讨论】:
-
您的 maven
pom.xml在编译器插件中不正确。这条线是不言而喻的annotations are not supported in -source 1.3它说你已经配置了 1.3