Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Navigating the project structure

Oh, no need for that. The bug in this case was in my head. The
particular project in this case fell afoul of some fine print in
plugin activation that I didn't know about. In fact, I followed a
published recipe for adapting a pom for maven 2 or maven 3 that failed
to note that added a profile activated by a file would disable all
default-activation profiles.

I am, in fact, quite close to having a working checkstyle thing that
follows all of your advice.


On Fri, Nov 26, 2010 at 9:29 AM, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
> Please open new bugreport and provide a sample project we can use to
> reproduce the problem. Use maven jira if the problem occurs on command
> line. Use m2e jira if it is m2e specific.
>
> --
> Regards,
> Igor
>
> On 10-11-25 10:37 PM, Benson Margulies wrote:
>>
>> Igor,
>>
>> My problem turns out to be that m3 is not activating a profile of mine
>> even thought it has activeByDefault true.
>>
>>
>>
>> On Thu, Nov 25, 2010 at 3:59 PM, Igor Fedorenko<igor@xxxxxxxxxxxxxx>
>>  wrote:
>>>
>>> Use IMaven.createSession to create session. Use
>>> MavenProjectManager.createExecutionRequest to create maven execution
>>> request.
>>>
>>> --
>>> Regards,
>>> Igor
>>>
>>> On 10-11-25 12:56 PM, Benson Margulies wrote:
>>>>
>>>> Sorry, I meant, "if I'm handing mavenProjectChanged, how do I get a
>>>> MavenSession?"
>>>>
>>>> On Wed, Nov 24, 2010 at 9:40 AM, Igor Fedorenko<igor@xxxxxxxxxxxxxx>
>>>>  wrote:
>>>>>
>>>>> IMavenProjectFacade.getExecutionPlan returns MavenExecutionPlan, which
>>>>> provides information about all mojo executions bound to project build
>>>>> lifecycle. MojoExecution.getConfiguration returns you xml
>>>>> configuration.
>>>>> Use IMaven.getMojoParameterValue to access individual parameter values.
>>>>> You can also use AbstractProjectConfigurator.getParameterValue
>>>>>
>>>>> --
>>>>> Regards,
>>>>> Igor
>>>>>
>>>>> On 10-11-24 09:08 AM, Benson Margulies wrote:
>>>>>>
>>>>>> I'm trying to figure out if I can borrow some functionality from the
>>>>>> 'temporary' plugin for the checkstyle etc plugins. I'm hoping that one
>>>>>> of you can spare me a paragraph of design overview.
>>>>>>
>>>>>> Task: given a maven project, decide if plugin X is active for the
>>>>>> currently configured profiles for M2E, and examine its configuration.
>>>>>>
>>>>>> So you all have some API for this, or am I on my own in the ordinary
>>>>>> Maven
>>>>>> API?
>
> _______________________________________________
> m2e-dev mailing list
> m2e-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-dev
>


Back to the top