archetype .classpath being replaced

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

archetype .classpath being replaced

Jamie Townsend-4

Hi.  With M2Eclipse 0.10.0.20100209-800, when a new Maven project is create from an Archetype, the .classpath in the Archetype is being replaced by a “standard” .classpath file.  Unfortunately, that removes the custom entries we put in the .classpath embedded in the Archetype.  If we run mvn archetype:generate from the command line (Maven 3.0-beta-1), it works as expected.

 

Is there a (good) reason why M2Eclipse replaces out customer .classpath file?

 

TIA,

Jamie

 

PS – is there an archive of this email alias somewhere?

Reply | Threaded
Open this post in threaded view
|

Re: archetype .classpath being replaced

Anders Hammar
Regarding archives:
http://maven.apache.org/mail-lists.html

/Anders

On Thu, May 20, 2010 at 14:11, Jamie Townsend <[hidden email]> wrote:

Hi.  With M2Eclipse 0.10.0.20100209-800, when a new Maven project is create from an Archetype, the .classpath in the Archetype is being replaced by a “standard” .classpath file.  Unfortunately, that removes the custom entries we put in the .classpath embedded in the Archetype.  If we run mvn archetype:generate from the command line (Maven 3.0-beta-1), it works as expected.

 

Is there a (good) reason why M2Eclipse replaces out customer .classpath file?

 

TIA,

Jamie

 

PS – is there an archive of this email alias somewhere?


Reply | Threaded
Open this post in threaded view
|

RE: archetype .classpath being replaced

Jamie Townsend-4

Thanks.

 

--

Jamie

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Anders Hammar
Sent: Thursday, 20 May 2010 2:31 PM
To: [hidden email]
Subject: Re: [m2eclipse-user] archetype .classpath being replaced

 

Regarding archives:
http://maven.apache.org/mail-lists.html

/Anders

On Thu, May 20, 2010 at 14:11, Jamie Townsend <[hidden email]> wrote:

Hi.  With M2Eclipse 0.10.0.20100209-800, when a new Maven project is create from an Archetype, the .classpath in the Archetype is being replaced by a “standard” .classpath file.  Unfortunately, that removes the custom entries we put in the .classpath embedded in the Archetype.  If we run mvn archetype:generate from the command line (Maven 3.0-beta-1), it works as expected.

 

Is there a (good) reason why M2Eclipse replaces out customer .classpath file?

 

TIA,

Jamie

 

PS – is there an archive of this email alias somewhere?

 

Reply | Threaded
Open this post in threaded view
|

Re: archetype .classpath being replaced

Anders Hammar
In reply to this post by Anders Hammar
My bad, didn't realize that this was the m2e mailing list. Here's the m2e archive at Nabble:
http://old.nabble.com/Maven-Eclipse-%28m2eclipse%29-f14524.html

/Anders

On Thu, May 20, 2010 at 14:30, Anders Hammar <[hidden email]> wrote:
Regarding archives:
http://maven.apache.org/mail-lists.html

/Anders


On Thu, May 20, 2010 at 14:11, Jamie Townsend <[hidden email]> wrote:

Hi.  With M2Eclipse 0.10.0.20100209-800, when a new Maven project is create from an Archetype, the .classpath in the Archetype is being replaced by a “standard” .classpath file.  Unfortunately, that removes the custom entries we put in the .classpath embedded in the Archetype.  If we run mvn archetype:generate from the command line (Maven 3.0-beta-1), it works as expected.

 

Is there a (good) reason why M2Eclipse replaces out customer .classpath file?

 

TIA,

Jamie

 

PS – is there an archive of this email alias somewhere?



Reply | Threaded
Open this post in threaded view
|

Re: archetype .classpath being replaced

Igor Fedorenko-3
In reply to this post by Jamie Townsend-4
m2e does not support custom .classpath entries, you need to use m2e
extensions APIs if you need to customize behaviour for your projects
inside m2e workspace.

--
Regards,
Igor

Jamie Townsend wrote:

> Hi.  With M2Eclipse 0.10.0.20100209-800, when a new Maven project is
> create from an Archetype, the .classpath in the Archetype is being
> replaced by a “standard” .classpath file.  Unfortunately, that removes
> the custom entries we put in the .classpath embedded in the Archetype.  
> If we run mvn archetype:generate from the command line (Maven
> 3.0-beta-1), it works as expected.
>
>  
>
> Is there a (good) reason why M2Eclipse replaces out customer .classpath
> file?
>
>  
>
> TIA,
>
> Jamie
>
>  
>
> PS – is there an archive of this email alias somewhere?
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

