[ 
https://issues.apache.org/jira/browse/MWAR-277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karl Heinz Marbaise closed MWAR-277.
------------------------------------
       Resolution: Cannot Reproduce
    Fix Version/s:     (was: waiting-for-feedback)

> New version does not work with yuicompressor-maven-plugin. v2.0.2 works.
> ------------------------------------------------------------------------
>
>                 Key: MWAR-277
>                 URL: https://issues.apache.org/jira/browse/MWAR-277
>             Project: Maven WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1.1
>         Environment: OSX
>            Reporter: Eric Miller
>
> We use YUI Compressor to minify static web resources. With nosuffix on, this 
> produces a .js or .css file of the same name in the target dir (eg: 
> src/main/webapp/script.js becomes target/script.js). This is a good way to 
> work because then your script and style references don't need to change 
> between development and qa or dev int (wherever you test minified resources).
> The problem is that v2.1.1 overwrites files in the target dir if they already 
> exist. v2.0.2 did not behave in this way.
> There must have been some change in the way that overwriting existing files 
> behaves, but I cannot find a flag to switch that behavior back.
> We have reverted to the old version of the war plugin for now.
> our config:
> {code:xml}
> <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-war-plugin</artifactId>
>       <version>2.0.2</version>
>       <!-- <version>2.1.1</version> breaks YUI compressor -->
>       <configuration>
>               <useDefaultManifestFile>true</useDefaultManifestFile>
>               <archive>
>                       <manifestEntries>
>                               
> <Implementation-Title>${project.name}</Implementation-Title> <!-- This is in 
> the default manifest, but we add it explicitly so m2e-wtp 
>                                       can pick it up -->
>                               
> <Implementation-Version>${project.version}</Implementation-Version> <!-- This 
> is in the default manifest, but we add it explicitly so m2e-wtp 
>                                       can pick it up -->
>                               <ReleaseName>${releasename}</ReleaseName>
>                       </manifestEntries>
>               </archive>
>       </configuration>
> </plugin>
> {code} 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to