I want to create a maven project on netbeans 7.3.1 which comes bundled with maven 3.0.5. Couple of days ago, I created a maven project successfully. But today I dont see maven option the categories of new project window only. Any clues?
I've had a similar problem when I've upgraded from 7.3 to 7.4. In 7.3 I had the "Groovy and Grails" module but I haven't installed it in 7.4, although I clicked to import settings from 7.3.
My solution was to remove the folder under C:\Users\a\AppData\Roaming\NetBeans\7.4\config\Templates (in particular there was a folder named C:\Users\a\AppData\Roaming\NetBeans\7.4\config\Templates\Project\Groovy\Maven2 )
Related
I tried to create one project on Netbeans. I tried in my personal laptop so Netbeans was fresh install. after installation I opened the IDE and Tried to create new project NewProject->Maven->WebApplication but it shows one error that cmd command failed. the build wasn't even started.is there anything to do with maven in netbeans tools->java->maven.
Netbeans 8.2
JDK 8u231
This image contain the error
Why don't you use newer NetBeans version? Newest version is NetBeans 11.2: https://netbeans.apache.org/ NetBeans IDE 8.2 was released on 3 October 2016!
I've got a similar problem, but an error, I've got some weird characters.
I have a new version of Maven 3.6.0, so I've changed it to "bundled" in option->Java->Maven then Netbeans took his own version (3.0.5) and problem was resolved. Hope it would help maven version
I moved forward to Eclipse 4.8. My Projects Maven projects under subversion is not displayed as Java Project and the pom.xml is displayed in XML-Editor instead of the well-meant pom-editor.
Steps I done:
Installed eclipse photon
Opend new/empty workspace
Installed subversive from update-site.
Restart
Installed svn-connector SVNKIT from subversive-plugin.
Restart
Checkout project from SVN.
Remove project without delete on HDD.
Import existing maven project from workspace.
Hit "Maven->Update Project..." on all projects in the workspace.
The Project's icon is showing the M-Icon-Overlay let me think it is a maven project. The Project's icon does not contain the J-Icon-Overlay what let me think he does not treat it as a Java project.
Any ideas?
Doesnt work at the moment. I created a workspace in an older version and opend the workspace again in the new eclipse photon. It asks to convert it to the new eclipse's workspace and everything is fine.
I am totally new to working with Maven in Eclipse. I am using the latest verion of Eclipse (Kepler). According other posts, as well as Eclipse's help page http://help.eclipse.org/kepler/index.jsp?topic=//org.eclipse.platform.doc.user/tasks/tasks-127.htm , I am supposed to try to install new software within Eclipse IDE.
However, when I try to Add Eclipse's recommended m2e release, Eclipse gives me an error:
Unable to read repository at http://download.eclipse.org/technology/m2e/releases.
download.eclipse[...]releases is not a valid repository location.
Essentially I run into the same problem no matter which approach I take outlined on the Eclipse help page. Is there some other/better way to integrate Maven with Eclipse? Are there steps I should have taken before this? All I have done so far is install Eclipse. How can I successfully get Maven running?
EDIT: Now I am using Java EE and still run into problems when making a Maven project. I get a "Could not resolve archetype error" could this be because I'm behind a proxy?
Most convenient option:
The reason you're getting that error is because that repo is deprecated, and it has been moved. Example of how the new repo looks:
http://download.eclipse.org/technology/m2e/releases/1.0/1.0.0.20110607-2117
Copy that in the Install New Software view, and you will see that it works.
Other options:
Install the Maven Integration from Eclipse Marketplace (Help -> Eclipse Marketplace)
Download the EE version of Kepler (comes with m2e)
Choose your own release (bottom of the page) and use the Install New Software view.
I had the same issue here and the above answer didnt work for me. Although Maven is installed I cane update my dependencies on my folder the way I used to be able to do on Juno. What I did was used the pom.xml from my current project and pasted it into the pom of my new project I created specifically in Eclipse using new project->Maven.
This was eclipse knows its a Maven project and allows my all the benefits of being one.
To install maven properly for eclipse you should set the correct repos as follow:
Help=>install=>
then work with
http://download.eclipse.org/releases/
example of eclipse version : mars or kepler ..
I installed JUNO Eclipse and then wanted to get the maven plugin for eclipse. After some searching I got to know that I can install the plugin using eclipse market place. So I searched the plugin and installed it successfully but when I restarted eclipse, I cannot see Maven option when I right click on any project. When I click on WINDOWS--> PREFERENCES , I can see the Maven option there. It means, maven got installed but not sure if completely.
I reinstalled it again but still no luck. Can anyone help?
FYI, I am using maven 3.0.4
If your project is still a standard Java project, then you have to enable Maven for this project. You can do this by right-clicking on the project, then choose Configure -> Convert to Maven project. Then you have to type group id, artifact id etc. and the pom.xml is created for you.
You need to make sure you have installed the Java JDK and add it to the Preferences -> Java -> Installed JREs.
I have an existing Dynamic Web Project in Eclipse Indigo and the m2e plugin installed. In another version of my eclipse setup that I dont quite remember (my hdd crashed) I could just right click on the project -> Maven -> Enable Dependency Management.
This menu is gone for my Dynamic Web Project in my current eclipse version. Whats the way to go now? I tried right click on the project folder -> configure -> convert to maven project but that fails with errors.
M2Eclipse has migrated to an Eclipse project from Sonatype called m2e. Therefore in you Eclipse Indigo you have installed m2e whereas your old Maven projects in the older Eclipse version were created with M2Eclipse according to your right-click description. Now under normal circomstances everything should be working flawlessly and we wouldn't have this discussion. Unfortunately with the move of the project the namespace has changed from org.maven.ide.eclipse to org.eclipse.m2e.core and old Maven projects created with M2Eclipse are not immediately recognised as Maven projects in m2e. Here's a description of how to migrate your projects accordingly.
Erik, importing an existing maven project would let m2e discover and propose you to install m2e-wtp, the Maven Integration for Eclipse WTP plugin. Since you're starting from scratch, you should install m2e-wtp yourself (see https://github.com/sonatype/m2eclipse-wtp/wiki).
Now in order to quickstart a new mavenized web project, you should go to the "New Project" menu and choose new Maven project.
At this point, either you choose to create a "simple" project, in which case you need to select the "war" packaging on the following screen, or use a maven archetype, which will quickstart a new preconfigured web project, with the flavor you want (jsf, spring ...). The m2e-wtp wiki has links to help you get started.
Note : at this point Eclipse to Maven conversion is pretty much inexistant (only creates a bare pom.xml), that's why I recommend to create a maven project first. Hopefully, this should get better in the next m2e 1.1 (June 2012)