RE: archetype .classpath being replaced

Jamie Townsend-4
Could you possibly point me at an example or doc?

Thanks,
Jamie


> -----Original Message-----
> From: Igor Fedorenko [mailto:[hidden email]]
> Sent: Thursday, 20 May 2010 2:58 PM
> To: [hidden email]
> Subject: Re: [m2eclipse-user] archetype .classpath being replaced
>
> m2e does not support custom .classpath entries, you need to use m2e
> extensions APIs if you need to customize behaviour for your projects
> inside m2e workspace.
>
> --
> Regards,
> Igor
>
> Jamie Townsend wrote:
> > Hi.  With M2Eclipse 0.10.0.20100209-800, when a new Maven project is
> > create from an Archetype, the .classpath in the Archetype is being
> > replaced by a "standard" .classpath file.  Unfortunately, that
> removes
> > the custom entries we put in the .classpath embedded in the
> Archetype.
> > If we run mvn archetype:generate from the command line (Maven
> > 3.0-beta-1), it works as expected.
> >
> >
> >
> > Is there a (good) reason why M2Eclipse replaces out customer
> .classpath
> > file?
> >
> >
> >
> > TIA,
> >
> > Jamie
> >
> >
> >
> > PS - is there an archive of this email alias somewhere?
> >
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

How do you mavenize projects ? (EJB, Webapp, JPA under Eclipse)

Celinio Fernandes
Hi,
I am using Eclipse Galileo.
Initially I created several projects (one webapp, one EJB project, one JPA project) in Eclipse, without Maven.
The output of these projects is a single EAR file (containing the JAR, WAR files ...).
There is no ANT build file. The compilation and creation of the EAR file is automatically generated with Eclipse.
I am using Java 6 and Maven 2.0.9.

The question is : how do you mavenize these projects ?


1) If I use the command line way to use Maven, under DOS, what do i need to do for each project ?

2) I have installed the m2Eclipse (Maven Integration) plugin for Eclipse. If I use that plugin,
how do i proceed ? I just noticed a feature called "Enable Dependency Management" if i right click on a project.
what does it do ?

Any suggestion or pointer would be much appreciated.
Thanks in advance for helping.


Reply | Threaded
Open this post in threaded view
|

Re: archetype .classpath being replaced

Igor Fedorenko-3
In reply to this post by Jamie Townsend-4
There is not much documentation for m2e extension development,
unfortunately. There is some info in [1] but it does not cover
changes and new features we made in 0.10.0.

As for examples, have a look at [2]. There is a number of so called
"project configurators" for several popular maven plugins (antlr,
buildhelper and couple of others), which both contribute to workspace
project classpath and participate in builds.

You can also check [3], which completely overrides standard m2e
behaviour for Tycho projects and delegates pretty much everything to PDE
instead.


[1]
https://docs.sonatype.org/display/M2ECLIPSE/Extensible+project+configuration+framework
[2]
https://svn.sonatype.org/m2eclipse/trunk/org.maven.ide.eclipse.temporary.mojos
[3] http://github.com/sonatype/m2eclipse-tycho

--
Regards,
Igor

Jamie Townsend wrote:

> Could you possibly point me at an example or doc?
>
> Thanks,
> Jamie
>
>
>> -----Original Message-----
>> From: Igor Fedorenko [mailto:[hidden email]]
>> Sent: Thursday, 20 May 2010 2:58 PM
>> To: [hidden email]
>> Subject: Re: [m2eclipse-user] archetype .classpath being replaced
>>
>> m2e does not support custom .classpath entries, you need to use m2e
>> extensions APIs if you need to customize behaviour for your projects
>> inside m2e workspace.
>>
>> --
>> Regards,
>> Igor
>>
>> Jamie Townsend wrote:
>>> Hi.  With M2Eclipse 0.10.0.20100209-800, when a new Maven project is
>>> create from an Archetype, the .classpath in the Archetype is being
>>> replaced by a "standard" .classpath file.  Unfortunately, that
>> removes
>>> the custom entries we put in the .classpath embedded in the
>> Archetype.
>>> If we run mvn archetype:generate from the command line (Maven
>>> 3.0-beta-1), it works as expected.
>>>
>>>
>>>
>>> Is there a (good) reason why M2Eclipse replaces out customer
>> .classpath
>>> file?
>>>
>>>
>>>
>>> TIA,
>>>
>>> Jamie
>>>
>>>
>>>
>>> PS - is there an archive of this email alias somewhere?
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email