Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] API for effective pom?

This is exactly what I was looking for, I was using the IMaven.readModel() api before, which didn't gather information from a referenced parent.
Thanks Igor!
Dan

On Mar 15, 2011, at 7:07 PM, Igor Fedorenko wrote:

> I am not sure if this is considered official API or not, but
> org.apache.maven.project.MavenProject.getModel() gives you effective
> project model. You can render it as xml text using
> org.apache.maven.model.io.xpp3.MavenXpp3Writer.
> 
> Maven pom editor implementation is not API, but look at
> org.eclipse.m2e.editor.pom.MavenPomEditor if you want to see the code.
> 
> --
> Regards,
> Igor
> 
> On 11-03-15 09:13 PM, Daniel Johnson wrote:
>> I was just wondering if there is an API to get the equivalent as opening the effective pom tab in the pom editor. Out of curiosity.
>> Dan
>> 
>> On Mar 15, 2011, at 6:02 PM, Igor Fedorenko wrote:
>> 
>>> what are you trying to do?
>>> 
>>> --
>>> Regards,
>>> Igor
>>> 
>>> On 11-03-15 08:29 PM, Daniel Johnson wrote:
>>>> Hi,
>>>> 
>>>> I am wondering if there is an api to get the effective pom just like the effective pom tab on the pom editor.
>>>> 
>>>> Thanks,
>>>> Daniel
> _______________________________________________
> m2e-dev mailing list
> m2e-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-dev



Back to the top