Re: creating a new project with the MavenEmbedder

2006-06-07 Thread Ovidio Mallo
that 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 statement

RE: creating a new project with the MavenEmbedder

2006-06-06 Thread hermod.opstvedt
] 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-05 Thread hermod.opstvedt
, 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 of the following fallbacks

Re: creating a new project with the MavenEmbedder

2006-06-04 Thread Ovidio Mallo
( basedir, basedir ); +map.put( basedir, basedir.getAbsolutePath() ); map.put( package, packageName ); -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

RE: creating a new project with the MavenEmbedder

2006-06-03 Thread Ovidio Mallo
, 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.e correct) basedir, but the MavenArchetypeMojo for some

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

RE: creating a new project with the MavenEmbedder

2006-06-02 Thread hermod.opstvedt
: 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 set to the value

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

RE: creating a new project with the MavenEmbedder

2006-06-02 Thread hermod.opstvedt
that 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 Something must

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 project

Re: creating a new project with the MavenEmbedder

2006-05-31 Thread Ovidio Mallo
directory with the archetype: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 project with the MavenEmbedder

RE: creating a new project with the MavenEmbedder

2006-05-31 Thread hermod.opstvedt
@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=whatever creates a project under whatever

RE: creating a new project with the MavenEmbedder

2006-05-31 Thread hermod.opstvedt
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 stands. Hermod

Re: creating a new project with the MavenEmbedder

2006-05-31 Thread Ovidio Mallo
: 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:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 8:30 AM

RE: creating a new project with the MavenEmbedder

2006-05-31 Thread hermod.opstvedt
. 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. That's true

RE: creating a new project with the MavenEmbedder

2006-05-31 Thread hermod.opstvedt
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 doing it in one

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 log

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

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 I tried

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
[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 have posted a similar

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
: 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 have a somewhat

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
'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 the current 2.1-SNAPSHOT version. The previous versions

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

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

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
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 Hi

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

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 project

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
:[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 DefaultMavenExecutionRequest. Hermod -Original Message- From: Trygve

RE: creating a new project with the MavenEmbedder

2006-05-30 Thread hermod.opstvedt
: 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=whatever creates

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-29 Thread Ovidio Mallo
, 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 working example

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 against

Re: creating a new project with the MavenEmbedder

2006-05-29 Thread Rinku
Message - From: [EMAIL PROTECTED] To: dev@maven.apache.org 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

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

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