You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nitko2 <ni...@gmail.com> on 2005/09/15 15:19:43 UTC
[m2] Import Maven 2 source into eclipse
Hi!
I' would like to examine how Maven 2 works from inside.
Can someone tell me how can I run Maven 2 inside Eclipse. I already
connected to subversion repository using subclipse and I have source
inside Eclipse. The problem is that I have to tell Eclipse what are the
source folders inside modules and set classpath for all modules.
Is there some automated way for doing that. What tool maven developers
use for Maven2 development?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] Import Maven 2 source into eclipse
Posted by Nitko2 <ni...@gmail.com>.
Thanks Kenney. I used alpha-3 because I couldn't build new version for
some time. Now both build and eclipse:eclipse task work.
Kenney Westerhof wrote:
> On Fri, 16 Sep 2005, [ISO-8859-1] Ralph P�llath wrote:
>
> I think you're using an old version of m2.. are you using the bootstrapped
> installation you just checked out?
>
> -- Kenney
>
>
>>On 16.09.2005, at 10:28, Nitko2 wrote:
>>
>>>Jesse thank you for your answer. I tried to do as you suggested but
>>>got this error when called m2 eclipse:eclipse:
>>>
>>>[INFO] Reason: Failed to parse model from file 'E:\unzip\m2src
>>>\maven-components\pom.xml'.
>>>Error: 'TEXT must be immediately followed by END_TAG and not
>>>START_TAG (position
>>>: START_TAG seen ...<releases>\r\n <enabled>... @157:18) '
>>>
>>>Any hints?
>>
>>Looks like the parser is telling you that your POM isn't valid XML.
>>Maybe <releases> in line 157 should be </releases>?
>>
>>Cheers,
>>-Ralph.
>>
>>
>>>Jesse McConnell wrote:
>>>
>>>>ah, I should add that each sub project will become an eclipse
>>>>project and they will largely be linked correctly, including to
>>>>the resources in your .m2/repository
>>>>
>>>>and each project will compile classes to the right location with
>>>>normal eclipse compilation
>>>>
>>>>think that is everything..
>>>>
>>>>On 9/15/05, Jesse McConnell <je...@gmail.com> wrote:
>>>>
>>>>>there is an eclipse plugin for m2
>>>>>
>>>>>go to the root of your project and type
>>>>>m2 eclipse:eclipse
>>>>>that will generate .project and .classpath files so you can then
>>>>>import the projects into eclipse.
>>>>>
>>>>>the newer version of eclipse and recursively add all of the
>>>>>projects, if you are on an older version you will probably have
>>>>>to add each seperately
>>>>>
>>>>>On 9/15/05, Nitko2 <ni...@gmail.com> wrote:
>>>>>
>>>>>>Hi!
>>>>>>
>>>>>>I' would like to examine how Maven 2 works from inside.
>>>>>>
>>>>>>Can someone tell me how can I run Maven 2 inside Eclipse. I already
>>>>>>connected to subversion repository using subclipse and I have
>>>>>>source
>>>>>>inside Eclipse. The problem is that I have to tell Eclipse what
>>>>>>are the source folders inside modules and set classpath for all
>>>>>>modules.
>>>>>>
>>>>>>Is there some automated way for doing that. What tool maven
>>>>>>developers
>>>>>>use for Maven2 development?
>>>>>>
>>>>>>Thanks.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
> --
> Kenney Westerhof
> http://www.neonics.com
> GPG public key: http://www.gods.nl/~forge/kenneyw.key
>
> ---------------------------------------------------------------------
> 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: [m2] Import Maven 2 source into eclipse
Posted by Kenney Westerhof <ke...@apache.org>.
On Fri, 16 Sep 2005, [ISO-8859-1] Ralph P�llath wrote:
I think you're using an old version of m2.. are you using the bootstrapped
installation you just checked out?
-- Kenney
> On 16.09.2005, at 10:28, Nitko2 wrote:
> > Jesse thank you for your answer. I tried to do as you suggested but
> > got this error when called m2 eclipse:eclipse:
> >
> > [INFO] Reason: Failed to parse model from file 'E:\unzip\m2src
> > \maven-components\pom.xml'.
> > Error: 'TEXT must be immediately followed by END_TAG and not
> > START_TAG (position
> > : START_TAG seen ...<releases>\r\n <enabled>... @157:18) '
> >
> > Any hints?
>
> Looks like the parser is telling you that your POM isn't valid XML.
> Maybe <releases> in line 157 should be </releases>?
>
> Cheers,
> -Ralph.
>
> > Jesse McConnell wrote:
> >> ah, I should add that each sub project will become an eclipse
> >> project and they will largely be linked correctly, including to
> >> the resources in your .m2/repository
> >>
> >> and each project will compile classes to the right location with
> >> normal eclipse compilation
> >>
> >> think that is everything..
> >>
> >> On 9/15/05, Jesse McConnell <je...@gmail.com> wrote:
> >>> there is an eclipse plugin for m2
> >>>
> >>> go to the root of your project and type
> >>> m2 eclipse:eclipse
> >>> that will generate .project and .classpath files so you can then
> >>> import the projects into eclipse.
> >>>
> >>> the newer version of eclipse and recursively add all of the
> >>> projects, if you are on an older version you will probably have
> >>> to add each seperately
> >>>
> >>> On 9/15/05, Nitko2 <ni...@gmail.com> wrote:
> >>>> Hi!
> >>>>
> >>>> I' would like to examine how Maven 2 works from inside.
> >>>>
> >>>> Can someone tell me how can I run Maven 2 inside Eclipse. I already
> >>>> connected to subversion repository using subclipse and I have
> >>>> source
> >>>> inside Eclipse. The problem is that I have to tell Eclipse what
> >>>> are the source folders inside modules and set classpath for all
> >>>> modules.
> >>>>
> >>>> Is there some automated way for doing that. What tool maven
> >>>> developers
> >>>> use for Maven2 development?
> >>>>
> >>>> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] Import Maven 2 source into eclipse
Posted by Ralph Pöllath <li...@poellath.org>.
On 16.09.2005, at 10:28, Nitko2 wrote:
> Jesse thank you for your answer. I tried to do as you suggested but
> got this error when called m2 eclipse:eclipse:
>
> [INFO] Reason: Failed to parse model from file 'E:\unzip\m2src
> \maven-components\pom.xml'.
> Error: 'TEXT must be immediately followed by END_TAG and not
> START_TAG (position
> : START_TAG seen ...<releases>\r\n <enabled>... @157:18) '
>
> Any hints?
Looks like the parser is telling you that your POM isn't valid XML.
Maybe <releases> in line 157 should be </releases>?
Cheers,
-Ralph.
> Jesse McConnell wrote:
>> ah, I should add that each sub project will become an eclipse
>> project and they will largely be linked correctly, including to
>> the resources in your .m2/repository
>>
>> and each project will compile classes to the right location with
>> normal eclipse compilation
>>
>> think that is everything..
>>
>> On 9/15/05, Jesse McConnell <je...@gmail.com> wrote:
>>> there is an eclipse plugin for m2
>>>
>>> go to the root of your project and type
>>> m2 eclipse:eclipse
>>> that will generate .project and .classpath files so you can then
>>> import the projects into eclipse.
>>>
>>> the newer version of eclipse and recursively add all of the
>>> projects, if you are on an older version you will probably have
>>> to add each seperately
>>>
>>> On 9/15/05, Nitko2 <ni...@gmail.com> wrote:
>>>> Hi!
>>>>
>>>> I' would like to examine how Maven 2 works from inside.
>>>>
>>>> Can someone tell me how can I run Maven 2 inside Eclipse. I already
>>>> connected to subversion repository using subclipse and I have
>>>> source
>>>> inside Eclipse. The problem is that I have to tell Eclipse what
>>>> are the source folders inside modules and set classpath for all
>>>> modules.
>>>>
>>>> Is there some automated way for doing that. What tool maven
>>>> developers
>>>> use for Maven2 development?
>>>>
>>>> Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] Import Maven 2 source into eclipse
Posted by Nitko2 <ni...@gmail.com>.
Jesse thank you for your answer. I tried to do as you suggested but got
this error when called m2 eclipse:eclipse:
[INFO] Reason: Failed to parse model from file
'E:\unzip\m2src\maven-components\pom.xml'.
Error: 'TEXT must be immediately followed by END_TAG and not START_TAG
(position
: START_TAG seen ...<releases>\r\n <enabled>... @157:18) '
Any hints?
Jesse McConnell wrote:
>ah, I should add that each sub project will become an eclipse project and
>they will largely be linked correctly, including to the resources in your
>.m2/repository
>
>and each project will compile classes to the right location with normal
>eclipse compilation
>
>think that is everything..
>
>On 9/15/05, Jesse McConnell <je...@gmail.com> wrote:
>
>
>>there is an eclipse plugin for m2
>>
>>go to the root of your project and type
>>
>>m2 eclipse:eclipse
>>
>>that will generate .project and .classpath files so you can then import
>>the projects into eclipse.
>>
>>the newer version of eclipse and recursively add all of the projects, if
>>you are on an older version you will probably have to add each seperately
>>
>>On 9/15/05, Nitko2 <ni...@gmail.com> wrote:
>>
>>
>>>Hi!
>>>
>>>I' would like to examine how Maven 2 works from inside.
>>>
>>>Can someone tell me how can I run Maven 2 inside Eclipse. I already
>>>connected to subversion repository using subclipse and I have source
>>>inside Eclipse. The problem is that I have to tell Eclipse what are the
>>>source folders inside modules and set classpath for all modules.
>>>
>>>Is there some automated way for doing that. What tool maven developers
>>>use for Maven2 development?
>>>
>>>Thanks.
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>>
>>--
>>jesse mcconnell
>>
>>
>
>
>
>
>
>
Re: [m2] Import Maven 2 source into eclipse
Posted by Jesse McConnell <je...@gmail.com>.
ah, I should add that each sub project will become an eclipse project and
they will largely be linked correctly, including to the resources in your
.m2/repository
and each project will compile classes to the right location with normal
eclipse compilation
think that is everything..
On 9/15/05, Jesse McConnell <je...@gmail.com> wrote:
>
> there is an eclipse plugin for m2
>
> go to the root of your project and type
>
> m2 eclipse:eclipse
>
> that will generate .project and .classpath files so you can then import
> the projects into eclipse.
>
> the newer version of eclipse and recursively add all of the projects, if
> you are on an older version you will probably have to add each seperately
>
> On 9/15/05, Nitko2 <ni...@gmail.com> wrote:
> >
> > Hi!
> >
> > I' would like to examine how Maven 2 works from inside.
> >
> > Can someone tell me how can I run Maven 2 inside Eclipse. I already
> > connected to subversion repository using subclipse and I have source
> > inside Eclipse. The problem is that I have to tell Eclipse what are the
> > source folders inside modules and set classpath for all modules.
> >
> > Is there some automated way for doing that. What tool maven developers
> > use for Maven2 development?
> >
> > Thanks.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> jesse mcconnell
--
jesse mcconnell
Re: [m2] Import Maven 2 source into eclipse
Posted by Jesse McConnell <je...@gmail.com>.
there is an eclipse plugin for m2
go to the root of your project and type
m2 eclipse:eclipse
that will generate .project and .classpath files so you can then import the
projects into eclipse.
the newer version of eclipse and recursively add all of the projects, if you
are on an older version you will probably have to add each seperately
On 9/15/05, Nitko2 <ni...@gmail.com> wrote:
>
> Hi!
>
> I' would like to examine how Maven 2 works from inside.
>
> Can someone tell me how can I run Maven 2 inside Eclipse. I already
> connected to subversion repository using subclipse and I have source
> inside Eclipse. The problem is that I have to tell Eclipse what are the
> source folders inside modules and set classpath for all modules.
>
> Is there some automated way for doing that. What tool maven developers
> use for Maven2 development?
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
jesse mcconnell