0

この種のプロパティを作成したいと思います:

<properties> 
  <ignoredpackage>
     <ignore>com.example.*</ignore>
     <ignore>com.another.example.*</ignore> 
  </ignoredpackage>
<properties>

私はそれを私のpomでそのように使うことができるように:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>cobertura-maven-plugin</artifactId>
    <configuration>
      <instrumentation>
        <ignores>
          ${ignoredpackage}
        </ignores>
        <excludes>
        ...

しかし、これは機能しません、他の方法はありますか?

4

1 に答える 1

0

これはできません。

<properties/>タグは次のようにのみ機能します。

<properties>
    <foo>bar</foo>
    <blah>dotfoo</blah>
</properties>
于 2012-07-18T13:24:32.467 に答える