You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jitesh Shetty <ji...@ymail.com> on 2010/03/12 01:21:05 UTC

Maven Eclipse

Folks,

I have a very basic question, I am using maven with eclipse and have a case where I want to have two different projects which are actually built from two different branches of the same product, so I am working on two different branches and so I wanted to create two different maven projects in eclipse. I have the project built from trunk running fine, but when I try to create a project from one of the branches, I give the SVN location and then it tries to check out the code but then throws a window which says “Select Maven projects”,  it shows one pom.xml there but its frozen and cannot be selected and then in the advanced section there is “Profiles” and “Name template”. Please let me know if I am doing something wrong here.

Thanks

-Jitesh 


      

Re: Maven Eclipse

Posted by Anders Hammar <an...@hammar.net>.
On the contrary I don't see any issues. As long as you have good naming of
your projects (possibly also in separate working sets), this should be ok.
It also requires that you have correct versioning av your Maven projects
(i.e. the two branches have different versions).

I don't see how two eclipse instances would make this easier. I think it
would rather make it more confusing.

My 2 cents,
/Anders

On Fri, Mar 12, 2010 at 09:01, Arand, Thomas (NSN - DE/Munich) <
thomas.arand@nsn.com> wrote:

> Hi all,
>
> I would not recommend to open those two projects in the same eclipse
> workspace. As both projects mainly have the same elements, you will be
> very confused when editing those elements.
>
> Additionally, it might be necessary to specify different (local) maven
> reposistories for both projects. This is not possible (at least not
> easily) in one eclipse instance.
>
> So my suggestion: Start two instances of eclipse with two different
> workspaces!
>
> Thomas
>
>
>
> -----Original Message-----
> From: anders.g.hammar@gmail.com [mailto:anders.g.hammar@gmail.com] On
> Behalf Of ext Anders Hammar
> Sent: Friday, March 12, 2010 8:56 AM
> To: Maven Users List
> Subject: Re: Maven Eclipse
>
> I assume you're using m2e?
> I think the problem is that the eclipse project is named by artifactId
> by
> default. As there is already such a project (the main branch one), you
> need
> to change the project name. You so by using a name template.
>
> /Anders
>
> PS. Questions regarding m2eclipse is better to post one the m2e mailing
> list.
>
> On Fri, Mar 12, 2010 at 01:21, Jitesh Shetty <ji...@ymail.com> wrote:
>
> > Folks,
> >
> > I have a very basic question, I am using maven with eclipse and have a
> case
> > where I want to have two different projects which are actually built
> from
> > two different branches of the same product, so I am working on two
> different
> > branches and so I wanted to create two different maven projects in
> eclipse.
> > I have the project built from trunk running fine, but when I try to
> create a
> > project from one of the branches, I give the SVN location and then it
> tries
> > to check out the code but then throws a window which says "Select
> Maven
> > projects",  it shows one pom.xml there but its frozen and cannot be
> selected
> > and then in the advanced section there is "Profiles" and "Name
> template".
> > Please let me know if I am doing something wrong here.
> >
> > Thanks
> >
> > -Jitesh
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: Maven Eclipse

Posted by "Arand, Thomas (NSN - DE/Munich)" <th...@nsn.com>.
Hi all,

I would not recommend to open those two projects in the same eclipse
workspace. As both projects mainly have the same elements, you will be
very confused when editing those elements.

Additionally, it might be necessary to specify different (local) maven
reposistories for both projects. This is not possible (at least not
easily) in one eclipse instance.

So my suggestion: Start two instances of eclipse with two different
workspaces!

Thomas



-----Original Message-----
From: anders.g.hammar@gmail.com [mailto:anders.g.hammar@gmail.com] On
Behalf Of ext Anders Hammar
Sent: Friday, March 12, 2010 8:56 AM
To: Maven Users List
Subject: Re: Maven Eclipse

I assume you're using m2e?
I think the problem is that the eclipse project is named by artifactId
by
default. As there is already such a project (the main branch one), you
need
to change the project name. You so by using a name template.

/Anders

PS. Questions regarding m2eclipse is better to post one the m2e mailing
list.

On Fri, Mar 12, 2010 at 01:21, Jitesh Shetty <ji...@ymail.com> wrote:

> Folks,
>
> I have a very basic question, I am using maven with eclipse and have a
case
> where I want to have two different projects which are actually built
from
> two different branches of the same product, so I am working on two
different
> branches and so I wanted to create two different maven projects in
eclipse.
> I have the project built from trunk running fine, but when I try to
create a
> project from one of the branches, I give the SVN location and then it
tries
> to check out the code but then throws a window which says "Select
Maven
> projects",  it shows one pom.xml there but its frozen and cannot be
selected
> and then in the advanced section there is "Profiles" and "Name
template".
> Please let me know if I am doing something wrong here.
>
> Thanks
>
> -Jitesh
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Eclipse

Posted by Anders Hammar <an...@hammar.net>.
I assume you're using m2e?
I think the problem is that the eclipse project is named by artifactId by
default. As there is already such a project (the main branch one), you need
to change the project name. You so by using a name template.

/Anders

PS. Questions regarding m2eclipse is better to post one the m2e mailing
list.

On Fri, Mar 12, 2010 at 01:21, Jitesh Shetty <ji...@ymail.com> wrote:

> Folks,
>
> I have a very basic question, I am using maven with eclipse and have a case
> where I want to have two different projects which are actually built from
> two different branches of the same product, so I am working on two different
> branches and so I wanted to create two different maven projects in eclipse.
> I have the project built from trunk running fine, but when I try to create a
> project from one of the branches, I give the SVN location and then it tries
> to check out the code but then throws a window which says “Select Maven
> projects”,  it shows one pom.xml there but its frozen and cannot be selected
> and then in the advanced section there is “Profiles” and “Name template”.
> Please let me know if I am doing something wrong here.
>
> Thanks
>
> -Jitesh
>
>
>