Maven – HP Integrity NonStop J-Series User Manual

Page 25

Advertising
background image

4.

If the PATH and ANT_HOME variables are listed in the User Variables dialog box, verify that:

The PATH variable includes the bin directory of <Ant Installation Directory>

The ANT_HOME variable is set to <Ant Installation Directory>

If the PATH and ANT_HOME variables exist but do not contain the respective directories, do the
following:
1.

Add <Ant Installation Directory>\bin to PATH, separated by semicolon, and
<Ant Installation Directory>

to ANT_HOME.

For example: Add C:\ant1.7.0RC1\bin to PATH and C:\ant1.7.0RC1 to ANT_HOME.

2.

Click OK.

3.

Click Apply Changes.

If the PATH and ANT_HOME variables do not exist, follow these steps:
1.

Click New on the User Variables dialog box.

2.

Enter the variable name as PATH and variable value as <Ant Installation
Directory>\bin

.

3.

Enter the variable name as ANT_HOME and variable value as <Ant Installation
Directory>

.

For example: Enter C:\ant1.7.0RC1\bin as the value of PATH and C:\ant1.7.0RC1
as the value of ANT_HOME.

4.

Click OK.

5.

Click Apply Changes.

If you do not have Ant 1.7.0 installed on your Windows system, download the
apache-ant-1.7.0-bin.zip

file from

http://archive.apache.org/dist/ant/binaries

and set

the PATH and ANT_HOME variables as described above.

Maven

You must have Maven version 2.2.1 installed on the Windows system.

If you already have Maven installed, check its version using the command:

command prompt> mvn -v

Apache Maven 2.2.1 (r801777; 2009-08-07 00:46:01+0530)
Java version: 1.6.0_03
Java home: C:\Program Files\Java\jdk1.6.0_03\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

If the mnv -v command returns the following error, set the PATH and MAVEN_HOME variables:

'mvn' is not recognized as an internal or external command,
operable program or batch file.

To set the variables:
1.

Right-click My Computer on your desktop and select Properties.

The System Properties window appears.

2.

Click the Advanced tab.

3.

Click Environment Variables.

A list of environment variables appears.

4.

If the PATH and MAVEN_HOME variables are listed in the User Variables dialog box, verify
that:

The PATH variable includes the bin directory of <Maven Installation Directory>

The MAVEN_HOME variable is set to <Maven Installation Directory>

Prerequisites

25

Advertising
This manual is related to the following products: