Netbeans was installed using the ubuntu software manager.
The instructions on the netbeans website for setting up a maven project in netbeans are the following:
Choose File > New Project (Ctrl-Shift-N) to open the New Project wizard.
Select NetBeans Application from the Maven category:
But the maven category is not there on my installation.
Also on the website:
Select the Miscellaneous category in the Options window and click the Maven tab.
But there is no maven tab at all. What's the reason for maven not being there, and how can I get it working?
Thanks!
You have to install the maven plugin inside Netbeans.
Go in the menu Tools -> Plugins
In the Available plugins section, select the Maven plugin from the Java SE category and install it. You can use the search box to find it easily.
Install maven in ubuntu first using command
sudo apt-get install maven
Related
i have to rebuilt a maven 1.0 webapplication in Java. However i can not get the application to run in Eclipse IDE.
I already installed Eclipse Luna 4.4 EE including JDK 1.7.
Maven 1.0 was installed succesfully via cmd .bat file.
As Server for the application Tomcat 7 is used.
What do i have to do to migrate the project properly into eclipse.
Any help woulde be much appreciated.
The Problem occured to me is when i tried to import the project as existing maven project it doesnot regconize it as a maven project. And the import stays dead.
Maven Eclipse plugin installation step by step:
Open Eclipse IDE
Click Help -> Install New Software...
Click Add button at top right corner
At pop up: fill up Name as "M2Eclipse" and Location as "http://download.eclipse.org/technology/m2e/releases" or http://download.eclipse.org/technology/m2e/milestones/1.0
Now click OK
After that installation would be started.
Another way to install Maven plug-in for Eclipse:
Open Eclipse
Go to Help -> Eclipse Marketplace
Search by Maven
Click "Install" button at "Maven Integration for Eclipse" section
Follow the instruction step by step
After successful installation do the followings in Eclipse:
Go to Window --> Preferences
Observe, Maven is enlisted at left panel
Finally,
Click on an existing project
Select Configure -> Convert to Maven Project
Now you can import project.
From command line if you have maven in your system variables, you can do
mvn eclipse:eclipse in your project path.
If not works, you can follow this guide:
https://www.mkyong.com/maven/no-more-mvn-eclipseeclipse-whats-next/
This is screenshot from a list of available projects. You can follow: File/New/Other. But there is no option for choosing Maven Project.
I have Eclipse IDE for Java EE developers and Ubuntu 16.04
screenshot of eclipse ide
How to create a new maven project?
You need to install Maven Integration for Eclipse from the Marketplace.
Help->Eclipse Marketplace.
type 'maven' in the search box and install Maven Integration for Eclipse.
Install m2eclipse plugin first, go to Window -> Preferences. Check "Maven" is enlisted at the left panel list.
or use the latest version of eclipse
I am trying to install maven 1.5 in eclipse unfortunately I am getting errors like:
Cannot complete the install because one or more required items could not be found.
Software being installed: m2e - Maven Integration for Eclipse (includes Incubating components) 1.5.0.20140606-0033 (org.eclipse.m2e.feature.feature.group 1.5.0.20140606-0033)
Missing requirement: Maven Integration for Eclipse 1.5.0.20140606-0033 (org.eclipse.m2e.core 1.5.0.20140606-0033) requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not be found
Cannot satisfy dependency:
From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.5.0.20140606-0033 (org.eclipse.m2e.feature.feature.group 1.5.0.20140606-0033)
To: org.eclipse.m2e.core [1.5.0.20140606-0033]
EClipse juno doesnt support maven 1.5..still they have not added capability of 1.5
so try 1.4 or 1.3
http://download.eclipse.org/technology/m2e/releases/1.3
http://download.eclipse.org/technology/m2e/releases/1.4
MAVEN INSTALLATION
OPTION 1 :
Open Eclipse IDE
Click Help -> Install New Software...
Click Add button at top right corner
At pop up: fill up Name as "M2Eclipse" and Location as http://download.eclipse.org/technology/m2e/releases/1.4
Now click OK
After that installation would be started.
OPTION 2 :-
Open Eclipse
Go to Help -> Eclipse Marketplace
Search by Maven
Click "Install" button at "Maven Integration for Eclipse" section
Follow the instruction step by step
After successful installation do the followings in Eclipse:
Go to Window --> Preferences
Observe, Maven is enlisted at left panel
Finally,
Click on an existing project
Select Configure -> Convert to Maven Project
This is because maven 1.5 is not compatible with eclipse juno.
So we need to use maven 1.4 or 1.3
Steps to install maven 1.4 is below
Click Help in eclipse
Install New Software
Url for the location of site is "http://download.eclipse.org/technology/m2e/releases"
Uncheck the checkbox "Show only the latest versions of available software"
if do not uncheck the checkbox it will only latest version and do not show maven 1.4.
Select m2e and slf4j of 1.4 version and click next.
Note: maven v 1.3 is compatible, correct url for juno: download.eclipse.org/technology/m2e/releases/1.3
If all the above options don't work, then first install the WST plugin in your eclipse.
In order to do that, in Eclipse Juno, go to Install New Software > Add, under Name place Juno and under Location URL insert http://download.eclipse.org/releases/juno.
Then, select WST Server Adapters under Web, XML, Java, ... (last option of the list).
Accept licensing agreement and restart Eclipse.
Then resume the usual procedure to install Maven.
Choose menu Help \ Install New Software..., then add this repository link:
http://download.eclipse.org/technology/m2e/releases/1.2/1.2.0.20120903-1050/
Then install for Eclipse WTP (Web Tool Platform) Juno 4.2.
Uncheck the option "Select only the latest version of this software", so that versions of the plugin compatible to your eclipse will be displayed, you can select one of them.
download.eclipse.org/technology/m2e/releases/1.3 has worked for
Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 2
Build id: 20120216-1857
Thanks
I created the maven-spring project using the m2e plugin of eclipse. The project is working fine. I want to do a Maven build in Eclipse the project without using any commands in command prompt i.e. using the eclipse IDE only. But I am not able to find the option for Maven build from Eclipse IDE.
Below are the options I am getting when I right click on my project:
Kindly advise.
you can follow this link, right click maven project -> run as -> maven build..
http://www.tutorialspoint.com/maven/maven_eclispe_ide.htm
Right-click on pom.xml, then go to the "Run As" menu (not the "maven" menu). The various plug-in goals (and lifecycle targets) are documented here.
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.