Maven Embedder 3.3.9 Functional Example Help

2017-04-07 Thread Mitch Turner
Hello folks, I am attempting to use maven-embedder:3.3.9 and have thus far been unsuccessful. I forked a functioning repo for Maven version 3.1.1 however I would like to use 3.3.9 or newer. My attempt to run 3.3.9 is here: https://github.com/tc-turner/maven-embedder-otg/tree/339 You can see

Maven embedder: Compiler dependency could not be resolved

2015-02-08 Thread Albert Battle
I have maven projects *A* and *B*. Project *A* uses maven embedder 3.2.5 and builds with it project *B*. MavenCli mavenCli = new MavenCli(); mavenCli.doMain(new String[] {package}, C:\\Users\\JohnDoe\\Desktop\\abc, System.out, System.out); But I get the exception: Plugin

Re: Maven Embedder

2011-08-18 Thread Tamás Cservenák
[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

RE: Maven Embedder

2011-08-18 Thread Thiessen, Todd (Todd)
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

RE: Maven Embedder

2011-08-18 Thread Thiessen, Todd (Todd)
Thanks for a link to those examples. I noticed that that pom has dependencies like: dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId version3.0.1/version /dependency This artifact is also a dependency of the maven-embedder artifact

Re: Maven Embedder

2011-08-18 Thread Jason van Zyl
The MavenEmbedder class is gone, the maven-embedder module that still exists in the source is a misnomer really. Though if you look at the MavenCli class you'll see how we use some of the components to do some basic things like execute goals, read settings and the like. On Aug 18, 2011, at 9

Re: Maven Embedder

2011-08-18 Thread Anders Hammar
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

Maven Embedder

2011-08-17 Thread Thiessen, Todd (Todd)
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.

RE: Maven Embedder

2011-08-17 Thread Thiessen, Todd (Todd)
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

Re: Maven Embedder

2011-08-17 Thread Jason van Zyl
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

Re: Maven Embedder

2011-08-17 Thread Anders Hammar
. One other way is to have a look at m2eclipse code, which takes full advantage of integrating Maven into a tool. /Anders PS. The Maven Embedder I believe you're asking about was based on some old Maven 2.0 code and found impossible to maintain. On Wed, Aug 17, 2011 at 21:35, Thiessen, Todd (Todd

RE: Maven Embedder

2011-08-17 Thread Thiessen, Todd (Todd)
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

RE: Maven Embedder

2011-08-17 Thread Thiessen, Todd (Todd)
I can volunteer some time to help make some of these components available. I presume most of these components can be found in the 3.0.3 maven-embedder artifact? Or is that artifact effectively deprecated and the components are found somewhere else? -Original Message- From: Thiessen

maven embedder 3 - some documentation please...

2011-06-06 Thread deusaquilus
There are some good examples for maven embedder 2 here... but that's all deprecated. http://maven.apache.org/embedder.html Could someone please change that page to show a decent example of a maven embedder 3.0.x project? Also, if there's some documentation with a simple embedder example

Re: Upgrading maven-embedder from 2.0.4 to 3.0.2

2011-03-29 Thread mraible
at the unit tests here [1] [1] https://github.com/jenkinsci/lib-jenkins-maven-embedder/blob/master/src/test/java/hudson/maven/TestMavenEmbedderSimpleProject.java I copied your MavenEmbedder into my project and got most of the dependencies resolved. However, when I run it, I get the error below. I

Re: Maven embedder examples

2011-03-10 Thread VietnamCoder
This message is too old. Anyway I post my solution here in case someone needs it: org.apache.maven maven-embedder 3.0-alpha-2 test The 3.0-alpha-2 version works

RE: Maven embedder examples

2011-03-10 Thread Martin Gainty
: Wed, 9 Mar 2011 23:16:12 -0800 From: nguyenhoai...@gmail.com To: users@maven.apache.org Subject: Re: Maven embedder examples This message is too old. Anyway I post my solution here in case someone needs it: org.apache.maven

Re: Upgrading maven-embedder from 2.0.4 to 3.0.2

2011-03-07 Thread mraible
Any recommendations for developing an embedded Maven that will work for both 2.x and 3.x users? My current setup works for 2.x users, but if I upgrade to a new way for 3.x, I'm afraid it'll break 2.x support. -- View this message in context: http://maven.40175.n5.nabble.com/Upgrading-maven

Re: Upgrading maven-embedder from 2.0.4 to 3.0.2

2011-03-04 Thread Jason van Zyl
in tools like m2eclipse, for example. This was simply just not possible (in a good way) with Maven 2.x. As I understand it, maven-embedder stopped at 2.0.4 for Maven 2 because they ran into too many issues trying to get it to work with the old Maven 2 code base. Correct. /Anders On Fri, Mar

Re: Upgrading maven-embedder from 2.0.4 to 3.0.2

2011-03-03 Thread mraible
This seems somewhat complicated - isn't there an easier way? Of the top 10 reasons to use Maven, #4 is it's easier to embed. http://www.sonatype.com/people/2011/02/top-ten-reasons-to-move-to-maven-3/ -- View this message in context: http://maven.40175.n5.nabble.com/Upgrading-maven-embedder-from

Re: Upgrading maven-embedder from 2.0.4 to 3.0.2

2011-03-03 Thread Anders Hammar
just not possible (in a good way) with Maven 2.x. As I understand it, maven-embedder stopped at 2.0.4 for Maven 2 because they ran into too many issues trying to get it to work with the old Maven 2 code base. /Anders On Fri, Mar 4, 2011 at 06:13, mraible m...@raibledesigns.com wrote: This seems

Re: Upgrading maven-embedder from 2.0.4 to 3.0.2

2011-02-11 Thread Olivier Lamy
, -- Olivier Lamy http://twitter.com/olamy http://www.linkedin.com/in/olamy [1] https://github.com/jenkinsci/lib-jenkins-maven-embedder/blob/master/src/test/java/hudson/maven/TestMavenEmbedderSimpleProject.java 2011/2/10 mraible m...@raibledesigns.com: I'm trying to upgrade the dependencies

Upgrading maven-embedder from 2.0.4 to 3.0.2

2011-02-10 Thread mraible
I'm trying to upgrade the dependencies of the appfuse-maven-plugin to use the latest Maven dependencies to solve an issue with using Maven 3. http://issues.appfuse.org/browse/APF-1220 However, when I upgrade to maven-embedder 3.0.2, there's a couple classes missing: MavenEmbedder

Re: [Maven embedder] How to retrieve the list of available versions of a given plugin?

2010-03-11 Thread Xavier SEIGNARD
how to do it? And I don't wan't to make my usage of Maven embedder dependent to Nexus (which is BTW a great tool). Thanks for your answers. Xavier Le , Jason van Zyl ja...@sonatype.com a écrit : I suggest using the maven-versions-plugin: http://mojo.codehaus.org/versions-maven-plugin

[Maven embedder] How to retrieve the list of available versions of a given plugin?

2010-03-10 Thread xavier . seignard
Hello, I would like to know how to retrieve list of available versions of a given plugin with the maven embedder. In input I only have a groupId, an artifactId, a local repo and a list of remote repos. In output I would like to have a list containing all the available versions

Re: [Maven embedder] How to retrieve the list of available versions of a given plugin?

2010-03-10 Thread Ron Wheeler
If you have Nexus installed, you can just go to the index, work your way down to the artifact and see all the versions that are available. Ron xavier.seign...@gmail.com wrote: Hello, I would like to know how to retrieve list of available versions of a given plugin with the maven embedder

Re: [Maven embedder] How to retrieve the list of available versions of a given plugin?

2010-03-10 Thread Jason van Zyl
I suggest using the maven-versions-plugin: http://mojo.codehaus.org/versions-maven-plugin/index.html On Mar 10, 2010, at 6:39 AM, xavier.seign...@gmail.com wrote: Hello, I would like to know how to retrieve list of available versions of a given plugin with the maven embedder. In input I

Re: [Maven embedder] How to retrieve the list of available versions of a given plugin?

2010-03-10 Thread lukewpatterson
xavier.seignard wrote: I would like to know how to retrieve list of available versions of a given plugin with the maven embedder. In input I only have a groupId, an artifactId, a local repo and a list of remote repos. In output I would like to have a list containing all

Re: Re: [Maven embedder] How to retrieve the list of available versions of a given plugin?

2010-03-10 Thread xavier . seignard
Thanks for the tips! But, I don't see how can I use the maven-version-plguin to get the list of all versions available of a given artifact. Can you indacate me how to do it? And I don't wan't to make my usage of Maven embedder dependent to Nexus (which is BTW a great tool). Thanks

Re: [Maven embedder] How to retrieve the list of available versions of a given plugin?

2010-03-10 Thread Jason van Zyl
don't wan't to make my usage of Maven embedder dependent to Nexus (which is BTW a great tool). Thanks for your answers. Xavier Le , Jason van Zyl ja...@sonatype.com a écrit : I suggest using the maven-versions-plugin: http://mojo.codehaus.org/versions-maven-plugin/index.html

Re: Maven Embedder thread safety

2009-11-18 Thread Fabien Coppens
Hi folks. Any chance I can get an answer to those questions below ? Thanks. Fabien Original Message Subject: Maven Embedder thread safety Date: Tue, 17 Nov 2009 14:45:55 +0100 From: Fabien Coppens fabien.copp...@free.fr Reply-To: Maven Users List users

Re: Maven Embedder thread safety

2009-11-18 Thread Anders Hammar
18, 2009 at 14:43, Fabien Coppens fabien.copp...@free.frwrote: Hi folks. Any chance I can get an answer to those questions below ? Thanks. Fabien Original Message Subject: Maven Embedder thread safety Date: Tue, 17 Nov 2009 14:45:55 +0100 From: Fabien Coppens

Maven Embedder thread safety

2009-11-17 Thread Fabien Coppens
Hi all. I'm using Maven Embedder 3.0-alpha-2 to execute a dependency:resolve goal on a large number of POM files (several thousand), using a Java batch runtime. For performance reasons, I use a thread pool (ThreadPoolExecutor) to parallelize the calls to the embedder's execute method. However

Re: Standalone Maven Embedder

2009-10-19 Thread Espen Wiborg
(and especially http://github.com/espenhw/malabar-mode/blob/master/src/main/groovy/org/grumblesmurf/malabar/MvnServer.groovy) for how I do it. I've sto.. er, borrowed a lot of code from http://svn.eu.apache.org/viewvc/maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

Standalone Maven Embedder

2009-10-16 Thread dreedyman
Hi, I am trying to use the maven-embedder outside of my Maven project and have not been successful. I'm hoping someone can lend some assistance. The code tries to get the PlexusContainer from the embedder in order to lookup the ArtifactResolver, ArtifactFactory, ArtifactMetadataSource

Re: Standalone Maven Embedder

2009-10-16 Thread Jason van Zyl
As I've stated on the dev list the embedder, or more accurately, embedding will not be supported in the Maven 3.0 betas. Reading the source code, or looking at M2Eclipse are your options for now. On 2009-10-16, at 7:54 AM, dreedyman wrote: Hi, I am trying to use the maven-embedder

Re: Standalone Maven Embedder

2009-10-16 Thread dreedyman
accurately, embedding will not be supported in the Maven 3.0 betas. Reading the source code, or looking at M2Eclipse are your options for now. -- View this message in context: http://www.nabble.com/Standalone-Maven-Embedder-tp25925809p25926966.html Sent from the Maven - Users mailing

Re: Standalone Maven Embedder

2009-10-16 Thread Jason van Zyl
on the dev list the embedder, or more accurately, embedding will not be supported in the Maven 3.0 betas. Reading the source code, or looking at M2Eclipse are your options for now. -- View this message in context: http://www.nabble.com/Standalone-Maven-Embedder-tp25925809p25926966.html Sent from

Re: Standalone Maven Embedder

2009-10-16 Thread dreedyman
in context: http://www.nabble.com/Standalone-Maven-Embedder-tp25925809p25926966.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional

Re: Standalone Maven Embedder

2009-10-16 Thread Jason van Zyl
the source code, or looking at M2Eclipse are your options for now. -- View this message in context: http://www.nabble.com/Standalone-Maven-Embedder-tp25925809p25926966.html Sent from the Maven - Users mailing list archive at Nabble.com

Problem with Maven Embedder 3.0 : protocol not found error

2009-09-21 Thread Fabien Coppens
Hi all. I am trying to use Maven Embedder 3.0-alpha-2 (latest version to be found on the central repository), and am running into a problem when running a build on a specified POM (see code below) : the POM in question references artefacts which are on our central Archiva repository, accessible

Re: Problem with Maven Embedder 3.0 : protocol not found error

2009-09-21 Thread Brett Porter
at this stage. - Brett On 21/09/2009, at 10:08 PM, Fabien Coppens wrote: Hi all. I am trying to use Maven Embedder 3.0-alpha-2 (latest version to be found on the central repository), and am running into a problem when running a build on a specified POM (see code below) : the POM in question

updating dependencyManagement section in pom.xml using Maven Embedder

2009-04-13 Thread Sankaran, Nambi
( pomFilePath )); project.writeModel(writer); What is the best way to update dependencyManagement section using maven embedder? Thanks Nambi

Maven Embedder and phase bindings

2009-04-03 Thread Ford, Mark
I am attempting to execute a clean and install for a project through the Maven Embedder (3.0-alpha-2). The build runs without any error but there are a number of mojo's that are never executed. For example: resources, compile, jar, etc. I only see the output for clean and install but nothing

Re: Maven Embedder and phase bindings

2009-04-03 Thread Jason van Zyl
On 3-Apr-09, at 12:24 PM, Ford, Mark wrote: I am attempting to execute a clean and install for a project through the Maven Embedder (3.0-alpha-2). The build runs without any error but there are a number of mojo's that are never executed. For example: resources, compile, jar, etc. I only

Re: Maven Embedder - Jar in official repo is too old

2009-01-23 Thread Jim Shingler
The repository below requires a userid and password, . . . do you have public repository, . . . I have a need for maven embedder too. Jason van Zyl-2 wrote: Take it from the CI system, there is no official release. http://ci.sonatype.org/view/Maven%203.0.x/job/maven-3.0.x-bootstrap

Is there an actual version of the maven-embedder for 2.0.x?

2008-11-12 Thread Marco Huber
Hi all, I am looking for an actual version of the maven-embedder for the 2.0.x tree. In the central repository there is only a maven-embedder for 2.0.4. But this version seems to be a big buggy. After searching the internet the error occures are the same that occured in maven 2.0.4 version

Re: Maven Embedder - Jar in official repo is too old

2008-09-04 Thread Kem Elbrader
I'm also interested in using maven embedder and don't know which version to use and where to find it. I had been using 2.1-SNAPSHOT from the snapshot repo but it seems to no longer be available. On Wed, Sep 3, 2008 at 1:12 PM, Shalin Shekhar Mangar [EMAIL PROTECTED] wrote: Hello, I'm trying

Re: Maven Embedder - Jar in official repo is too old

2008-09-04 Thread Jason van Zyl
Take it from the CI system, there is no official release. http://ci.sonatype.org/view/Maven%203.0.x/job/maven-3.0.x-bootstrap/ On 4-Sep-08, at 9:00 AM, Kem Elbrader wrote: I'm also interested in using maven embedder and don't know which version to use and where to find it. I had been using

Maven Embedder - Jar in official repo is too old

2008-09-03 Thread Shalin Shekhar Mangar
Hello, I'm trying to embed Maven in my application. I've looked at the Maven embedded mini-guide at http://maven.apache.org/guides/mini/guide-embedding-m2.html The latest version of maven-embedded at the main repository is 2.0.4 ( http://repo1.maven.org/maven2/org/apache/maven/maven-embedder

Re: Maven Embedder 2.1-SNAPSHOT

2008-08-12 Thread Jason van Zyl
Go to the Hudson job, for example here: http://ci.sonatype.org/view/Maven%203.0.x/job/maven-3.0.x-bootstrap/ And then navigate into the workspace: http://ci.sonatype.org/view/Maven%203.0.x/job/maven-3.0.x-bootstrap/ws/trunk/maven-embedder/target/ I can publish these to Nexus where you can

Re: Maven Embedder 2.1-SNAPSHOT

2008-08-12 Thread Kem Elbrader
Zyl [EMAIL PROTECTED] wrote: Go to the Hudson job, for example here: http://ci.sonatype.org/view/Maven%203.0.x/job/maven-3.0.x-bootstrap/ And then navigate into the workspace: http://ci.sonatype.org/view/Maven%203.0.x/job/maven-3.0.x-bootstrap/ws/trunk/maven-embedder/target/ I can publish

Maven Embedder 2.1-SNAPSHOT

2008-08-11 Thread Kem Elbrader
What happened to the maven embedder 2.1 snapshot? http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/maven-embedder/2.1-SNAPSHOT/ Is it going to be deployed again? Is there another repository that has it deployed

Re: Maven Embedder 2.1-SNAPSHOT

2008-08-11 Thread Wendy Smoak
On Mon, Aug 11, 2008 at 9:34 AM, Kem Elbrader [EMAIL PROTECTED] wrote: What happened to the maven embedder 2.1 snapshot? http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/maven-embedder/2.1-SNAPSHOT/ Is it going to be deployed again? Is there another repository that has

Re: Maven Embedder 2.1-SNAPSHOT

2008-08-11 Thread Kem Elbrader
Great, thanks. On Mon, Aug 11, 2008 at 11:01 AM, Wendy Smoak [EMAIL PROTECTED] wrote: On Mon, Aug 11, 2008 at 9:34 AM, Kem Elbrader [EMAIL PROTECTED] wrote: What happened to the maven embedder 2.1 snapshot? http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/maven-embedder

maven embedder provided properties?

2008-08-04 Thread Lachlan Deck
Hi there, just wondering if there's any properties made available to the maven embedder when inside eclipse? I'm wondering as I'd like to have a profile that's activated if detected that it's running within eclipse. Just trying to save having to define the profile within the gui for each

Documentation and/or examples for Maven Embedder

2008-04-10 Thread Bill Rye
I'm looking for something beyond http://maven.apache.org/guides/mini/guide-embedding-m2.html as I want to do things like read pom.xml (done), add a jar to the repository, and get the URL for the location of a jar in the local repository given the artifact. Thanks, Bill

Re: Documentation and/or examples for Maven Embedder

2008-04-10 Thread Henrique Prange
Hi Bill, The newest version of the embedder was not released yet. Look here [1]. I think you can find a way to solve your problems without having to make use of the Maven embedder. [1]http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook Cheers, Henrique Bill Rye wrote: I'm

How to get DependencyTreeBuilder in maven-embedder?

2008-03-13 Thread Peter Niederwieser
Hi, I'm using maven-embedder (2.1) to analyze dependencies in our POMs. MavenEmbedder.readProjectWithDependencies() doesn't give me all the information I'm looking for. org.apache.maven.shared.dependency.tree.DependencyTreeBuilder looks like a better fit for my needs. But, how can I construct

Where did the maven-embedder go?

2008-01-04 Thread Graham Leggett
Hi all, I have been looking for details on how to embed maven functionality in an application[1], and so far the maven-embedder seems to be what I need, described here: http://maven.apache.org/guides/mini/guide-embedding-m2.html The guide makes no mention of what jars are needed to make

Re: Where did the maven-embedder go?

2008-01-04 Thread Tom Huybrechts
[1] I am trying to use the maven-artifact API to download artifacts from my maven repository. Trouble is, I cannot find the formal way to create ArtifactRepository objects. http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook - create a DefaultArtifactRepository object - or

Re: Where did the maven-embedder go?

2008-01-04 Thread Graham Leggett
Tom Huybrechts wrote: [1] I am trying to use the maven-artifact API to download artifacts from my maven repository. Trouble is, I cannot find the formal way to create ArtifactRepository objects. http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook - create a

Re: Where did the maven-embedder go?

2008-01-04 Thread Graham Leggett
Nick Stolwijk wrote: It seems it got deleted between 2.0.5 and 2.0.6 with the following checkins: r521488 | jvanzyl | 2007-03-22 22:56:42 +0100 (Thu, 22 Mar 2007) | 3 lines Changed paths: D /maven/components/branches/maven-2.0.x/maven-embedder o i looked at trying to back port and it's

Re: Where did the maven-embedder go?

2008-01-04 Thread Nick Stolwijk
I don't think it is in the maven repo yet, as Maven 2.1 is not released yet. The trunk version is here: https://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder/ Hth, Nick Stolwijk Graham Leggett wrote: Nick Stolwijk wrote: It seems it got deleted between 2.0.5 and 2.0.6

Re: Where did the maven-embedder go?

2008-01-04 Thread Tom Huybrechts
You can find snapshots here: http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/maven-embedder/2.1-SNAPSHOT/ Use the ueber jar, that includes all the dependencies. I think you can still use new DefaultArtifactRepository() with the embedder, as mentioned in the mojo developer

Re: Where did the maven-embedder go?

2008-01-04 Thread Nick Stolwijk
It seems it got deleted between 2.0.5 and 2.0.6 with the following checkins: r521488 | jvanzyl | 2007-03-22 22:56:42 +0100 (Thu, 22 Mar 2007) | 3 lines Changed paths: D /maven/components/branches/maven-2.0.x/maven-embedder o i looked at trying to back port and it's not worth it the trunk

Re: Where did the maven-embedder go?

2008-01-04 Thread Graham Leggett
Tom Huybrechts wrote: You can find snapshots here: http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/maven-embedder/2.1-SNAPSHOT/ Use the ueber jar, that includes all the dependencies. I think you can still use new DefaultArtifactRepository() with the embedder, as mentioned

maven embedder: build up model with transitive dependencies

2007-12-22 Thread aldana
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

[MAVEN EMBEDDER]

2007-11-28 Thread João Kreuzberg
Hello guys, I'm having a hard time trying to run goals with maven embedder. Tried the exact code from this site http://maven.apache.org/guides/mini/guide-embedding-m2.html but didn't work. Here is the code I tried

[CREATE:ARCHETYPE - MAVEN EMBEDDER BUG]

2007-08-09 Thread João Kreuzberg
Joao, I'm not sure what the problem is.. the configuration below seems to be correct. -Deng João Kreuzberg wrote: Maria, I tried the user.dir within the command line and it works just fine. When I try to execute it using maven-embedder it just ignores the base

Re: [CREATE:ARCHETYPE - MAVEN EMBEDDER]

2007-08-08 Thread Maria Odea Ching
Hi Joao, I'm not sure what the problem is.. the configuration below seems to be correct. -Deng João Kreuzberg wrote: Maria, I tried the user.dir within the command line and it works just fine. When I try to execute it using maven-embedder it just ignores the base directory. Here is how

Re: [CREATE:ARCHETYPE - MAVEN EMBEDDER]

2007-08-08 Thread Brett Porter
Joao, I'm not sure what the problem is.. the configuration below seems to be correct. -Deng João Kreuzberg wrote: Maria, I tried the user.dir within the command line and it works just fine. When I try to execute it using maven-embedder it just ignores the base directory. Here

[CREATE:ARCHETYPE - MAVEN EMBEDDER]

2007-08-07 Thread João Kreuzberg
Maria, I tried the user.dir within the command line and it works just fine. When I try to execute it using maven-embedder it just ignores the base directory. Here is how I'm using it: MavenExecutionRequest executionRequest = new DefaultMavenExecutionRequest

Maven embedder simple example

2007-07-17 Thread guilherme_silveira
pom only includes maven-core, maven-embedder and maven-project. The example above does not mention which dependencies should be included for such types (I have tried a few, 'fishing eye' some of them around) The found api itself does not contain some of the methods mentioned in such example

Re: Maven embedder simple example

2007-07-17 Thread Jason van Zyl
, DefaultConfiguration and DefaultMavenExecutionRequest cannot be found if my pom only includes maven-core, maven-embedder and maven-project. The example above does not mention which dependencies should be included for such types (I have tried a few, 'fishing eye' some of them around) The found api

Re: Maven embedder simple example

2007-07-17 Thread guilherme_silveira
great, thanks for the reply. answers all my questions regards guilherme -- View this message in context: http://www.nabble.com/Maven-embedder-simple-example-tf4099532s177.html#a11659633 Sent from the Maven - Users mailing list archive at Nabble.com

Maven embedder examples

2007-06-28 Thread Ravi Luthra
I want to use the Maven Embedder but I am having trouble with the online example. The dependencies I have on my project are: dependency groupIdorg.apache.maven/groupId artifactIdmaven-core/artifactId version2.0.7/version /dependency

Using maven embedder to force dependency updates

2007-06-27 Thread Joseph Ancell
I'm search all around the message boards for this and couldn't find it. Pretty much I'm trying to use the maven embedder to run mvn eclipse:eclipse -U. How do you add the -U to the end? I'm not seeing any API for this or don't know how to add it as a property to of the MavenExecutionRequest

Maven Embedder Example?

2007-05-07 Thread mraible
Does anyone have a Maven Embedder example that runs archetype:create? I'd like to create an archetype, run a plugin and verify that files are created in the new project. I could run the archetype creation and plugin with Ant, but that doesn't seem to be a very good way to test the code

Re: Maven Embedder Example?

2007-05-07 Thread mraible
); } mraible wrote: Does anyone have a Maven Embedder example that runs archetype:create? I'd like to create an archetype, run a plugin and verify that files are created in the new project. I could run the archetype creation and plugin with Ant, but that doesn't seem to be a very good way to test

Active profiles in settings.xml are wrong in maven-embedder

2007-04-23 Thread Rahamim, Zvi \(Zvi\)
Hi, I've defined in settings.xml file (under M2_HOME/conf/) a profile (my-profile) and set it to be activated. I removed file C:\Documents and Settings\user name\.m2\settings.xml. When I run build using maven, it knows to uses my-profile, but when I create a maven project using the maven-embedder

Re: [m2] maven embedder

2007-02-27 Thread Dmitry Beransky
On 2/14/07, Jason van Zyl [EMAIL PROTECTED] wrote: On the IDEA side the Maven Reloaded Plugin by Brian Kate, and the Maven 2.x Integration by Ralf Quebbemann. I am also working on this in addition to the embedder as it's the IDE I use. Thanks! I didn't see the Reloaded plugin when I did the

Re: [m2] maven embedder

2007-02-15 Thread Jason van Zyl
On 15 Feb 07, at 1:32 AM 15 Feb 07, Jochen Wiedmann wrote: On 2/15/07, Jason van Zyl [EMAIL PROTECTED] wrote: live. That's where we're planning the official IDE integration for Maven. What about M2Eclipse? What about it? I work on that too and that's what we're planning on moving to

Re: [m2] maven embedder

2007-02-14 Thread Jochen Wiedmann
On 2/15/07, Jason van Zyl [EMAIL PROTECTED] wrote: live. That's where we're planning the official IDE integration for Maven. What about M2Eclipse? You call this official? -- How fast can a year go? As fast as your childs first year.

Re: [m2] maven embedder

2007-02-13 Thread Dmitry Beransky
embedder; } thanks Dmitry On 2/11/07, franz see [EMAIL PROTECTED] wrote: Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's dependencies for it to run. Why, what error are you getting? Cheers, Franz Dmitry Beransky-3 wrote

Re: [m2] maven embedder

2007-02-13 Thread Jason van Zyl
, franz see [EMAIL PROTECTED] wrote: Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's dependencies for it to run. Why, what error are you getting? Cheers, Franz Dmitry Beransky-3 wrote: Hi, I'm not sure if this message is more

Re: [m2] maven embedder

2007-02-13 Thread franz see
of plexus-utils instead of relying on the version it will from its transitive dependencies ). Cheers, Franz [1] http://maven.apache.org/ref/2.0.4/maven-embedder/dependencies.html Dmitry Beransky-3 wrote: Hi Franz, I'm looking at the 2.0.4 sources (that's what I'm using) and I see

Re: [m2] maven embedder

2007-02-13 Thread Dmitry Beransky
: Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's dependencies for it to run. Why, what error are you getting? Cheers, Franz Dmitry Beransky-3 wrote: Hi, I'm not sure if this message is more appropriate here

Re: [m2] maven embedder

2007-02-12 Thread franz see
static MavenEmbedder createEmbedder() { MavenEmbedder embedder = new MavenEmbedder(); return embedder; } thanks Dmitry On 2/11/07, franz see [EMAIL PROTECTED] wrote: Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's

maven embedder

2007-02-11 Thread Dmitry Beransky
Hi, I'm not sure if this message is more appropriate here or on the dev list. Please advise for future messages. What other maven run-time libraries do I need in order to use the embedder? Thanks Dmitry - To unsubscribe,

Re: [m2] maven embedder

2007-02-11 Thread franz see
Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's dependencies for it to run. Why, what error are you getting? Cheers, Franz Dmitry Beransky-3 wrote: Hi, I'm not sure if this message is more appropriate here or on the dev list. Please

Re: [m2] maven embedder

2007-02-11 Thread Dmitry Beransky
MavenEmbedder createEmbedder() { MavenEmbedder embedder = new MavenEmbedder(); return embedder; } thanks Dmitry On 2/11/07, franz see [EMAIL PROTECTED] wrote: Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's dependencies

Re: maven embedder pb

2007-01-31 Thread Arnaud Bailly
franz see [EMAIL PROTECTED] writes: Good day to you, Arnaud, Thanks fro your answer Franz, That's actually the way I did it. Here is the mojo code: /*__ * * Copyright (C) 2006 Arnaud Bailly / OQube * * This

maven embedder pb

2007-01-29 Thread Arnaud Bailly
org.codehaus.plexus.util.dag.CycleDetectedException; /** * Integration testing class for literate muse plugin. This class run plugin * with projects using maven embedder and chekcs generation is ok. * * @author nono * */ public class MavenPluginTest extends TestCase { private MavenEmbedder maven; protected void setUp

Re: maven embedder pb

2007-01-29 Thread franz see
for literate muse plugin. This class run plugin * with projects using maven embedder and chekcs generation is ok. * * @author nono * */ public class MavenPluginTest extends TestCase { private MavenEmbedder maven; protected void setUp() throws Exception { super.setUp(); maven

Re: ZQ: Changing the version when using the maven embedder

2006-11-16 Thread franz see
be done before maven-embedder should be executed. If so, you can use your app as a utility that should be called before running your maven ( meaning, before executing maven-embedder). Cheers, Franz Rahamim, Zvi (Zvi) wrote: Hi, I write a java program that gets a pom.xml file, read it, get from

ZQ: Changing the version when using the maven embedder

2006-11-15 Thread Rahamim, Zvi \(Zvi\)
Hi, I write a java program that gets a pom.xml file, read it, get from the user the version to build and runs maven according to that. What I need to do is to change the version of the built project according to the user input. Can you tell me how to do it? Thanks!

Maven Embedder without MavenProject

2006-09-30 Thread Henrique Prange
-in. Is it possible with maven embedder? How can I do that? Thanks in advance, Henrique -- \o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda | Phone: 55-21-2710-0178 E-mail: [EMAIL PROTECTED] / \ http://www.moleque.com.br

Re: Where is the maven-embedder 2.1 API documented?

2006-09-05 Thread Milos Kleint
AFAIK it's not anywhere.. checkout the sources and build it yourself. but to my knowledge the api might change again soon.. Milos On 9/5/06, Aaron Tarter [EMAIL PROTECTED] wrote: I can only find the javadoc for the maven-embedder 2.0.4 on maven.apache.org. It seems that the API has changed

Re: Where is the maven-embedder 2.1 API documented?

2006-09-05 Thread Aaron Tarter
for the maven-embedder 2.0.4 on maven.apache.org. It seems that the API has changed since then. Can someone point me to the 2.1 javadoc or some source examples? -- Regards, Aaron J Tarter - To unsubscribe, e-mail: [EMAIL

  1   2   >