franz see wrote:
> Good day to you, dir,

Hi Franz,

> If you do this ( your pom resources setup without the profiles )
> 
> <project>
>   <build>
>     <resources>
>       <resource>
>         <directory>src/main/resources</directory>
>       </resource>
>     </resources>
>     <resources>
>       <resource>
>         <directory>src/main/resources</directory>
>         <excludes>
>           <exclude>...</exclude>
>         </excludes>
>       </resource>
>     </resources>
>   </build>
> </project>

That's what I get when I run mvn -X with the profile enabled, ok.

> Maven resources plugin would copy everything from src/main/resources on one
> pass, and will copy everything from src/main/resources except those you
> specified in your excludes in the second. Hence, the end result is that
> everything gets copied.
> 
> If you find this behaviour odd, please feel free to file a jira issue :-)

Yes I do find it odd, because when I re-declare dependencies in a
profile that are also listed in the main dependencies section, the
profile "wins". I would have expected that re-declaring *the same*
resource dir would overwrite it.

See http://jira.codehaus.org/browse/MNG-2933

-dirk

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to