How to integrate maven 2 in an existing netbeans project?

What about creating a new Maven Web Project and moving the pom. Xml back to your existing Web Project? I mean.

What about creating a new Maven Web Project and moving the pom. Xml back to your existing Web Project? I mean: Backup your projects Create a new project with name MavenWebTest Close your original project Move the pom.

Xml from the MavenWebTest project to your original project's folder Modify the pom. Xml's project specific settings (e.g. Project name, dependencies) Delete the build. Xml and the whole nbproject folder Move and rename the web folder to src/main/webapp (webapp is the new name) (use svn mv if you use Subversion) Move src/java to src/main/java (svn mv here too) Open you project again in Netbeans.

It should be a Maven project now. Delete the unnecessary MavenWebTest project Anyway, creating an empty pom. Xml also should work.

You have to list your dependencies in the pom. Xml and you have to set the project's name. Maybe other fine tunings also required to get the same result as Netbeans create without Maven.

If you create the pom. Xml with Netbeans (the MavenWebTest above) I suppose that most of Netbeans specific stuff already will be there. If you are new to Maven I suggest you to check the free pdf/html books on Sonatype's website.

Thanks palacsint! I am able to get started with Maven(in a new project) but I don't want to move to a new project since I won't be able to keep track with my old versions stored in subversion repositories under the name of this project – Marcos Sep 26 at 4:46 Please see my updated answer. The new project just temporarily required.

Its pom. Xml is important, it's useful to see how Netbeans generate pom. Xml for its projects.

I hope it's more clear now. Let me know if not. – palacsint Sep 26 at 5:34 @palacsint Once you have copied pom.

Xml, do you just run usual "build" or "run" buttons? Should Netbeans know it has to read pom. Xml, what about classic configuration with "libraries" tabs?

– Hernán Eche Oct 12 at 20:39 1 @HernánEche: Good question. I've updated the answer. Build and run should work.(I tested build only.) Unfortunately you have to add the dependencies to your POM by hand.

Feel free to ask if something is not working or isn't clear. – palacsint Oct 13 at 19:49.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions