2

project.version現在が SNAPSHOTかどうかを示す特定の Maven プロパティはありますか?

明らかに、これは project.version 文字列を解析することで実行できますが、特定のプロパティに興味があります。

4

1 に答える 1

2

${project.version.snapshot} is not currently a supported property for Maven 3.

See Maven Properties Guide

Currently, there is an open feature request to add regex matching for profile activation. You may want to go comment and upvote the issue: http://jira.codehaus.org/browse/MNG-3826

The use case is exactly what you are mentioning:

Activate a profile when project.version is not SNAPSHOT

is it possible?

于 2012-09-14T15:32:59.927 に答える