Re: creating a new project with the MavenEmbedder

2006-06-07 Thread Ovidio Mallo
at it becomes part of the 2.1 version if everyone agrees to this fix. Hermod -Original Message- From: Opstvedt, Hermod Sent: Tuesday, June 06, 2006 7:11 AM To: dev@maven.apache.org Subject: RE: creating a new project with the MavenEmbedder Hi I might have a slight variation to you stat

RE: creating a new project with the MavenEmbedder

2006-06-06 Thread hermod.opstvedt
idio Mallo [mailto:[EMAIL PROTECTED] Sent: Sunday, June 04, 2006 4:52 PM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder Hi, I'm attaching a patch which tries to solve the issue with the basedir discussed in this thread. The value of the ${basedir} expression is

RE: creating a new project with the MavenEmbedder

2006-06-05 Thread hermod.opstvedt
ED] Sent: Sunday, June 04, 2006 4:52 PM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder Hi, I'm attaching a patch which tries to solve the issue with the basedir discussed in this thread. The value of the ${basedir} expression is thereby computed by one

Re: creating a new project with the MavenEmbedder

2006-06-04 Thread Ovidio Mallo
ECTED] Sent: Friday, June 02, 2006 9:26 AM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder [EMAIL PROTECTED] wrote: Hi Have not had the time before now. It still does not work. The basedir is still set to the current directory. The ${basedir} will be s

RE: creating a new project with the MavenEmbedder

