【发布时间】:2023-03-09 17:09:01
【问题描述】:
我遇到了maven-protoc-plugin 问题,其中os.detected.classifier 未解决导致eclipse 在我的pom.xml 中报告错误。
我找到了this fix,但我怀疑它只适用于较旧的 eclipse 版本,氧气中不再有 <eclipse>/plugins 文件夹。
我尝试在 eclipse.ini 和 windows 环境变量中设置os.detected.classifier 无济于事。
这是一个 pom 的剪辑,适合那些认为它会有所帮助的人..
<build>
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.3.0.Final</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>com.google.protobuf.tools</groupId>
<artifactId>maven-protoc-plugin</artifactId>
<version>0.4.3</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
还有部分错误...
Missing:
----------
1) com.google.protobuf:protoc:exe:${os.detected.classifier}:2.6.1
Try downloading the file manually from the project website.
【问题讨论】:
-
我今天仍然遇到同样的问题。
标签: java eclipse maven eclipse-plugin