hi,

i am using maven embedder access maven from outside application. for testing
purposes i want to build a model-instance with transitive dependencies, but
am unsure how to do this. first i thought that 

MavenProject mp=new MavenProject();
mp.setDependencies(...);

would do this. but after having a look at source code it follows
MavenProject.setDependencies(List<Dependency>) and type Dependency is not
implemented as CompositePattern, so transitive dependency cannot be
expressed through setDependencies. maybe transitive dependencies do get
build up through MavenProject.setArtifacts(List<Artifact>)? though Artifact
does not look as a Composite to me either...


so how do i build a MavenProject instance with transitive dependency
(example dependency a->b->c)? some code snippets (similar to above) would be
cool.

thanks.

-- 
View this message in context: 
http://www.nabble.com/maven-embedder%3A-build-up-model-with-transitive-dependencies-tp14469529s177p14469529.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to