开发者

Intellij IDEA community edition - support for maven properties

While using IDEA community edition, local maven custom properties are shown as errors in my pom.xml...

e.g.

<!-- bar/pom.xml -->

<properties>
    <foo.version>1.0.0</foo.version>
    ...
</properties>
...
...
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>blah.bar</groupId>
            <artifactId>foo-core</artifactId>
            <version>${foo.version}</version>
        </dependency>
    </dependencies>
</dependencyManagement>

${foo.version} is show in red as an error "Dependency... ${foo.version} not found..."

it appears that IDEA is not resolving the property...

nb: foo-开发者_开发问答core-1.0.0 (pom/jar) is available in my local repo

any ideas?


This seems to be a commonly reported issue: http://youtrack.jetbrains.net/issues/IDEA?q=maven+properties+red

I also have the same issue with RC 2

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