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.
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 Foundationand installed Maven version 2.2.1. The subdirectory
apache-maven-2.2.1is created from the archive.
.m2directory in user home directory. For Windows Vista, the user home directory is
C:\Users\username. Windows won't accept
.m2as a folder name due to starting with a period. Type
mkdir .m2in Command Prompt to create the directory.
mvn --version is not a recognized command:
cd %java_home%and verify directory is changed correctly.
JAVA_HOMEsetting in Environment Variables.
cd %m2%and verify directory is changed correctly.
M2_HOMEsettings in Environment Variables
pathand verify that
JAVA_HOMEdirectories are in the path.
JAVA_HOMEdirectories are not in path, check
Pathsetting in Environment Variables.
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.