Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Maven Integration (M2E) » Cannot get Embedded maven to recognize profile specified in launch configuration
Cannot get Embedded maven to recognize profile specified in launch configuration [message #26297] Mon, 11 May 2009 22:20 Go to next message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
This is a strange issue, but I'm throwing it out to this newsgroup since I'm
not sure how to proceed. I have a custom ant task that I want to run after
the packaging phase (copy the test-jar somewhere). Some configurations work
and some don't:

1) m2e using embedded maven - doesn't work
2) maven 2.0.9 cli - works
3) m2e using external 2.0.9 - works
4) m2e using embedded maven AND making the profile "active by default" -
works
5) also downloaded and tried 2.1.0 which works as well

What is most confusing is that I can't reproduce this on a simple project.
So it must be something in my complex project structure. I tried debugging
m2e but got stuck without the source code for the embedded maven jars.

Ring a bell for anyone? What could cause a profile not to be picked up? Any
suggestions on how to debug further?

Thanks,
Will
Re: Cannot get Embedded maven to recognize profile specified in launch configuration [message #26375 is a reply to message #26297] Tue, 12 May 2009 15:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: igor.ifedorenko.com

Are you running something like Run As->Maven install? How do you
activate the profile?

--
Regards,
Igor



Will Horn wrote:
> This is a strange issue, but I'm throwing it out to this newsgroup since
> I'm not sure how to proceed. I have a custom ant task that I want to
> run after the packaging phase (copy the test-jar somewhere). Some
> configurations work and some don't:
>
> 1) m2e using embedded maven - doesn't work
> 2) maven 2.0.9 cli - works
> 3) m2e using external 2.0.9 - works
> 4) m2e using embedded maven AND making the profile "active by default" -
> works
> 5) also downloaded and tried 2.1.0 which works as well
>
> What is most confusing is that I can't reproduce this on a simple
> project. So it must be something in my complex project structure. I
> tried debugging m2e but got stuck without the source code for the
> embedded maven jars.
>
> Ring a bell for anyone? What could cause a profile not to be picked up?
> Any suggestions on how to debug further?
>
> Thanks,
> Will
Re: Cannot get Embedded maven to recognize profile specified in launch configuration [message #26413 is a reply to message #26375] Tue, 12 May 2009 17:03 Go to previous messageGo to next message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
Run As -> Maven build...

Then I specify the profile in the text field on the launch configuration
dialog. I have debugged m2e up to the point where it processes the launch
configuration and correctly sets the -P parameter from the text field. The
problem is that somehow the embedded runtime doesn't pick this up in my
particular case.

How do I debug the embedded runtime and figure out why the -P parameter is
insufficient to activate the profile?

-Will

"Igor Fedorenko" <igor@ifedorenko.com> wrote in message
news:guc4t3$lau$1@build.eclipse.org...
> Are you running something like Run As->Maven install? How do you activate
> the profile?
>
> --
> Regards,
> Igor
>
>
>
> Will Horn wrote:
>> This is a strange issue, but I'm throwing it out to this newsgroup since
>> I'm not sure how to proceed. I have a custom ant task that I want to run
>> after the packaging phase (copy the test-jar somewhere). Some
>> configurations work and some don't:
>>
>> 1) m2e using embedded maven - doesn't work
>> 2) maven 2.0.9 cli - works
>> 3) m2e using external 2.0.9 - works
>> 4) m2e using embedded maven AND making the profile "active by default" -
>> works
>> 5) also downloaded and tried 2.1.0 which works as well
>>
>> What is most confusing is that I can't reproduce this on a simple
>> project. So it must be something in my complex project structure. I
>> tried debugging m2e but got stuck without the source code for the
>> embedded maven jars.
>>
>> Ring a bell for anyone? What could cause a profile not to be picked up?
>> Any suggestions on how to debug further?
>>
>> Thanks,
>> Will
Re: Cannot get Embedded maven to recognize profile specified in launch configuration [message #26448 is a reply to message #26413] Tue, 12 May 2009 18:18 Go to previous message
Eclipse UserFriend
Originally posted by: igor.ifedorenko.com

This [1] m2eclipse-dev mailing list thread has some info about maven
version currently used by m2e. Keep in mind, though, that we are about
to replace maven embedder with latest and greatest from maven 3.0 trunk,
so if you can wait couple of weeks, the problem will likely go away by
itself.

[1] http://markmail.org/message/eb376xuqh7x6ssfw

--
Regards,
Igor

Will Horn wrote:
> Run As -> Maven build...
>
> Then I specify the profile in the text field on the launch configuration
> dialog. I have debugged m2e up to the point where it processes the
> launch configuration and correctly sets the -P parameter from the text
> field. The problem is that somehow the embedded runtime doesn't pick
> this up in my particular case.
>
> How do I debug the embedded runtime and figure out why the -P parameter
> is insufficient to activate the profile?
>
> -Will
>
> "Igor Fedorenko" <igor@ifedorenko.com> wrote in message
> news:guc4t3$lau$1@build.eclipse.org...
>> Are you running something like Run As->Maven install? How do you
>> activate the profile?
>>
>> --
>> Regards,
>> Igor
>>
>>
>>
>> Will Horn wrote:
>>> This is a strange issue, but I'm throwing it out to this newsgroup
>>> since I'm not sure how to proceed. I have a custom ant task that I
>>> want to run after the packaging phase (copy the test-jar somewhere).
>>> Some configurations work and some don't:
>>>
>>> 1) m2e using embedded maven - doesn't work
>>> 2) maven 2.0.9 cli - works
>>> 3) m2e using external 2.0.9 - works
>>> 4) m2e using embedded maven AND making the profile "active by
>>> default" - works
>>> 5) also downloaded and tried 2.1.0 which works as well
>>>
>>> What is most confusing is that I can't reproduce this on a simple
>>> project. So it must be something in my complex project structure. I
>>> tried debugging m2e but got stuck without the source code for the
>>> embedded maven jars.
>>>
>>> Ring a bell for anyone? What could cause a profile not to be picked
>>> up? Any suggestions on how to debug further?
>>>
>>> Thanks,
>>> Will
>
Previous Topic:Eclipse RCP application with Tycho
Next Topic:When does tycho will released officially
Goto Forum:
  


Current Time: Fri Apr 26 00:54:03 GMT 2024

Powered by FUDForum. Page generated in 0.04318 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top