Sanju
Sanju

Reputation: 3247

Can we configure Maven in existing project?

I am working in Struts 2 and Hibernate 3 based project, we had developed many modules (includes many JSP pages), now I want to use Maven in my current project.

So is it possible in my current project that I will configure Maven in my current project? If so, then please explain me steps for that if possible.

I am using Eclipse 3.5, Struts 2, Hibernate 3 and jasper-report 3.7.3 for my project.

Upvotes: 0

Views: 317

Answers (1)

chpopov
chpopov

Reputation: 141

Yes it is.

Two options:

  • Change your folder structure to use the default maven folder structure (src/main/java, etc.)
  • Or, set up in your pom.xml different source folder configurations

I would go for the first option if not too painful.

Then, use M2_ECLIPSE plugin to keep you eclipse conf in synch with the maven conf.

Don't commit eclipse project files (.settings, .project, .casspath) to SCM, pom.xml has to be the "master"

Upvotes: 2

Related Questions