[NPANDAY-410] make sure NPanday.Model.Pom is now present at execution time

git-svn-id: https://svn.apache.org/repos/asf/incubator/npanday/branches/NPANDAY-410@1210760 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/components/dotnet-executable/src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java b/components/dotnet-executable/src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java
index 4b20c02..d62a927 100644
--- a/components/dotnet-executable/src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java
+++ b/components/dotnet-executable/src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java
@@ -185,6 +185,10 @@
         commands.add( "mojoName=" + mojoName );//ArtifactId = namespace
 
         // make sure plugin artifact is present to run with in the application base
+        // TODO: can we do this transitively from the loader or the plugin artifact? Hardcoding the transitive deps here
+        Artifact modelArtifact = artifactContext.getArtifactsFor( "org.apache.npanday", "NPanday.Model.Pom", null,
+                                                                   null ).get( 0 );
+        PathUtil.getPrivateApplicationBaseFileFor( modelArtifact, new File( localRepository ), targetDir );
         Artifact pluginArtifact = artifactContext.getArtifactsFor( "org.apache.npanday.plugins", "NPanday.Plugin", null,
                                                                    null ).get( 0 );
         PathUtil.getPrivateApplicationBaseFileFor( pluginArtifact, new File( localRepository ), targetDir );