【发布时间】:2019-11-28 08:50:50
【问题描述】:
我正在将 swagger 及相关版本升级到 swagger2。 在进行 Maven 全新安装时出现以下错误。
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project : Compilation failure[ERROR] cannot access javax.annotation.concurrent.NotThreadSafe.
来自 POM.xml 的插件抛出异常:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
我可以在我的 pom.xml 中看到 javax.annotation-api 1.3.1 maven 依赖项。仍然找不到 javax.annotation.concurrent.NotThreadSafe 的类文件
Please don't suggest the solutions given in https://stackoverflow.com/questions/42525139/maven-build-compilation-error-failed-to-execute-goal-org-apache-maven-plugins/49299241 or any other stack overflow links. Since I have tried all but no progress.
【问题讨论】:
标签: file-not-found maven-compiler-plugin