Page 1 of 1

project structure --> signification of common module

Posted: Sat Jan 28, 2012 6:38 pm
by sai
I am trying to understand the project structure. I used the arche type to create the quick start projects. It created multiple projects I understand what is described in the "Understanding the project structure", but there is one more additional project I see it create which myecommerce-app. This I see that all the projects has been included in this. I am trying to understand the significance of this.

I played around the app quiet a bit, I am able to run it in Tomcat, MYSQL by making changes.. The war's that are created in admin-war and site-war are independently used to deploy to server as separate projects. What I am not able to understand is this additional project myecommerce-app and its significance.

Can you please help me understand what this is for...I cannot see this as a EAR type of umbrella bundling multiple war's, I am abit confused looking at the package structure.

Thanks,
Sai

Re: project structure --> signification of common module

Posted: Mon Jan 30, 2012 12:49 am
by bpolster
Sai,

I assume you are viewing the project structure via eclipse. If you look on the file system, you'll see that the root project (e.g. "myecommerce-app") is a container of the other projects and the structure will make more sense. The root pom provides a place where we can declare specific versions of dependencies and plugin details with having to declare them in each of the subordinate projects.

Eclipse flattens out this structure which can be confusing. With a google search on "eclipse hierarchical maven project" you'll find quite a few discussions on the best way to deal with this.

Most of the BLC team has moved to IntelliJ and this was one of the main reasons. Let us know if there is something we can do within the project structure to ease coding in eclipse.

Re: project structure --> signification of common module

Posted: Sat Feb 04, 2012 9:33 pm
by sai
Thank you Brain.