Maven and co.
←Older revision | Revision as of 04:38, 2 November 2019 | ||
Line 17: | Line 17: | ||
=== [[Maven]] and co. === | === [[Maven]] and co. === | ||
- | Later [[NetBeans]] also started to support [[Maven]]. As the [[Maven]] is a way more declarative (compared to [[Ant]]), it was much easier for the IDE to understand the build scripts written by other people without using [[NetBeans]]. As a result following magic was possible: Check a project from a [[Git]] repository out and open (yes, ''open'', not ''import''!) the project in the IDE. The IDE reads '''pom.xml''' and figures out everything - [[classpath]], source level, [[Javac]] options, [[Javadoc]] configuration and more. Just by having '''maven-exec-plugin''' definition section the '''pom.xml''' the IDE immediately knows how to execute the project. And more. Again, as in the [[Ant]] case, the [[Maven]] is used internally and as such the products of command line vs. IDE builds are rarely different. | + | Later [[NetBeans]] also started to support [[Maven]]. As the [[Maven]] is a way more declarative (compared to [[Ant]]), it was much easier for the IDE to understand the build scripts written by other people without using [[NetBeans]]. As a result following magic was possible: Check a project from a [[Git]] repository out and open (yes, ''open'', not ''import''!) the project in the IDE. The IDE reads '''pom.xml''' and figures out everything - [[classpath]], source level, [[Javac]] options, [[Javadoc]] configuration and more. Just by having '''maven-exec-plugin''' definition section in the '''pom.xml''' the IDE immediately knows how to execute the project. And more. Again, as in the [[Ant]] case, the [[Maven]] is used internally and as such the products of command line vs. IDE builds are rarely different. |
Btw. the whole project system is pluggable and extensible. As a result of that support for [[Gradle]], [[JDeveloper]], [[Eclipse]] project formats has been written as well and works the same: No ''import'', real ''open''! But from my perspective [[Maven]] support remains the best. | Btw. the whole project system is pluggable and extensible. As a result of that support for [[Gradle]], [[JDeveloper]], [[Eclipse]] project formats has been written as well and works the same: No ''import'', real ''open''! But from my perspective [[Maven]] support remains the best. |