Java Mailing List Archive

http://www.java2.5341.com/

Home » Maven Users List »

Access pom information from outside maven context

Julien Graglia

2008-11-03

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I'd like to access to the org.apache.maven.project.MavenProject or
org.apache.maven.model.Model from 'outside' of the maven plugin
environment.

I dont want to (I can't) write a maven plugin that get thoses deps
injected by plexus or Spring.
I need to access pom's information from an external java program.
I know how to do that in a maven plugin context but not from outside.

I try to do it by hand (new DefaultArtifactRepositoryFactory, new
DefaultArtifactResolver, new DefaultArtifactTransformationManager, new
DefaultWagonManager, new DefaultArtifact...) but whith IoC, private
members and all thoses interfaces, it's quite difficult to get it to
work...

Do you any idea how to do that?

Thx,
--
Julien Graglia
NetCeler


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.