In the user variable, just append the %M2% to reflect the maven bin folder. This environment variable can be used to supply extra options to Maven.Īdd/ Update path variavles for environment and user sections. Using the same dialog, add the MAVEN_OPTS environment variable in the user variables section to pass the JVM properties, e.g. Also add the M2 variable in the environemnt variables section as “%M2_HOME%\bin”. Be sure to omit any quotation marks around the path even if it contains spaces. Open the environment variables for your computer and set the M2_HOME as the maven’s home folder. There is nothing else to be done for installing the maven package. The toot folderĭ:\Softwares\apache-maven-3.1.0 is the M2_HOME values when you are setting the environment variables. Install Mavenĭownload the maven package from here and extract the zip file to the appropriate location. (Read : What is Maven? and Custom Plug-In for Maven). It is very easy to set up using the following steps. In windows, it’s quite easy too but we need to alter the set of environment variables to make it work. As we know, Linux does the installation through its package manager and there is no need for the mannual settings of path or anything else. It is much easier in the Linux OS then setting up in the Windows OS. For more details, please refer to Use the command line version of Maven to create a project.In my previous article I have written about how to install Maven in Ubuntu?. Create the plugin from the archetype using the Maven command line tool mvn, then use import existing maven project to add the generated project to Eclipse.Therefore you must enable your maven project with the latest M2eclipse plugin from the Installing m2eclipse website.) (Please note: the newer version of M2eclipse plugin is not compatible with the old Maven Project. Install the “newer version” from the following site: You first will need to uninstall m2eclipse 0.12.x, restart Eclipse before you can install the “newer” version from the website above.Users will first need to uninstall m2eclipse 0.12.x, restart, and then install 0.10.x available from the following site:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |