I have a project which we implemented using GWT and Spring.
I want to make the project as maven enabled.
How can i achieve that?
I have seen GWT maven plugin. Is it definately required?
Thanks,
Saritha.
in the following link, I am unable to find how to add the plugin in the eclipse.
http://mojo.codehaus.org/gwt-maven-plugin/
how to run the mvn archetype:generate
I have followed http://www.uptick.com.au/content/getting-started-gwt-maven-and-eclipse link to install the gwt maven plugin. Everything was successful after that when iam trying to create maven project iam unable to find gwt-maven-plugin archetype
please help
You can probably write you own.. but in the meantime have a look at http://mojo.codehaus.org/gwt-maven-plugin/. I think the archetype is really usefull, because default GWT project does not necessarily follow Maven directory convention.
Related
What is the best maven archetype to start a JSF 2.2 project in Eclipse EE with?
I am currently learning JSF and am looking for a clean maven archetype to start my JSF project with. I tried a few archetypes with jsf in the title, but they don't seem to create a "clean" (no problems found) in eclipse. I am looking for an answer from experience.
I think there is no best one as every archetype comes with stuff one does not want. Since every one is different some modifications will always be required.
I would give the appfuse archetypes a try: http://appfuse.org/display/APF/AppFuse+QuickStart
mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-light-jsf-archetype -DarchetypeVersion=2.2.1 -DgroupId=com.mycompany -DartifactId=myproject -DarchetypeRepository=http://oss.sonatype.org/content/repositories/appfuse
I think they use MyFaces 2.1.9 but that should be easy to change :)
You could try this one: https://github.com/ignl/happyfacescrud
It contains quite a few features out of box.
I have recently started out on Maven. I am trying to integrate Maven+eclipse(Juno)+tomcat7.
I have downloaded m2e-wtp plugin for eclipse and created a Maven project whose structure follows a standard Maven project structure. It is also configured a dynamic web project.
It is a multi module project with two modules of flex(f1 AND f2) and one module of webapp(w).I have configured all the plugins correctly and there is no problem with configuration of POMs.
What I want to achieve is :
When I clean and Build project in Eclipse using Project-->Clean,Eclipse does not build the war in target folder of my web application project (w). I also does not copy any of the flex resources to target folder. However,
When I run the project as maven build by right-clicking the web application project and running it as a "maven install" it creates everything as expected.
My question is that if it is possible to achieve what I mentioned in point (1)? Or the only correct way to do this is the way mentioned in point (2).
I am also not able to deploy the generted files in step 2 automatically in tomcat.
Do I need to use another maven plugin for this?
Please note that this i my first experience with Maven + eclispe. I have followed certain tutorials. So, Please be lenient while voting negatively.
From what I know it is not possible to force Eclipse to use Maven directly (I would gladly be proven wrong).
Eclipse does not use Maven to build (1). Using the m2e plugin, it is possible to run maven to perform the build as you discovered (2).
If you are looking for that kind of tight integration you can look at NetBeans or IntelliJ who are using Maven natively.
EDIT:
About (3) there is a Tomcat-Maven-Plugin that can deploy the WAR file created on a running tomcat instance. Check the Usage page for more details.
I know this is not a new question to you guys, who use Maven. But I'm really new to this. I have searched Stackoverflow and Google for hours, but didn't find a step-by-step working guide (with screenshots).
I am using Eclipse Indigo, Tomcat 7 and now want to create a webapp with Maven. I have few basic needs to create this project. The m2e plugin's archetype seems most confusing to me. Although, it looks like a plug-and-play one, but I couldn't setup a struts2 project from archetype and build successfully.
The project should have strus2, spring and hibernate dependencies configured.
There should be a war and atleast one core module in the project.
I should be able to build and run it from Eclipse on Tomcat 7 server.
Please help guys. I think, there must be some ready-to-learn resource on the web. Please share it.
did you have a look at the AppFuse modular archetype: appfuse-modular-struts
http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
http://appfuse.org/display/APF/Using+Struts+2
to have the list of available archetypes you can type: mvn archetype:generate
How to build Spring Roo project without maven?
P.S. I use STS to create Roo project. I use maven for dependency management. Thanks to m2eclipse I have all libraries on eclipse classpath.
I have other non-Maven referenced. So maven fails to build.
You can't. Well, I suppose you could manually create an Ant-based build file that would do the same thing, but why?
One of the purposes behind Roo is that it helps manage the dependencies and build processes necessary for your chosen data persistence architecture. Maven is currently the standard build tool for doing just that, and you get its best practices implemented for you by creating the project via Roo.
Alternatively, if you're just trying to import a Roo-created project into Eclipse try ...
roo> perform eclipse
...
That will generate Eclipse project files that you can import.
This is about using custom maven artifacts.
Create a custom Maven repository, place your referenced jars in there and include them as dependencies in your pom.xml file.
Learn some Maven, it would really help - specially when working with Roo.
I have a maven web module in my eclipse project.
Is it possible to simply test this module in eclipse by running it on tomcat.
At the minute im generating a war file and adding it to the webapps directory of tomcat.
A quicker approach would be great
Thanks
Damien
Is it possible to simply test this module in eclipse by running it on tomcat.
You could deploy your application on Tomcat using the WTP. This is doable whether you're using the Maven Eclipse Plugin or the m2eclipse plugin (just make sure to install the Maven Integration for WTP from the m2eclipse Extras).
I'd recommend that you try the maven jetty plugin.
http://maven.apache.org/plugins/maven-war-plugin/examples/rapid-testing-jetty6-plugin.html
If you could accept to use Jetty to test it ,
it's more easier to use Eclipse Run-Jetty-Run Plugin to run your project , just one click without any configuration!
Reference
http://code.google.com/p/run-jetty-run/