Skip to content

Commit a2fea81

Browse files
committed
Add a warning message to 'nosuffix' option Javadoc
1 parent 581266c commit a2fea81

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

demo/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<executions>
7979
<execution>
8080
<id>default-minify</id>
81-
<phase>process-resources</phase>
81+
<phase>package</phase>
8282
<configuration>
8383
<charset>utf-8</charset>
8484
<jsEngine>closure</jsEngine>

src/main/java/com/samaxes/maven/minify/plugin/MinifyMojo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ public class MinifyMojo extends AbstractMojo {
152152

153153
/**
154154
* Do not append a suffix to the minified output filename, independently of the value in the <code>suffix</code>
155-
* parameter.
155+
* parameter.<br/>
156+
* <strong>Warning:</strong> when both the options <code>nosuffix</code> and <code>skipMerge</code> are set to
157+
* <code>true</code>, the plugin execution phase needs to be set to <code>package</code>, otherwise the output files
158+
* will be overridden by the source files during the packaging.
156159
*
157160
* @parameter expression="${nosuffix}" default-value="false"
158161
* @since 1.6.2

0 commit comments

Comments
 (0)