{"id":315,"date":"2012-04-24T17:27:11","date_gmt":"2012-04-24T15:27:11","guid":{"rendered":"http:\/\/www.pellissier.co.za\/hermien\/?p=315"},"modified":"2012-04-24T17:27:11","modified_gmt":"2012-04-24T15:27:11","slug":"migrating-my-mind-to-maven-part-3-running-and-errors","status":"publish","type":"post","link":"https:\/\/www.pellissier.co.za\/hermien\/?p=315","title":{"rendered":"Migrating my Mind to Maven (Part 3) \u2013 Running and Errors"},"content":{"rendered":"<p>Everything is subtly (or not so subtly) different between building and running a NetBeans Platform application with Ant and with Maven. When running an application from the IDE, only one instance of the application is allowed to run at a time. The error message displayed when trying to run a second instance with an Ant-based project is clear:<\/p>\n<p>[text]C:NetBeansharnesssuite.xml:502: The following error occurred while<br \/>\nexecuting this line:<br \/>\nC:NetBeansharnessrun.xml:198: The application is already running within<br \/>\nthe test user directory.<br \/>\nYou must shut it down before trying to run it again.[\/text]<\/p>\n<p>The Maven one is a little less informative, particularly for Java developers who are not used to building .exes:<\/p>\n<p>[text]Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:3.7:cluster-app<br \/>\n(default-cli) on project test2-app: Cannot process etc folder content<br \/>\ncreation. C:ProjectsTeststest2applicationtargettest2bintest2.exe<br \/>\n(The process cannot access the file because it is being used by another<br \/>\nprocess) -&gt; [Help 1][\/text]<\/p>\n<p>Hopefully the knowledge that these two things have the same cause will be useful to developers new to developing NetBeans Platform applications with Maven. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Everything is subtly (or not so subtly) different between building and running a NetBeans Platform application with Ant and with Maven. When running an application from the IDE, only one instance of the application is allowed to run at a time. The error message displayed when trying to run a second instance with an Ant-based &#8230; <a title=\"Migrating my Mind to Maven (Part 3) \u2013 Running and Errors\" class=\"read-more\" href=\"https:\/\/www.pellissier.co.za\/hermien\/?p=315\" aria-label=\"More on Migrating my Mind to Maven (Part 3) \u2013 Running and Errors\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[2,3,5],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1v8WL-55","_links":{"self":[{"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=\/wp\/v2\/posts\/315"}],"collection":[{"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=315"}],"version-history":[{"count":0,"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=\/wp\/v2\/posts\/315\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pellissier.co.za\/hermien\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}