This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270515 - Improve error message when Maven installation is missing
Summary: Improve error message when Maven installation is missing
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: Dev
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-28 14:54 UTC by _ gtzabari
Modified: 2017-04-28 14:54 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2017-04-28 14:54:54 UTC
Product Version: NetBeans IDE Dev (Build 201704270002)
Java: 1.8.0_131; Java HotSpot(TM) 64-Bit Server VM 25.131-b11
Runtime: Java(TM) SE Runtime Environment 1.8.0_131-b11
System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

When the Maven installation directory is incorrect, or points to a Maven installation that has been deleted, users see the following error:

cd C:\Users\Gili\Documents\holdmyspot\realestate\backend; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_131" "M2_HOME=C:\\Program Files\\apache-maven-3.3.9" cmd /c "\"\"C:\\Program Files\\apache-maven-3.3.9\\bin\\mvn.bat\" -Dsun.net.http.allowRestrictedHeaders=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans Dev 201704270002\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 test\""
The system cannot find the path specified.

Expected behavior: Netbeans should clarify that "The system cannot find the path specified." means that the Maven installation directory needs to be updated.