My understanding is that maven-embedder stopped being supported for Maven 2 at v2.0.4 (there is no 2.0.5, 2.1.x, or 2.2.x for example). Then it was re-introduced with Maven 3, but I'm guessing that the API changed completely. But I could be completely off...
/Anders On Thu, Aug 18, 2011 at 15:31, Thiessen, Todd (Todd) <tthies...@avaya.com> wrote: > Thanks for a link to those examples. > > I noticed that that pom has dependencies like: > > <dependency> > <groupId>org.apache.maven</groupId> > <artifactId>maven-model</artifactId> > <version>3.0.1</version> > </dependency> > > This artifact is also a dependency of the maven-embedder artifact. The > statement I linked earlier regarding the maven embedder not being supported; > what does this really mean? Does this mean that I shouldn't be using > maven-embedder but rather directly using the artifacts it depends on like > maven-model? > >> -----Original Message----- >> From: t.cserve...@gmail.com [mailto:t.cserve...@gmail.com] On Behalf Of >> Tamás Cservenák >> Sent: Thursday, August 18, 2011 7:12 AM >> To: Maven Users List >> Subject: Re: Maven Embedder >> >> While you're use case is not quite clear to me ("combined view of >> properties defined in pom and in profile..."), you could take a peek >> at this: >> >> https://github.com/sonatype/sisu-maven-bridge >> >> It does offer effective pom for example... >> >> Patches, as always, are welcome! :) >> >> >> Thanks, >> ~t~ >> >> On Wed, Aug 17, 2011 at 10:01 PM, Thiessen, Todd (Todd) >> <tthies...@avaya.com> wrote: >> > I like the idea of using only the parts of the embedder that you >> need. >> > >> > Is anything published anywhere which can list which components are >> available for what tasks? >> > >> > I have been looking through the source for this artifact and its >> dependencies: >> > >> > <dependency> >> > <groupId>org.apache.maven</groupId> >> > <artifactId>maven-embedder</artifactId> >> > <version>3.0.3</version> >> > </dependency> >> > >> > But haven't had too much luck trying to piece it all together. >> > >> > Ultimately what I want to do is to be able to have a combined view of >> the properties defined in the pom and in a profile defined in my local >> settings.xml file. I have found a number of classes like >> "DefaultSettingsBuilder" and "DefaultProjectBuilder" but they all >> require other classes which other classes, etc... >> > >> >> -----Original Message----- >> >> From: Jason van Zyl [mailto:ja...@maven.org] >> >> Sent: Wednesday, August 17, 2011 3:45 PM >> >> To: Maven Users List >> >> Subject: Re: Maven Embedder >> >> >> >> A single embedder really doesn't make any sense, or at least this is >> >> what we have found working on Nexus, M2Eclipse, Hudson and a bunch >> of >> >> other tools. All of the use cases are slightly different and it is >> just >> >> easier to grab the individual components and piece them together as >> >> required. We have several small embedders for all of the tools now. >> We >> >> could probably make another one now that might be useful but the >> first >> >> form of the embedder certainly wasn't which is why it was removed. >> >> >> >> On Aug 17, 2011, at 3:35 PM, Thiessen, Todd (Todd) wrote: >> >> >> >> > Hmm. Or is the Maven Embedder no longer supported? >> >> > >> >> > http://stackoverflow.com/questions/5141788/how-to-run-maven-from- >> java >> >> > >> >> > >> >> > From: Thiessen, Todd (Todd) >> >> > Sent: Wednesday, August 17, 2011 11:27 AM >> >> > To: users@maven.apache.org >> >> > Subject: Maven Embedder >> >> > >> >> > Is there any kind of users guide for the maven embedder? Not >> finding >> >> anything. >> >> > >> >> > I can find the source, but having to guess as to how to use the >> >> classes. >> >> >> >> Thanks, >> >> >> >> Jason >> >> >> >> ---------------------------------------------------------- >> >> Jason van Zyl >> >> Founder, Apache Maven >> >> http://twitter.com/jvanzyl >> >> --------------------------------------------------------- >> >> >> >> happiness is like a butterfly: the more you chase it, the more it >> will >> >> elude you, but if you turn your attention to other things, it will >> come >> >> and sit softly on your shoulder ... >> >> >> >> -- Thoreau >> >> >> >> >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> > For additional commands, e-mail: users-h...@maven.apache.org >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org