You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jan_bar <he...@yahoo.com> on 2006/08/09 14:05:26 UTC
Flat directory structure and Eclipse
Hi,
The flat directory is recommended for J2EE projects:
myProject / pom.xml
|
|-- EAR / pom.xml
|
|-- EJB / pom.xml
|
|-- WEB / pom.xml
This structure is not entirely "flat" because of the root myProject /
pom.xml. It is not clear to me how this structure fits into Eclipse
workspace. Do you have the "myProject / pom.xml" in the root folder of
Eclipse workspace and each EAR/EJB/WEB as eclipse projects?
It seems to me that this shold work better with Eclipse:
EclipseWorkspace
|
|-- myProject.EAR / pom.xml
|
|-- myProject.EJB / pom.xml
|
|-- myProject.WEB / pom.xml
|
|-- myProject.main / pom.xml (this is the parent POM)
Thanks, Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Re: Flat directory structure and Eclipse
Posted by jan_bar <he...@yahoo.com>.
Thanks Stefan for your time.
"Stefan Magnus Landr�" <st...@gjensidige.no> wrote in message
news:OFEDA09EF0.80E3CBA0-ONC12571C5.004846D0-C12571C5.0048D03A@Gjensidige.no...
> The eclipse plugin is included by default
> try running mvn eclipse:eclipse. It will generate the project/classpath
> files for you automatically.
>
> You can of course set up the projects manually, but it's a lot of work.
>
> I typically use the follwing setup:
>
> c:\projects
> c:\projects\myproject\
> c:\projects\myproject\EAR
> c:\projects\myproject\WAR
> ....
> c:\projects\myproject\EJB
> c:\projects\myproject_workspace
>
> The advantage of this is that you don't mess up your project folder with
> workspace settings.
>
> HTH
>
> Stefan
>
> news <ne...@sea.gmane.org> skrev 09.08.2006 14:24:38:
>
> > Thanks Stefan,
> >
> > I don't use the eclipse plugin, but it makes no difference. So, if I
> > understand you well, you have the structure recomended by Maven doc
> outside
> > of Eclipse workspace and use Eclipse links to each fo the EAR/EJB/WAR
> > subfolders? Are there any troubles with this setup?
> >
> > Jan
> >
> > > Hi Jan,
> > >
> > > running the maven eclipse plugin, you won't get any project file for
> the
> > > top level (myProject / pom.xml).
> > > Also, I recomment using a workspace location different from where you
> keep
> > > your source code (using eclipse's import existing project feature)
> > >
> > > HTHAB,
> > >
> > > Stefan
> > >
> > > news <ne...@sea.gmane.org> skrev 09.08.2006 14:05:26:
> > >
> > > > Hi,
> > > >
> > > > The flat directory is recommended for J2EE projects:
> > > >
> > > > myProject / pom.xml
> > > > |
> > > > |-- EAR / pom.xml
> > > > |
> > > > |-- EJB / pom.xml
> > > > |
> > > > |-- WEB / pom.xml
> > > >
> > > > This structure is not entirely "flat" because of the root myProject
> /
> > > > pom.xml. It is not clear to me how this structure fits into Eclipse
> > > > workspace. Do you have the "myProject / pom.xml" in the root folder
> of
> > > > Eclipse workspace and each EAR/EJB/WEB as eclipse projects?
> > > >
> > > > It seems to me that this shold work better with Eclipse:
> > > >
> > > > EclipseWorkspace
> > > > |
> > > > |-- myProject.EAR / pom.xml
> > > > |
> > > > |-- myProject.EJB / pom.xml
> > > > |
> > > > |-- myProject.WEB / pom.xml
> > > > |
> > > > |-- myProject.main / pom.xml (this is the parent POM)
> > > >
> > > >
> > > > Thanks, Jan
> > > >
> > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Re: Re: Flat directory structure and Eclipse
Posted by jan_bar <he...@yahoo.com>.
> Try setting up the parent project as an eclipse project manually.
Yes, that is possible, but it will create confusing layout, because the same
files (in subfolders) will be part of two different Eclipse projects (+
twice as much metadata in Eclipse).
> I hardly ever edit my paretn project anyways.
Yes, but if you use Eclipse as a the only tool to work with SCM, you need a
way how to check out the files.
Thanks, Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Ad: Re: Re: Flat directory structure and Eclipse
Posted by Stefan Magnus Landrø <st...@gjensidige.no>.
Try setting up the parent project as an eclipse project manually.
I hardly ever edit my paretn project anyways.
Stefan
news <ne...@sea.gmane.org> skrev 10.08.2006 10:11:48:
> HI,
>
> there is still one trouble. When you use version control system (CVS,
SVN,
> ..) plugin in Eclipse, you cannot checkout/commit the files in root
folder,
> because the root folder is not part of Eclipse workspace.
>
> Jan
>
> "Stefan Magnus Landrø" <st...@gjensidige.no> wrote in
message
>
news:OFEDA09EF0.80E3CBA0-ONC12571C5.004846D0-C12571C5.0048D03A@Gjensidige.no..
> .
> > The eclipse plugin is included by default
> > try running mvn eclipse:eclipse. It will generate the
project/classpath
> > files for you automatically.
> >
> > You can of course set up the projects manually, but it's a lot of
work.
> >
> > I typically use the follwing setup:
> >
> > c:\projects
> > c:\projects\myproject\
> > c:\projects\myproject\EAR
> > c:\projects\myproject\WAR
> > ....
> > c:\projects\myproject\EJB
> > c:\projects\myproject_workspace
> >
> > The advantage of this is that you don't mess up your project folder
with
> > workspace settings.
> >
> > HTH
> >
> > Stefan
> >
> > news <ne...@sea.gmane.org> skrev 09.08.2006 14:24:38:
> >
> > > Thanks Stefan,
> > >
> > > I don't use the eclipse plugin, but it makes no difference. So, if I
> > > understand you well, you have the structure recomended by Maven doc
> > outside
> > > of Eclipse workspace and use Eclipse links to each fo the
EAR/EJB/WAR
> > > subfolders? Are there any troubles with this setup?
> > >
> > > Jan
> > >
> > > > Hi Jan,
> > > >
> > > > running the maven eclipse plugin, you won't get any project file
for
> > the
> > > > top level (myProject / pom.xml).
> > > > Also, I recomment using a workspace location different from where
you
> > keep
> > > > your source code (using eclipse's import existing project feature)
> > > >
> > > > HTHAB,
> > > >
> > > > Stefan
> > > >
> > > > news <ne...@sea.gmane.org> skrev 09.08.2006 14:05:26:
> > > >
> > > > > Hi,
> > > > >
> > > > > The flat directory is recommended for J2EE projects:
> > > > >
> > > > > myProject / pom.xml
> > > > > |
> > > > > |-- EAR / pom.xml
> > > > > |
> > > > > |-- EJB / pom.xml
> > > > > |
> > > > > |-- WEB / pom.xml
> > > > >
> > > > > This structure is not entirely "flat" because of the root
myProject
> > /
> > > > > pom.xml. It is not clear to me how this structure fits into
Eclipse
> > > > > workspace. Do you have the "myProject / pom.xml" in the root
folder
> > of
> > > > > Eclipse workspace and each EAR/EJB/WEB as eclipse projects?
> > > > >
> > > > > It seems to me that this shold work better with Eclipse:
> > > > >
> > > > > EclipseWorkspace
> > > > > |
> > > > > |-- myProject.EAR / pom.xml
> > > > > |
> > > > > |-- myProject.EJB / pom.xml
> > > > > |
> > > > > |-- myProject.WEB / pom.xml
> > > > > |
> > > > > |-- myProject.main / pom.xml (this is the parent POM)
> > > > >
> > > > >
> > > > > Thanks, Jan
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > >
> > >
> > >
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
Re: Re: Flat directory structure and Eclipse
Posted by jan_bar <he...@yahoo.com>.
HI,
there is still one trouble. When you use version control system (CVS, SVN,
..) plugin in Eclipse, you cannot checkout/commit the files in root folder,
because the root folder is not part of Eclipse workspace.
Jan
"Stefan Magnus Landr�" <st...@gjensidige.no> wrote in message
news:OFEDA09EF0.80E3CBA0-ONC12571C5.004846D0-C12571C5.0048D03A@Gjensidige.no...
> The eclipse plugin is included by default
> try running mvn eclipse:eclipse. It will generate the project/classpath
> files for you automatically.
>
> You can of course set up the projects manually, but it's a lot of work.
>
> I typically use the follwing setup:
>
> c:\projects
> c:\projects\myproject\
> c:\projects\myproject\EAR
> c:\projects\myproject\WAR
> ....
> c:\projects\myproject\EJB
> c:\projects\myproject_workspace
>
> The advantage of this is that you don't mess up your project folder with
> workspace settings.
>
> HTH
>
> Stefan
>
> news <ne...@sea.gmane.org> skrev 09.08.2006 14:24:38:
>
> > Thanks Stefan,
> >
> > I don't use the eclipse plugin, but it makes no difference. So, if I
> > understand you well, you have the structure recomended by Maven doc
> outside
> > of Eclipse workspace and use Eclipse links to each fo the EAR/EJB/WAR
> > subfolders? Are there any troubles with this setup?
> >
> > Jan
> >
> > > Hi Jan,
> > >
> > > running the maven eclipse plugin, you won't get any project file for
> the
> > > top level (myProject / pom.xml).
> > > Also, I recomment using a workspace location different from where you
> keep
> > > your source code (using eclipse's import existing project feature)
> > >
> > > HTHAB,
> > >
> > > Stefan
> > >
> > > news <ne...@sea.gmane.org> skrev 09.08.2006 14:05:26:
> > >
> > > > Hi,
> > > >
> > > > The flat directory is recommended for J2EE projects:
> > > >
> > > > myProject / pom.xml
> > > > |
> > > > |-- EAR / pom.xml
> > > > |
> > > > |-- EJB / pom.xml
> > > > |
> > > > |-- WEB / pom.xml
> > > >
> > > > This structure is not entirely "flat" because of the root myProject
> /
> > > > pom.xml. It is not clear to me how this structure fits into Eclipse
> > > > workspace. Do you have the "myProject / pom.xml" in the root folder
> of
> > > > Eclipse workspace and each EAR/EJB/WEB as eclipse projects?
> > > >
> > > > It seems to me that this shold work better with Eclipse:
> > > >
> > > > EclipseWorkspace
> > > > |
> > > > |-- myProject.EAR / pom.xml
> > > > |
> > > > |-- myProject.EJB / pom.xml
> > > > |
> > > > |-- myProject.WEB / pom.xml
> > > > |
> > > > |-- myProject.main / pom.xml (this is the parent POM)
> > > >
> > > >
> > > > Thanks, Jan
> > > >
> > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Re: Flat directory structure and Eclipse
Posted by Stefan Magnus Landrø <st...@gjensidige.no>.
The eclipse plugin is included by default
try running mvn eclipse:eclipse. It will generate the project/classpath
files for you automatically.
You can of course set up the projects manually, but it's a lot of work.
I typically use the follwing setup:
c:\projects
c:\projects\myproject\
c:\projects\myproject\EAR
c:\projects\myproject\WAR
....
c:\projects\myproject\EJB
c:\projects\myproject_workspace
The advantage of this is that you don't mess up your project folder with
workspace settings.
HTH
Stefan
news <ne...@sea.gmane.org> skrev 09.08.2006 14:24:38:
> Thanks Stefan,
>
> I don't use the eclipse plugin, but it makes no difference. So, if I
> understand you well, you have the structure recomended by Maven doc
outside
> of Eclipse workspace and use Eclipse links to each fo the EAR/EJB/WAR
> subfolders? Are there any troubles with this setup?
>
> Jan
>
> > Hi Jan,
> >
> > running the maven eclipse plugin, you won't get any project file for
the
> > top level (myProject / pom.xml).
> > Also, I recomment using a workspace location different from where you
keep
> > your source code (using eclipse's import existing project feature)
> >
> > HTHAB,
> >
> > Stefan
> >
> > news <ne...@sea.gmane.org> skrev 09.08.2006 14:05:26:
> >
> > > Hi,
> > >
> > > The flat directory is recommended for J2EE projects:
> > >
> > > myProject / pom.xml
> > > |
> > > |-- EAR / pom.xml
> > > |
> > > |-- EJB / pom.xml
> > > |
> > > |-- WEB / pom.xml
> > >
> > > This structure is not entirely "flat" because of the root myProject
/
> > > pom.xml. It is not clear to me how this structure fits into Eclipse
> > > workspace. Do you have the "myProject / pom.xml" in the root folder
of
> > > Eclipse workspace and each EAR/EJB/WEB as eclipse projects?
> > >
> > > It seems to me that this shold work better with Eclipse:
> > >
> > > EclipseWorkspace
> > > |
> > > |-- myProject.EAR / pom.xml
> > > |
> > > |-- myProject.EJB / pom.xml
> > > |
> > > |-- myProject.WEB / pom.xml
> > > |
> > > |-- myProject.main / pom.xml (this is the parent POM)
> > >
> > >
> > > Thanks, Jan
> > >
> > >
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
Re: Flat directory structure and Eclipse
Posted by jan_bar <he...@yahoo.com>.
Thanks Stefan,
I don't use the eclipse plugin, but it makes no difference. So, if I
understand you well, you have the structure recomended by Maven doc outside
of Eclipse workspace and use Eclipse links to each fo the EAR/EJB/WAR
subfolders? Are there any troubles with this setup?
Jan
> Hi Jan,
>
> running the maven eclipse plugin, you won't get any project file for the
> top level (myProject / pom.xml).
> Also, I recomment using a workspace location different from where you keep
> your source code (using eclipse's import existing project feature)
>
> HTHAB,
>
> Stefan
>
> news <ne...@sea.gmane.org> skrev 09.08.2006 14:05:26:
>
> > Hi,
> >
> > The flat directory is recommended for J2EE projects:
> >
> > myProject / pom.xml
> > |
> > |-- EAR / pom.xml
> > |
> > |-- EJB / pom.xml
> > |
> > |-- WEB / pom.xml
> >
> > This structure is not entirely "flat" because of the root myProject /
> > pom.xml. It is not clear to me how this structure fits into Eclipse
> > workspace. Do you have the "myProject / pom.xml" in the root folder of
> > Eclipse workspace and each EAR/EJB/WEB as eclipse projects?
> >
> > It seems to me that this shold work better with Eclipse:
> >
> > EclipseWorkspace
> > |
> > |-- myProject.EAR / pom.xml
> > |
> > |-- myProject.EJB / pom.xml
> > |
> > |-- myProject.WEB / pom.xml
> > |
> > |-- myProject.main / pom.xml (this is the parent POM)
> >
> >
> > Thanks, Jan
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Flat directory structure and Eclipse
Posted by Stefan Magnus Landrø <st...@gjensidige.no>.
Hi Jan,
running the maven eclipse plugin, you won't get any project file for the
top level (myProject / pom.xml).
Also, I recomment using a workspace location different from where you keep
your source code (using eclipse's import existing project feature)
HTHAB,
Stefan
news <ne...@sea.gmane.org> skrev 09.08.2006 14:05:26:
> Hi,
>
> The flat directory is recommended for J2EE projects:
>
> myProject / pom.xml
> |
> |-- EAR / pom.xml
> |
> |-- EJB / pom.xml
> |
> |-- WEB / pom.xml
>
> This structure is not entirely "flat" because of the root myProject /
> pom.xml. It is not clear to me how this structure fits into Eclipse
> workspace. Do you have the "myProject / pom.xml" in the root folder of
> Eclipse workspace and each EAR/EJB/WEB as eclipse projects?
>
> It seems to me that this shold work better with Eclipse:
>
> EclipseWorkspace
> |
> |-- myProject.EAR / pom.xml
> |
> |-- myProject.EJB / pom.xml
> |
> |-- myProject.WEB / pom.xml
> |
> |-- myProject.main / pom.xml (this is the parent POM)
>
>
> Thanks, Jan
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>