You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ed Dowgiallo <ed...@gmail.com> on 2021/12/27 14:55:58 UTC

Eclipse support for Maven modules

Hi,

First time poster.

I like the Maven approach to modules and am using it for my projects with
the Eclipse IDE. Not quite getting something right though. After I have
committed a project to git and do a fresh checkout of it on a different
computer, it appears to forget all the module structure. The child projects
disappear and the main project changes the module source folders to regular
folders.

Is there a configuration file other than pom.xml missing from my git
commits?

Is it possible for me to restore the lost module structure?

Thank you,
Ed

Re: Eclipse support for Maven modules

Posted by Pavel Horal <pa...@orchitech.cz>.
Hi, you need to import all modules via "Import... > Maven > Existing Maven
Projects". This is available either from File menu or from context menu
(right mouse click) on existing project or repository inside Git
Repositories view.

M2e will also automatically link imported projects together (you can
disable that in project's context menu "Maven > Disable Workspace
Resolution" if that is something you don't want)

Keep Eclipse files (.project, .settings/, ...) out of your repo (i.e. have
those paths in .gitignore).

Pavel
--
Pavel Horal
technical director
+420 606 810 865 | pavel.horal@orchitech.cz
.....
Orchitech Solutions, s.r.o.
Koněvova 141 | 130 00 | Praha 3
www.orchitech.cz


On Mon, 27 Dec 2021 at 17:06, Ed Dowgiallo <ed...@gmail.com> wrote:

> Thank you Gary, I will check them out.
>
> On Mon, Dec 27, 2021 at 11:02 AM Gary Gregory <ga...@gmail.com>
> wrote:
>
> > Once the Eclipse m2e plugin imports a Maven project, it will create for
> you
> > a .project file, a .classpath file and possibly a .settings folder. Those
> > are your Eclipse artifacts.
> >
> > Gary
> >
> > On Mon, Dec 27, 2021 at 10:30 AM Ed Dowgiallo <ed...@gmail.com>
> > wrote:
> >
> > > Slawomir,
> > >
> > > Yes, all works fine at command line. All 31 modules work for mvn clean,
> > and
> > > I currently get a package not found in module 25 which is my bug.
> > >
> > > It is not publicly accessible.
> > >
> > > Is this supposed to work strictly off the pom.xmls? Or are there
> eclipse
> > > configuration files involved?
> > >
> > > Ed
> > >
> > > On Mon, Dec 27, 2021 at 10:17 AM Slawomir Jaranowski <
> > > s.jaranowski@gmail.com>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > Does your fresh project after git checkout build correctly with all
> > > modules
> > > > by standard Maven command, like
> > > > mvn clean verify
> > > > from command line?
> > > >
> > > > Is your project accessible publicly?
> > > >
> > > >
> > > > pon., 27 gru 2021 o 15:56 Ed Dowgiallo <ed...@gmail.com>
> > > napisał(a):
> > > >
> > > > > Hi,
> > > > >
> > > > > First time poster.
> > > > >
> > > > > I like the Maven approach to modules and am using it for my
> projects
> > > with
> > > > > the Eclipse IDE. Not quite getting something right though. After I
> > have
> > > > > committed a project to git and do a fresh checkout of it on a
> > different
> > > > > computer, it appears to forget all the module structure. The child
> > > > projects
> > > > > disappear and the main project changes the module source folders to
> > > > regular
> > > > > folders.
> > > > >
> > > > > Is there a configuration file other than pom.xml missing from my
> git
> > > > > commits?
> > > > >
> > > > > Is it possible for me to restore the lost module structure?
> > > > >
> > > > > Thank you,
> > > > > Ed
> > > > >
> > > >
> > > >
> > > > --
> > > > Sławomir Jaranowski
> > > >
> > >
> >
>

Re: Eclipse support for Maven modules

Posted by Ed Dowgiallo <ed...@gmail.com>.
Thank you Gary, I will check them out.

On Mon, Dec 27, 2021 at 11:02 AM Gary Gregory <ga...@gmail.com>
wrote:

> Once the Eclipse m2e plugin imports a Maven project, it will create for you
> a .project file, a .classpath file and possibly a .settings folder. Those
> are your Eclipse artifacts.
>
> Gary
>
> On Mon, Dec 27, 2021 at 10:30 AM Ed Dowgiallo <ed...@gmail.com>
> wrote:
>
> > Slawomir,
> >
> > Yes, all works fine at command line. All 31 modules work for mvn clean,
> and
> > I currently get a package not found in module 25 which is my bug.
> >
> > It is not publicly accessible.
> >
> > Is this supposed to work strictly off the pom.xmls? Or are there eclipse
> > configuration files involved?
> >
> > Ed
> >
> > On Mon, Dec 27, 2021 at 10:17 AM Slawomir Jaranowski <
> > s.jaranowski@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > Does your fresh project after git checkout build correctly with all
> > modules
> > > by standard Maven command, like
> > > mvn clean verify
> > > from command line?
> > >
> > > Is your project accessible publicly?
> > >
> > >
> > > pon., 27 gru 2021 o 15:56 Ed Dowgiallo <ed...@gmail.com>
> > napisał(a):
> > >
> > > > Hi,
> > > >
> > > > First time poster.
> > > >
> > > > I like the Maven approach to modules and am using it for my projects
> > with
> > > > the Eclipse IDE. Not quite getting something right though. After I
> have
> > > > committed a project to git and do a fresh checkout of it on a
> different
> > > > computer, it appears to forget all the module structure. The child
> > > projects
> > > > disappear and the main project changes the module source folders to
> > > regular
> > > > folders.
> > > >
> > > > Is there a configuration file other than pom.xml missing from my git
> > > > commits?
> > > >
> > > > Is it possible for me to restore the lost module structure?
> > > >
> > > > Thank you,
> > > > Ed
> > > >
> > >
> > >
> > > --
> > > Sławomir Jaranowski
> > >
> >
>

Re: Eclipse support for Maven modules

Posted by Gary Gregory <ga...@gmail.com>.
Once the Eclipse m2e plugin imports a Maven project, it will create for you
a .project file, a .classpath file and possibly a .settings folder. Those
are your Eclipse artifacts.

Gary

On Mon, Dec 27, 2021 at 10:30 AM Ed Dowgiallo <ed...@gmail.com> wrote:

> Slawomir,
>
> Yes, all works fine at command line. All 31 modules work for mvn clean, and
> I currently get a package not found in module 25 which is my bug.
>
> It is not publicly accessible.
>
> Is this supposed to work strictly off the pom.xmls? Or are there eclipse
> configuration files involved?
>
> Ed
>
> On Mon, Dec 27, 2021 at 10:17 AM Slawomir Jaranowski <
> s.jaranowski@gmail.com>
> wrote:
>
> > Hi,
> >
> > Does your fresh project after git checkout build correctly with all
> modules
> > by standard Maven command, like
> > mvn clean verify
> > from command line?
> >
> > Is your project accessible publicly?
> >
> >
> > pon., 27 gru 2021 o 15:56 Ed Dowgiallo <ed...@gmail.com>
> napisał(a):
> >
> > > Hi,
> > >
> > > First time poster.
> > >
> > > I like the Maven approach to modules and am using it for my projects
> with
> > > the Eclipse IDE. Not quite getting something right though. After I have
> > > committed a project to git and do a fresh checkout of it on a different
> > > computer, it appears to forget all the module structure. The child
> > projects
> > > disappear and the main project changes the module source folders to
> > regular
> > > folders.
> > >
> > > Is there a configuration file other than pom.xml missing from my git
> > > commits?
> > >
> > > Is it possible for me to restore the lost module structure?
> > >
> > > Thank you,
> > > Ed
> > >
> >
> >
> > --
> > Sławomir Jaranowski
> >
>

Re: Eclipse support for Maven modules

Posted by Ed Dowgiallo <ed...@gmail.com>.
Slawomir,

Yes, all works fine at command line. All 31 modules work for mvn clean, and
I currently get a package not found in module 25 which is my bug.

It is not publicly accessible.

Is this supposed to work strictly off the pom.xmls? Or are there eclipse
configuration files involved?

Ed

On Mon, Dec 27, 2021 at 10:17 AM Slawomir Jaranowski <s....@gmail.com>
wrote:

> Hi,
>
> Does your fresh project after git checkout build correctly with all modules
> by standard Maven command, like
> mvn clean verify
> from command line?
>
> Is your project accessible publicly?
>
>
> pon., 27 gru 2021 o 15:56 Ed Dowgiallo <ed...@gmail.com> napisał(a):
>
> > Hi,
> >
> > First time poster.
> >
> > I like the Maven approach to modules and am using it for my projects with
> > the Eclipse IDE. Not quite getting something right though. After I have
> > committed a project to git and do a fresh checkout of it on a different
> > computer, it appears to forget all the module structure. The child
> projects
> > disappear and the main project changes the module source folders to
> regular
> > folders.
> >
> > Is there a configuration file other than pom.xml missing from my git
> > commits?
> >
> > Is it possible for me to restore the lost module structure?
> >
> > Thank you,
> > Ed
> >
>
>
> --
> Sławomir Jaranowski
>

Re: Eclipse support for Maven modules

Posted by Slawomir Jaranowski <s....@gmail.com>.
Hi,

Does your fresh project after git checkout build correctly with all modules
by standard Maven command, like
mvn clean verify
from command line?

Is your project accessible publicly?


pon., 27 gru 2021 o 15:56 Ed Dowgiallo <ed...@gmail.com> napisał(a):

> Hi,
>
> First time poster.
>
> I like the Maven approach to modules and am using it for my projects with
> the Eclipse IDE. Not quite getting something right though. After I have
> committed a project to git and do a fresh checkout of it on a different
> computer, it appears to forget all the module structure. The child projects
> disappear and the main project changes the module source folders to regular
> folders.
>
> Is there a configuration file other than pom.xml missing from my git
> commits?
>
> Is it possible for me to restore the lost module structure?
>
> Thank you,
> Ed
>


-- 
Sławomir Jaranowski