@@ -166,7 +166,7 @@ public abstract class AbstractJarMojo implements org.apache.maven.api.plugin.Moj
166166 protected AbstractJarMojo () {}
167167
168168 /**
169- * {@return the specific output directory to serve as the root for the archive}.
169+ * {@return the specific output directory to serve as the root for the archive}
170170 */
171171 protected abstract Path getClassesDirectory ();
172172
@@ -180,20 +180,20 @@ protected final Project getProject() {
180180 }
181181
182182 /**
183- * {@return the <abbr>MOJO</abbr> logger}.
183+ * {@return the <abbr>MOJO</abbr> logger}
184184 */
185185 protected final Log getLog () {
186186 return log ;
187187 }
188188
189189 /**
190- * {@return the classifier of the JAR file to produce}.
190+ * {@return the classifier of the JAR file to produce}
191191 * This is usually null or empty for the main artifact, or {@code "tests"} for the JAR file of test code.
192192 */
193193 protected abstract String getClassifier ();
194194
195195 /**
196- * {@return the type of the JAR file to produce}.
196+ * {@return the type of the JAR file to produce}
197197 * This is usually {@code "jar"} for the main artifact, or {@code "test-jar"} for the JAR file of test code.
198198 */
199199 protected abstract String getType ();
@@ -288,7 +288,7 @@ public Path createArchive() throws MojoException {
288288 @ Override
289289 public void execute () throws MojoException {
290290 if (skipIfEmpty && isEmpty (getClassesDirectory ())) {
291- getLog ().info ("Skipping packaging of the " + getType () + '.' );
291+ getLog ().info (String . format ( "Skipping packaging of the %s." , getType ()) );
292292 } else {
293293 Path jarFile = createArchive ();
294294 ProducedArtifact artifact ;
0 commit comments