Uploaded image for project: 'Maven WAR Plugin'
  1. Maven WAR Plugin
  2. MWAR-435

Maven WAR Plugin 3.3.0 with minify-maven-plugin does not work correctly anymore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.3.0
    • 3.3.1
    • None
    • None

    Description

      com.samaxes.maven:minify-maven-plugin generates files in the war output folder, which must be included into the WAR file.

      But, these files are deleted (probably) because of this change: https://github.com/apache/maven-war-plugin/commit/58feb482198a33c1ea1b50632c158dc1d3f72044/

      Example configuration of the minify-maven-plugin

       

       <plugin>
         <groupId>com.samaxes.maven</groupId>
         <artifactId>minify-maven-plugin</artifactId>
         <executions>
           <execution>
             <id>default-minify</id>
             <configuration>
               <charset>UTF-8</charset>
               <jsSourceDir>reporting-static</jsSourceDir>
               <jsSourceFiles>
                 <jsSourceFile>reports/uiHelper.js</jsSourceFile>
                 <!-- ... -->
               </jsSourceFiles>
               <jsFinalFile>reporting.js</jsFinalFile>
               <jsEngine>CLOSURE</jsEngine>
             </configuration>
             <goals>
               <goal>minify</goal>
             </goals>
           </execution>
         </executions>
       </plugin>

       

      Could you please have a look?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alexnb Alexander Bouriakov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: