Re: embedding maven archetype plugin in a java application

2020-10-11 Thread Peter Lamby
You can take a look at the maven-archetype-plugin:integration-test mojo. This mojo creates a project from an archetype and checks if all expected files are present. The first half of the plugin should do what you want. You can also just look at the generate mojo. Am 8. Oktober 2020 15:39:54

embedding maven archetype plugin in a java application

2020-10-10 Thread Bob Kubista
Hello, I am trying to generate maven projects with an archetype from a java application. However, whilest the archetype works, I cannot seem to generate a new project from the archetype within a java application. I've been looking at how Eclipse IDE does it, but there is a lot of code go wire e

Re: Embedding Maven in an application

2013-09-18 Thread Wayne Fay
> Im creating an application where I would like to do the following: Parse a pom > and add a specific dependency to classpath. ... > Maven itself solve this very easily. Is there an easy way to embed this > functionality > from Maven into an application? Most likely you will want to look at/lever

Embedding Maven in an application

2013-09-18 Thread Halvor Platou
Hi Im creating an application where I would like to do the following: Parse a pom and add a specific dependency to classpath. Some additional information: - The version of the dependency is defined in dependencyManagement in a parent pom - The parent pom is not available locally,

Embedding Maven and using dependency graph

2011-09-14 Thread Raghvendra Sahu
Hi Everyone, How can I extract the dependency graph from Maven embeder. Suppose I point to a pom.xml and maven creates a dependency graph based on which reactor order is decided, how can I access the graph object and use it for my analysis. Thanks, Any help will be appreciated. Raghvendr

Re: Embedding Maven. I'm a newbie, please point me in the right direction....

2010-04-30 Thread Anders Hammar
so it's > not there to use... The embedder is changing and not stable right > now." > > So, I think this is a bad time to be working on embedding Maven. Wait > until M3 is final and then I think you'll see the situation change > drastically. If your project can't w

Re: Embedding Maven. I'm a newbie, please point me in the right direction....

2010-04-29 Thread Wayne Fay
at Jason van Zyl's comments, you'll see comments like: "The embedder doesn't currently exist anymore. I'm remaking it so it's not there to use... The embedder is changing and not stable right now." So, I think this is a bad time to be working on embedding Maven. Wa

Embedding Maven. I'm a newbie, please point me in the right direction....

2010-04-29 Thread Lars Borg
What I'd like to do is to run the Maven process within my own process. Simply, embedding Maven. But how do I achieve it? Google only shows MavenEmbedder, a class the was deleted as of maven-embedder-3.0-alpha-3. I can't find any howtos/guides for this. JavaDoc is... well... not so i

Re: Embedding maven

2008-09-18 Thread Jason van Zyl
No it's not it's extracted directly from test sources. http://svn.apache.org/repos/asf/maven/site/trunk/src/site/apt/embedder.apt It uses snippets i.e. retrieving live code that just passed tests. On 17-Sep-08, at 3:37 PM, Arnaud Bailly wrote: Jason van Zyl <[EMAIL PROTECTED]> writes: http:

Re: Embedding maven

2008-09-17 Thread Arnaud Bailly
Jason van Zyl <[EMAIL PROTECTED]> writes: > http://maven.apache.org/guides/mini/guide-embedding-m2.html > Thanks. Thought this information was out of date. -- OQube < software engineering \ génie logiciel > Arnaud Bailly, PhD \web> http://www.oqube.com -

Re: Embedding maven

2008-09-17 Thread Jason van Zyl
http://maven.apache.org/guides/mini/guide-embedding-m2.html On 17-Sep-08, at 8:58 AM, Arnaud Bailly wrote: "Brett Porter" <[EMAIL PROTECTED]> writes: I don't think it's really documented, and is certainly subject to change given the nature of trunk. Your best bet might be to look at the CLI

Re: Embedding maven

2008-09-17 Thread Marcelo Morales
You may ask for help on mevenide.codehaus.org, since they code IDE plugins for eclipse and netbeans and use the embedder to run maven inside the IDE. Regards Marcelo Morales - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: Embedding maven

2008-09-17 Thread Arnaud Bailly
"Brett Porter" <[EMAIL PROTECTED]> writes: > I don't think it's really documented, and is certainly subject to change > given the nature of trunk. > Your best bet might be to look at the CLI on trunk as it uses the embedder > itself. > OK, I'll try that, thanks again. -- Arnaud Bailly, PhD OQube

Re: Embedding maven

2008-09-16 Thread Brett Porter
I don't think it's really documented, and is certainly subject to change given the nature of trunk. Your best bet might be to look at the CLI on trunk as it uses the embedder itself. - Brett 2008/9/16 Arnaud Bailly <[EMAIL PROTECTED]> > "Brett Porter" <[EMAIL PROTECTED]> writes: > > > That's the

Re: [m2] embedding maven

2005-11-04 Thread Jason van Zyl
On Fri, 2005-11-04 at 19:46 +0100, Milos Kleint wrote: > regarding mevenide: > i've done some basic work on maven2 mevenidefor netbeans. I'm using the > embedder for that as well. it has some rough egdes but geneally works fine. > check my recent post to the dev list with details. > > the current

Re: [m2] embedding maven

2005-11-04 Thread Milos Kleint
regarding mevenide: i've done some basic work on maven2 mevenidefor netbeans. I'm using the embedder for that as well. it has some rough egdes but geneally works fine. check my recent post to the dev list with details. the current embedder is not release but I think Jason is very close to releasin

[m2] embedding maven

2005-11-03 Thread Robert Biernat
Hi, Whats the status on the maven embedder. I currently use intellij as my ide, and through its external tools feature I'm able to run maven for the selected module, but it would be nice to have a bit more control so I was thinking of writing a very simple intellij plugin, that uses the embedder.

Re: [m2] Embedding Maven 2

2005-07-28 Thread Brett Porter
I'm including this as one of the use cases as we work through http://jira.codehaus.org/browse/MNG-591 - Brett On 7/24/05, Stephane Nicoll <[EMAIL PROTECTED]> wrote: > Guys, > > I am also trying to create testcases for an m2 plugin. For this I need > an initialized MavenProject instance inside my

Re: [m2] Embedding Maven 2

2005-07-24 Thread Peter van de Hoef
ne problem appears again. It appears that the constructor of the DefaultMaven class is constructing the InputHandler. For now, I can live with this and will wait for the documentation on embedding Maven. Greetings, Peter Brett Porter wrote: On 7/24/05, Peter van de Hoef <[EMAIL PROTECTED]&g

Re: [m2] Embedding Maven 2

2005-07-24 Thread Stephane Nicoll
Guys, I am also trying to create testcases for an m2 plugin. For this I need an initialized MavenProject instance inside my test case (so that I have access to getArtifacts and co). Best would be to be able to initialize a Mojo with a particular POM. Any idea how to do this? Thanks, Stéphane On

Re: [m2] Embedding Maven 2

2005-07-23 Thread Brett Porter
On 7/24/05, Peter van de Hoef <[EMAIL PROTECTED]> wrote: > - If it is, how can this JLine issue be worked around? Is it possible to > disable the InputHandler? I think the batch mode flag should turn that off. If not, I'd consider that a bug. We should also consider fixing the problem with jline

[m2] Embedding Maven 2

2005-07-23 Thread Peter van de Hoef
Hi, I'm developing a testcase in which I need to run Maven from within the testcase. I don't want to run maven by executing 'm2' as a separate process via Runtime.exec() since I want my test to run correctly in an environment where maven itself is embedded in another application (e.g. Eclipse).

Re: [M1] Embedding maven genapp in my own plugin

2005-04-14 Thread Charles Daniels
Here is how I do it in my plugin.jelly: This allows me to do: maven myplugin:genapp When I specify a template, it will look for the directory under my plugin's templates directory. --- Laurent PETIT <[EMAIL PROTECTED]> wrote: > Hello, > > I'm unsuccessfully trying to "cleanly"

[M1] Embedding maven genapp in my own plugin

2005-04-14 Thread Laurent PETIT
Hello, I'm unsuccessfully trying to "cleanly" call maven genapp from my own plugin. My aim is to create a plugin that will hide my templates location from the user, so all the user needs to do is do a plugin:download when new versions of my plugin are available (my plugin will at the end contain