{"id":4814,"date":"2013-10-17T05:04:56","date_gmt":"2013-10-16T18:04:56","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=4814"},"modified":"2016-08-20T14:23:26","modified_gmt":"2016-08-20T04:23:26","slug":"netbeans-maven-java-se-application-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/netbeans-maven-java-se-application-primer-tutorial\/","title":{"rendered":"NetBeans Maven Java SE Application Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Java\/Maven\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"NetBeans Maven Java SE Application Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Java\/Maven\/NetBeans_maven_Primer-33of.jpg\" title=\"NetBeans Maven Java SE Application Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">NetBeans Maven Java SE Application Primer Tutorial<\/p><\/div>\n<p>Today&#8217;s NetBeans Maven Java SE Application primer tutorial shows a simple application project using Maven, which is a very powerful and dynamic application building automation tool.   Let&#8217;s see below some of what Wikipedia says about Maven.<\/p>\n<blockquote><p>Maven is a build automation tool used primarily for Java projects. Maven serves a similar purpose to the Apache Ant tool, but it is based on different concepts and works in a different manner. Like Ant it can also be used to build and manage projects written in Java, C#, Ruby, Scala, and other languages. The Maven project is hosted by the Apache Software Foundation, where it was formerly part of the Jakarta Project.<\/p>\n<p>Maven uses an XML file to describe the software project being built, its dependencies on other external modules and components, the build order, directories, and required plug-ins. It comes with pre-defined targets for performing certain well-defined tasks such as compilation of code and its packaging.<\/p>\n<p>Maven dynamically downloads Java libraries and Maven plug-ins from one or more repositories such as the Maven 2 Central Repository, and stores them in a local cache.[3] This local cache of downloaded artifacts can also be updated with artifacts created by local projects. Public repositories can also be updated.<\/p>\n<p>Maven is built using a plugin-based architecture that allows it to make use of any application controllable through standard input. Theoretically, this would allow anyone to write plugins to interface with build tools (compilers, unit test tools, etc.) for any other language. In reality, support and use for languages other than Java has been minimal. Currently a plugin for the .NET framework exists and is maintained,[4] and a C\/C++ native plugin is maintained for Maven 2.[5]<\/p><\/blockquote>\n<p>Programming <a target=_blank title='IDE information from Wikipedia' href='http:\/\/een.wikipedia.org\/wiki\/IDE\u200e'>IDE<\/a>s take a lot of the hard work out of tasks such as compiling and linking in languages such as Java, C, C++, VB.Net and C#.   In the case of NetBeans IDE, which this blog reintroduces to you today (it&#8217;s customary to shake hands, and no <a target=_blank title='pardon?' href='http:\/\/www.youtube.com\/watch?v=SGZV6fsotYo'>Klingon<\/a> is necessary), it can create a Java Web Application, for instance, as we do today to create a Tic Tac Toe game as a web application.   To cut a long story short, there aint nothin&#8217; wrong with a good ol&#8217; IDE, but beware of IDEs in <a target=_blank title='Ides of March' href='https:\/\/www.youtube.com\/watch?v=Je0gTnheVe4'>March<\/a>.<\/p>\n<p>In saying that about IDEs, and how they make programming easier, often with Open Source programming, it is advantageous to know what goes on &#8220;under the hood&#8221; (or even &#8220;in the &#8216;hood&#8221; &#8230; chortle, chortle).   So if you ever get an opportunity to get helped creating your own makefile (or make it yourself, even with the <a target=_blank title='Sweet Green Icing' href='http:\/\/www.youtube.com\/watch?v=CPMpeNDIGdk'>Sweet Green Icing<\/a> &#8230; knew it could be worked in!) for something, take the opportunity to learn how to do this, as the Open Source world will become a little easier to navigate with such types of knowledge.   You&#8217;ve got to admire those early designers of computer languages, and those days when all you had was this tiny bit of memory (<a target=_blank title='64k' href='http:\/\/www.crashonline.org.uk\/39\/z88.htm'>64k<\/a> or <a target=_blank title='Voyager computer system' href='http:\/\/www.activeastronomy.org\/Home\/daniel'>&#8220;into the heliosphere on 8,000 bytes of memory&#8221;<\/a>) to play with to create your program. <\/p>\n<p>So here, <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Java\/Maven\/\">today<\/a>, we build a simple Maven Java SE Desktop application to ask about the lengths of sides of a triangle, to calculate its area.<\/p>\n<p>NetBeans can be an IDE for much more than Maven (Java SE) &#8230; it can supervise other Java and other Maven language assists, PHP, C++, Groovy and HTML\/Javascript.   In coming days and weeks we&#8217;ll look at more.<\/p>\n<p>Link to downloadable NetBeans Maven Java SE Application Java programming source code at <a target=_blank title='App.java' href='http:\/\/www.rjmprogramming.com.au\/Java\/Maven\/App.java_GETME'>App.java<\/a><\/p>\n<p>Link to downloadable NetBeans Maven Java SE Application XML configuration file at <a target=_blank title='pom.xml' href='http:\/\/www.rjmprogramming.com.au\/Java\/Maven\/pom.xml_GETME'>pom.xml<\/a><\/p>\n<p>Link to Maven information from <a target=_blank title='Maven information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Apache_Maven'>Wikipedia<\/a>, from where the quite above originated.<\/p>\n<p>Link to Maven &#8220;spiritual home&#8221; from <a target=_blank title='Maven information from Wikipedia' href='http:\/\/maven.apache.org\/'>Apache<\/a>.<\/p>\n<p>Link to NetBeans &#8220;spiritual home&#8221; download page at <a target=_blank title='NetBeans download page' href='https:\/\/netbeans.org\/downloads\/'>NetBeans<\/a>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d4814' onclick='var dv=document.getElementById(\"d4814\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=Java\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d4814' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s NetBeans Maven Java SE Application primer tutorial shows a simple application project using Maven, which is a very powerful and dynamic application building automation tool. Let&#8217;s see below some of what Wikipedia says about Maven. Maven is a build &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/netbeans-maven-java-se-application-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,24,37],"tags":[96,319,644,647,757,833,997,1319],"class_list":["post-4814","post","type-post","status-publish","format-standard","hentry","category-elearning","category-netbeans","category-tutorials","tag-application","tag-desktop","tag-java","tag-java-se","tag-maven","tag-netbeans","tag-programming","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4814"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=4814"}],"version-history":[{"count":1,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4814\/revisions"}],"predecessor-version":[{"id":24295,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4814\/revisions\/24295"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=4814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=4814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=4814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}