-
Notifications
You must be signed in to change notification settings - Fork 571
(SM autoconverted) maven build system
[WARNING!!!]
Page imported from the old SlightlyMagic wiki. To be integrated into other wiki pages and/or README... or deleted.
WORK IN PROGRESS
http://maven.apache.org/download.html#Installation.
To test your installation you should execute the following command:
mvn --version
You should see something like like this:
Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: /opt/local/share/java/maven3
Java version: 1.6.0_24, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.6.7", arch: "x86_64", family: "mac"
Maven should already be installed. To test installation, open the Terminal application run the test command above.
- Use the above link to download the zip file.
- Unzip the file into a directory.
- Add the directory to your "PATH" variable.
- Open a command window
- Execute the test command above.
- Open your package manager e.g. Synaptic on Debian
- Install the Maven2 package
- Open a Terminal
- Execute the test command above.
To test your installation you should execute the following command:
svn --version
You should see something like like this:
svn, version 1.6.17 (r1128011)
compiled Jun 2 2011, 09:40:34
Maven should already be installed. To test installation, open the Terminal application run the test command above.
- Use the above link to download the zip file.
- Unzip the file into a directory.
- Add the directory to your "PATH" variable.
- Open a command window
- Execute the test command above.
- Open your package manager e.g. Synaptic on Debian
- Install the Subversion package
- Open a Terminal
- Execute the test command above.
From a terminal window, go to the directory where forge was checked out via GIT. Update to the latest version of the code
mvn scm:update
Use this command to perform a simple build of the jar file
mvn -U -B clean install
Use this command to do a snapshot package build
mvn -U -B clean -P osx,windows-linux install
Use this command to do a snapshot package build of the Windows/Linux package only
mvn -U -B clean -P windows-linux install
Use this command to do a snapshot package build of the Mac OSX package only
mvn -U -B clean -P osx install
Use this command to do a snapshot package build and site deployment
mvn -U -B clean -P osx,windows-linux install site deploy site:deploy
Use this command to do full package build and upload to GoogleCode
mvn -U -B clean -P osx,windows-linux install site release:clean release:prepare release:perform -Dusername="
" -Dpassword="
"
where and are your GoogleCode credentials (typically something like "[email protected]" "w4e4sdg")
These utilities are used in the build process. They are automatically included in the build. The links are for reference only.