Issue
I'm trying to create a Maven project in Netbeans (for the first time), Every time i try to create a project, i get this error message:
------------------------------------------------------------------------ BUILD FAILURE ------------------------------------------------------------------------ Total time: 0.095s Finished at: Thu Jul 03 12:07:01 CEST 2014 Final Memory: 4M/112M ------------------------------------------------------------------------ No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException The system cannot find the path specified.
and i the project folder/files aren't created.
I'm using the Netbeans 8 IDE and download the full one (that contain J2EE and stuff), does that mean i have Maven installed by default, or i have to download and install it separately?
Solution
Please check if there is settings.xml file present on your system at below path C:\Users\your_username\.m2\
There will a folder repository and settings.xml file inside .m2 folder
If the settings.xml file is not present, create it yourself.
Sample Content of settings.xml below. Enter the proxy IP address and port which you are using in and tags respectively.
<settings>
<proxies>
<proxy>
<id>default</id>
<active>true</active>
<protocol>http</protocol>
<host><IP Address></host>
<port>8080</port>
</proxy>
</proxies>
</settings>
Answered By - Prakhar Bhatt
Answer Checked By - Dawn Plyler (JavaFixing Volunteer)