Open Command Prompt in Windows and type following commandĮrror message is displayed because Maven is not configured in our local machine.It is a good practise to store the binary on C:/ directory root. Save Apache Maven binary on any path you want on your local machine.Setting up Apache Maven environment in our local machine: Its file must be in local machine and can be then used for building projects. Since download file is a binary file and not an executable file, Apache Maven needs no installation. Its binary file can be downloaded from the Apache Maven Central Repository Pre-requisite: Download Maven and set its environmentĪpache Maven is a free build tool. Here, We create a simple Java Project with one source file App.java which will give the following output: Hello World All the required source code files will be automatically handled by Maven and stored in src/main/ folder and built by using pre-defined Maven functions. Our aim is to create a basic Java Project from scratch. war file which is a platform independent binary file. It can also be modified to work with C++ and Ruby language.Īpache Maven automatically creates a hierarchy for source code, its unit test cases and after the build, it creates a target/ folder containing the. Reading time: 30 minutes | Coding time: 15 minutesĪpache Maven is a Configuration-oriented build tool used to build projects whose source code in written in Java.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |