How to create a GWT project with MAVEN support? - java

I have core experience of maven(on console) and GWT. Now I want to create a simple GWT Project with the support of maven in eclipse. Is there is any tutorial for GWT-Maven ?
so please describe step by step procedure to configuration in eclipse.

gwt-maven-plugin is useful.
Created project by following command can be imported as "Existing Maven Projects" on Eclipse.
$ mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.7.0

Related

IntelliJ - maven project, View/Tool Windows without maven option

I use IntelliJ IDEA Community 2020.1. I have generated a maven project structure from the command line using a custom archetype. I open that project in IntelliJ this way: File/New/Project from Existing Sources/Create project from existing source. A project is opened but I don't see a maven option in View/Tool Windows. I would like to run mvn install from IDE. What I'm doing wrong ?
You need to add the Maven support for the project that you have created.
Simply right-click on the project --> Add Framework Support --> Choose maven from the option.
For detail, you can follow the steps mentioned here Add maven support.

How to use command prompt in eclipse to create Maven Project?

I am new to the Maven, Vaadin, Eclipse Kelper. I am working on project which include Maven, Vaadin.
I don't know how to create maven project using command prompt. I tried using Vaadin.com website, but not found the proper steps.
you install maven plugin for eclipse. And then you will have facility to create maven projects in eclipse with GUI.
Follow this tutorial: https://vaadin.com/wiki/-/wiki/Main/Using+Vaadin+with+Maven
After that in eclipse you can import the project as existing maven project.

How do I set up a new Java project with Eclipse, Maven, Grails and git?

I'm new to Grails development and would like to set up a new project, so I can use Eclipse as IDE and build it on my CI (Jenkins) with Maven. This is my environment:
Java 1.6.0
Grails 2.1.0
Maven 2.2.1
Eclipse Juno with the m2e and egit plugins
I used the following commands from
http://grails.org/doc/latest/guide/commandLine.html#antAndMaven:
mvn archetype:generate -DarchetypeGroupId=org.grails \
-DarchetypeArtifactId=grails-maven-archetype -DarchetypeVersion=2.1.0 \
-DgroupId=com.company.dep -DartifactId=project
mvn initialize
But after importing it as a maven project in Eclipse, there were erros about slf4j and com.sun.tools not found and lifecycle phases not mapped.
What steps are necessary to get this running in Eclipse?
Plugins, Plugins, Plugins... you can add the maven plugin / Grails plugin for eclipse and just build a new project.
Select the option to create a maven project (it will auto generate the pom files for you) then you can add Grails to it...
Similarly you can start a new grails project and then add maven to it. It will download all the dependencies automatically.
Most plugins are free to download from : http://marketplace.eclipse.org
com.sun.tools error is commonly caused when Eclipse uses a JRE and not JDK.
Grails has its own mechanism for creating projects, use it. Since Grails 2.1 you can generate the maven stuff afterwards.
You can follow this proces:
Get STS - Springsrouce Tool Suite (actual 3.0), based on Eclipse
Install the Grails plugin into STS.
Get the Grails FW, unpack it and configure the path to it in STS.
Create new project via Grails command: grails create-app
Import it into Git.
About maven integration, there is a good article:
http://www.znetdevelopment.com/blogs/2012/07/11/grails-2-1-and-maven-integration-simple-project/

Eclipse Marketplace - Maven Integration

I am in Eclipse Indigo and trying to install Maven Support for eclipse. I search Eclipse Marketplace with "maven" and found there are two entries:
Maven Integration for Eclipse WTP.
Maven Integration for Eclipse.
Now I am confused to choose them.
I am developing web application. So what is the entry I should go for?
Install them both. The first is specifically designed to integrate with WTP, the second one is general Maven integration in Eclipse.
Have you tried to just use Maven? With Indigo, m2e is already integrated. If you look at eclipse.org, you will find there the following features integrated:
If you open the preferences in Eclipse (Windows > Preferences), you will find there the Maven configuration for Eclipse:
You have to configure there, where your Maven installation lives, and can start to use Maven inside Eclipse.

Build Netbeans project using Maven commands

How can I build a Netbeans project by using pom.xml?
In Eclipse I have to use following commands to do that:
mvn install
then
mvn eclipse:eclipse
What are similar commands to build projects in Netbeans?
I think your question is: "How to import a Maven based project into NetBeans for development?"
If so, than see NetBeans wiki. You should just install the Maven plugin and import the project from pom.xml.
P.S. The mvn eclipse:eclipse is a bit deprecated. Check out the m2eclipse.
Import Maven project in Netbeans. Netbeans itself will build your web project.
Netbeans 7 can open Maven projects automatically. In Netbeans just File->Open Project and point to the dir with your pom.xml in it.

Categories

Resources