2006-06-03 Thread Ovidio Mallo
om: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 12:10 PM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder [EMAIL PROTECTED] wrote: Hi Something must be wrong in another place. The eclipse:eclipse goal excutes ok with the supplied (i.

RE: creating a new project with the MavenEmbedder

2006-06-02 Thread hermod.opstvedt
the eclipse:eclipse archetype does it right. Hermod -Original Message- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 12:10 PM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder [EMAIL PROTECTED] wrote: > Hi > >

Re: creating a new project with the MavenEmbedder

2006-06-02 Thread Trygve Laugstøl
[EMAIL PROTECTED] wrote: Hi Something must be wrong in another place. The eclipse:eclipse goal excutes ok with the supplied (i.e correct) basedir, but the MavenArchetypeMojo for some reason is supplied the working directory, which is not what is supplied in the call. You mean if you add thi

RE: creating a new project with the MavenEmbedder

2006-06-02 Thread hermod.opstvedt
--Original Message- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 9:26 AM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder [EMAIL PROTECTED] wrote: > Hi > > Have not had the time before now. > > It still does not work.

Re: creating a new project with the MavenEmbedder

2006-06-02 Thread Trygve Laugstøl
[EMAIL PROTECTED] wrote: Hi Have not had the time before now. It still does not work. The basedir is still set to the current directory. The ${basedir} will be set to the value you set in the embedder, this is working for me in my IDEA plugin where I use the embedder. Can you include the p

RE: creating a new project with the MavenEmbedder

2006-06-01 Thread hermod.opstvedt
@maven.apache.org Subject: RE: creating a new project with the MavenEmbedder Hi I'll fix it, and give it a test run. thnx Hermod -Original Message- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 9:22 AM To: Maven Developers List Subject: Re: creating a new pr

RE: creating a new project with the MavenEmbedder

2006-05-31 Thread hermod.opstvedt
Hi I'll fix it, and give it a test run. thnx Hermod -Original Message- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 9:22 AM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder [EMAIL PROTECTED] wrote: > Hi >

Re: creating a new project with the MavenEmbedder

2006-05-31 Thread Trygve Laugstøl
[EMAIL PROTECTED] wrote: Hi I have been giving this some thought, and I am wondering if this behaviour is by design (Committers: feel free to chip in here). If you execute a mojo from a commandline, it takes effect from the current directory. There is no parameter/command line switch to dire

Re: creating a new project with the MavenEmbedder

2006-05-31 Thread Trygve Laugstøl
[EMAIL PROTECTED] wrote: Hi I tried what you suggested, and it did create a project in a directory with the given artifactId, i.e: mvn -f foo/pom.xml archetype:create -DartifactId=whatever <<< creates a project under whatever and the output is : [snip] Notice that the basedir from the lo

RE: creating a new project with the MavenEmbedder

2006-05-31 Thread hermod.opstvedt
2006 9:01 AM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder Hi again, > [...] Anyways, the issue of archetype:create and baseDir still stands. That's true. The same thing happens to me. > No cigar - Doing it two steps yields the same result as if

RE: creating a new project with the MavenEmbedder

2006-05-31 Thread hermod.opstvedt
rong first. Hermod -Original Message- From: Ovidio Mallo [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 9:01 AM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder Hi again, > [...] Anyways, the issue of archetype:create and baseDir still stands

Re: creating a new project with the MavenEmbedder

2006-05-31 Thread Ovidio Mallo
y 31, 2006 8:39 AM To: dev@maven.apache.org Subject: RE: creating a new project with the MavenEmbedder Hi Ok, I'll give that a try and see what happens then. Anyways, the issue of archetype:create and baseDir still stands. Hermod -Original Message- From: Ovidio Mallo [mailto:[EMA

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 8:39 AM To: dev@maven.apache.org Subject: RE: creating a new project with the MavenEmbedder Hi Ok, I'll give that a try and see what happens then. Anyways, the issue of archetype:create and baseDir still

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
rchetype:create goal, but it is creating the eclipse stuff in foo !? > > Hermod > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 31, 2006 7:18 AM > To: dev@maven.apache.org > Subject: RE: creating a new projec

Re: creating a new project with the MavenEmbedder

2006-05-30 Thread Ovidio Mallo
--- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 2:03 PM To: dev@maven.apache.org Subject: RE: creating a new project with the MavenEmbedder Hi I'll give it a try. If it does not work,

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
lto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 7:18 AM To: dev@maven.apache.org Subject: RE: creating a new project with the MavenEmbedder Hi I tried what you suggested, and it did create a project in a directory with the given artifactId, i.e: mvn -f foo/pom.xml archetype:create -DartifactId=

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 2:03 PM To: dev@maven.apache.org Subject: RE: creating a new project with the MavenEmbedder Hi I'll give it a try. If it does not work, I'll look into what goes on in DefaultM

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
Hi I'll give it a try. If it does not work, I'll look into what goes on in DefaultMavenExecutionRequest. Hermod -Original Message- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 1:55 PM To: Maven Developers List Subject: Re: creating a new projec

Re: creating a new project with the MavenEmbedder

2006-05-30 Thread Trygve Laugstøl
[EMAIL PROTECTED] wrote: Hi Now that I got it running, I have discovered something that may be an error in the DefaultExecutionRequest: This is how I run it: MavenExecutionRequest request = new DefaultMavenExecutionRequest() .setBasedir(new Fil

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
the project in the current directory ( I am running the "archetype:create" goal). Is this a known error or am I presuming wrong here. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 1:23 PM To: dev@maven.apache.org Subject:

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
Hi Bullseye - I had a 2.0.1 version in there. Now they are all 2.1-SNAPSHOT and it works OK. Thnx. Hermod -Original Message- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 1:07 PM To: Maven Developers List Subject: Re: creating a new project with the

Re: creating a new project with the MavenEmbedder

2006-05-30 Thread Trygve Laugstøl
[EMAIL PROTECTED] wrote: Hi I was running in a directory where a pom existed. Now running it in an empty directory gives me: Component composition failed. No field of type: 'interface org.apache.maven.artifact.transform.ArtifactTransformationManager' exists in class 'org.apache.maven.project

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
urrent project as it is not of packaging type 'pom' Hermod -Original Message- From: Ovidio Mallo [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 1:58 PM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder Hi Hermod! The class compiles against

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
ssage- From: Ovidio Mallo [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 1:58 PM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder Hi Hermod! The class compiles against the current 2.1-SNAPSHOT version. The previous versions 2.0.3 and 2.0.4 seem to

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
--- From: Rinku [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 10:19 PM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder Hi Hermod, Coincidently, there was a thread on maven-users list about delegating goal to another mojo (see yesterday's posts). I h

Re: creating a new project with the MavenEmbedder

2006-05-29 Thread Rinku
ginal Message - From: <[EMAIL PROTECTED]> To: Sent: Tuesday, May 30, 2006 12:34 AM Subject: RE: creating a new project with the MavenEmbedder Hi Ok, I'll get it from SVN and compile it. Thnx Hermod -Original Message- From: Ovidio Mallo [mailto:[EMAIL PROTECTED] Sent: Mond

RE: creating a new project with the MavenEmbedder

2006-05-29 Thread hermod.opstvedt
Hi Ok, I'll get it from SVN and compile it. Thnx Hermod -Original Message- From: Ovidio Mallo [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 1:58 PM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder Hi Hermod! The class compiles agains

Re: creating a new project with the MavenEmbedder

2006-05-29 Thread Ovidio Mallo
ay, May 28, 2006 12:36 PM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder Hi, Thanks a lot, Kenney, for your explanation and code snippet! This is exactly what I was looking for! I have filled in the tiny missing details in your sample code to build up a worki

RE: creating a new project with the MavenEmbedder

2006-05-29 Thread hermod.opstvedt
Developers List Subject: Re: creating a new project with the MavenEmbedder Hi, Thanks a lot, Kenney, for your explanation and code snippet! This is exactly what I was looking for! I have filled in the tiny missing details in your sample code to build up a working example which you can find below

Re: creating a new project with the MavenEmbedder

2006-05-28 Thread Ovidio Mallo
Hi, Thanks a lot, Kenney, for your explanation and code snippet! This is exactly what I was looking for! I have filled in the tiny missing details in your sample code to build up a working example which you can find below. Just in case anyone else is interested in it. One thing I noticed is that

Re: creating a new project with the MavenEmbedder

2006-05-27 Thread Kenney Westerhof
On Sat, 27 May 2006, Ovidio Mallo wrote: Hi, Well, currently running archetype:create seems the simplest way to me. The embedder is primarily meant to build projects, not to create them. You might want to take a look at the maven-cli project. Some plugins, like archetype, don't require an existi