Archive

Archive for the ‘Maven’ Category

Maven notes – Exercise

February 20, 2016 Leave a comment

Setup Maven

  • Download latest Maven (3.3.9) from http://maven.apache.org/download.cgi
  • Unzip it to the folder you want to install Maven.
  • Add both M2_HOME and MAVEN_HOME variables in the Windows environment, and point it to your Maven folder (C:\Apache Maven\apache-maven-3.3.9).
  • Update PATH variable, append Maven bin folder – %M2_HOME%\bin, so that you can run the Maven’s command everywhere.
  • Restart/log off windows if necessary.
  • To verify it, run mvn –version in the command prompt.

Setup local repository path

<localRepository>D:\MAVEN_REPO</localRepository>

Default location for local repository is ${user.home}/.m2/repository. So I change it. Read more…

Advertisements
Categories: Maven

Maven notes – Introduction part 1

February 20, 2016 Leave a comment

What is Maven?

Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information.

Maven use Convention over Configuration which means developers are not required to create build process themselves. When a Maven project is created, Maven creates default project structure. Developer is only required to place files accordingly and he/she need not to define any configuration in pom.xml. In order to build the project, Maven provides developers options to mention life-cycle goals and project dependencies (that rely on Maven pluging capabilities and on its default conventions). Much of the project management and build related tasks are maintained by Maven plugins.

How maven works Read more…

Categories: Maven