Magnolia 4.5 reached end of life on June 30, 2016. This branch is no longer supported, see End-of-life policy.
Apache Maven is used to build Magnolia. See Maven Getting Started Guide to learn about Maven. Introduction to POM is also useful since pom.xmls are used for Magnolia. Documentation on Maven can also be found in Eclipse by clicking Help > Help Contents and opening Maven: The Definitive Guide.
Download Maven 2.2.1. Other versions may not work.
This procedure consist of three parts: installing Maven (this page), adding environment variables and initializing the environment.
You will need a Nexus username and password at the end of this procedure.
To download Maven:
To install Maven:
C:\Program Files\Apache Software Foundation
and installed Maven version 2.2.1. The subdirectory apache-maven-2.2.1
is created from the archive.mvn --version
.m2
directory in user home directory. For Windows Vista, the user home directory is C:\Users\username
. Windows won't accept .m2
as a folder name due to starting with a period. Type mkdir .m2
in Command Prompt to create the directory.Next: Deploying a WAR on Tomcat
If mvn --version
is not a recognized command:
cd %java_home%
and verify directory is changed correctly. JAVA_HOME
setting in Environment Variables.cd %m2%
and verify directory is changed correctly. M2
and M2_HOME
settings in Environment Variablespath
and verify that M2
and JAVA_HOME
directories are in the path. M2
and JAVA_HOME
directories are not in path, check Path
setting in Environment Variables.Add MAVEN_OPTS
environment variable in the user variables to specify JVM properties, e.g. the value -Xms256m -Xmx512m. This environment variable can be used to supply extra options to Maven.