No negative logic.
authorKarl Heinz Marbaise <khmarbaise@apache.org>
Thu, 9 Aug 2018 17:36:24 +0000 (19:36 +0200)
committerKarl Heinz Marbaise <khmarbaise@apache.org>
Thu, 9 Aug 2018 17:36:24 +0000 (19:36 +0200)
src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java

index 6dd5da7..b79010f 100644 (file)
@@ -214,11 +214,7 @@ public class DeployFileMojo
     void initProperties()
         throws MojoExecutionException
     {
-        if ( pomFile != null )
-        {
-            processModel( readModel( pomFile ) );
-        }
-        else
+        if ( pomFile == null )
         {
             boolean foundPom = false;
 
@@ -300,6 +296,10 @@ public class DeployFileMojo
                 }
             }
         }
+        else
+        {
+            processModel( readModel( pomFile ) );
+        }
 
         if ( packaging == null && file != null )
         {