【发布时间】:2016-09-23 11:30:46
【问题描述】:
我正在使用 buildnumber-maven-plugin 获取 Mercurial 变更集作为项目内部版本号:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>hgchangeset</goal>
</goals>
</execution>
</executions>
</plugin>
然后我使用${changeSet}属性将build.number属性设置在同一个pom.xml中:
<build.number>${changeSet}</build.number>
但是,IntelliJ IDEA 抱怨它Cannot resolve symbol 'changeSet':
此外,模块根目录和受影响的pom.xml 文件在项目工具窗口中以红色下划线显示。
我在设置中尝试了所有提供的 Alt+Enter 选项和 Maven 配置;没有任何帮助。
一切正常,我只是想摆脱 IDE 中显示的烦人错误。有什么建议吗?
IDE 和环境:
IntelliJ IDEA 2016.1.2
Build #IC-145.972, built on May 14, 2016
JRE: 1.8.0_65-b17 amd64
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
【问题讨论】:
-
使用
git-commit-id-plugin同样的问题
标签: java maven intellij-idea pom.xml