You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jim Goodwin (JIRA)" <ji...@codehaus.org> on 2011/12/01 11:07:39 UTC
[jira] Reopened: (MNGSITE-146) Installation Instructions don't work
for Windows
[ https://jira.codehaus.org/browse/MNGSITE-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jim Goodwin reopened MNGSITE-146:
---------------------------------
I read the instructions closely and saw that text. What I DIDN'T do was write my problem description in Jira carefully. I mistakenly said I extracted the archive to c:\apache-maven-3.0.3. I didn't see a way to go back and edit the original description.
I actually extracted it to c:\ whereupon it created c:\apache-maven-3.0.3. The resulting directory structure is below. If I'm reading the instructions correctly, in my case, the M2_HOME environment variable should be set to c:\apache-maven-3.0.3 and the PATH environment variable should contain %M2_HOME%\bin. Is that not correct?
C:\apache-maven-3.0.3>dir
Volume in drive C is TI105955W0C
Volume Serial Number is 3403-3BA7
Directory of C:\apache-maven-3.0.3
11/30/2011 07:52 PM <DIR> .
11/30/2011 07:52 PM <DIR> ..
11/30/2011 07:50 PM <DIR> apache-maven
02/28/2011 06:28 PM 12,875 build.xml
02/28/2011 06:33 PM 8,198 DEPENDENCIES
02/28/2011 06:28 PM 11,838 doap_Maven.rdf
02/28/2011 06:27 PM 11,560 LICENSE.txt
11/30/2011 07:50 PM <DIR> maven-aether-provider
02/28/2011 06:28 PM 1,314,262 maven-ant-tasks-2.1.1.jar
11/30/2011 07:50 PM <DIR> maven-artifact
11/30/2011 07:50 PM <DIR> maven-compat
11/30/2011 07:51 PM <DIR> maven-core
11/30/2011 07:52 PM <DIR> maven-embedder
11/30/2011 07:52 PM <DIR> maven-model
11/30/2011 07:52 PM <DIR> maven-model-builder
11/30/2011 07:52 PM <DIR> maven-plugin-api
11/30/2011 07:52 PM <DIR> maven-repository-metadata
11/30/2011 07:52 PM <DIR> maven-settings
11/30/2011 07:52 PM <DIR> maven-settings-builder
02/28/2011 06:27 PM 1,030 NOTICE.txt
02/28/2011 06:28 PM 22,607 pom.xml
02/28/2011 06:28 PM 396 README.bootstrap.txt
02/28/2011 06:28 PM 304 README.md
02/28/2011 06:28 PM 78 README.txt
11/30/2011 07:50 PM <DIR> src
10 File(s) 1,383,148 bytes
15 Dir(s) 423,846,154,240 bytes free
C:\apache-maven-3.0.3>
> Installation Instructions don't work for Windows
> ------------------------------------------------
>
> Key: MNGSITE-146
> URL: https://jira.codehaus.org/browse/MNGSITE-146
> Project: Maven Project Web Site
> Issue Type: Bug
> Environment: Windows 7
> Reporter: Jim Goodwin
> Priority: Minor
>
> Step 3 of the Installation Instructions on this page http://maven.apache.org/download.html say to add %M2_HOME%\bin directory to the PATH environment variable. There is no %M2_HOME%\bin directory. For example, when I extracted the downloaded archive, I extracted it to c:\apache-maven-3.0.3. That is supposed to be path for M2_HOME, however there is no \bin directory under that path. There is a \bin directory under c:\apache-maven-3.0.3\apache-maven.
> The end result is that running the mvn command results in "'mvn' is not recognized as an internal or external command, operable program or batch file."
> Here is the content of my M2_HOME environment variable:
> C:\apache-maven-3.0.3>echo %M2_HOME%
> C:\apache-maven-3.0.3
> Here is the content of my PATH environment variable:
> C:\apache-maven-3.0.3>echo %PATH%
> C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\IntelWiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\TortoiseSVN\bin;C:\apache-ant-1.8.2\bin;C:\IBM\SDP\runtimes\base_v7\java\bin;C:\apache-maven-3.0.3\bin
> Following step 7 of the instructions results in:
> C:\apache-maven-3.0.3>mvn --version
> 'mvn' is not recognized as an internal or external command, operable program or batch file.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira