RE: How to load a class in a Mojo?

2011-07-17 Thread Robert Scholte
It is less complex, it´s just like any other java-project:this.getClass().getResourceAsStream( name ) this.getClass().getResource( name ); The @requiresDependencyResolution is about which dependecies should be available for this class, based on their scope. -Robert Date: Sat, 16 Jul 2011

Re: How do I make my archetype from a multimodule project use directories that are based on the artifactId ?

2011-07-17 Thread Anders Hammar
__artifactId__ in file or directory name are replaced with the artifactId value. /Anders On Sat, Jul 16, 2011 at 04:20, Sebastian Otaegui fen...@gmail.com wrote: I have create an archetype using archetype:create-from-project out of a multi module project. The archetype-metadata.xml is

Triggering generation of archetype from pom-file

2011-07-17 Thread Asmann, Roland
Hi, I am trying to setup a project by configuring the archetype-plugin in my POM. The problem I am running into is that I don't know how to tell the archetype about 'groupId', 'artifactId' and 'version' for the new project... Is there any way I can set these for the plugin? Thanks, --

Re: How to load a class in a Mojo?

2011-07-17 Thread Hilco Wijbenga
On 17 July 2011 02:53, Robert Scholte rfscho...@codehaus.org wrote: It is less complex, it´s just like any other java-project:this.getClass().getResourceAsStream( name ) this.getClass().getResource( name ); That's what I started with but both give me a NULL. Just to make sure I've given you

RE: How to load a class in a Mojo?

2011-07-17 Thread Robert Scholte
Don't you think it's a bit weird to run the maven-compiler-plugin:compile during the generate-sources phase? Try to keep this as they were meant to:- generate sources during the generate-sources phase- compile the sources during the compile phase.(within a few months you won't understand this

Re: Triggering generation of archetype from pom-file

2011-07-17 Thread Anders Hammar
I don't think they can be set through configuration in the pom, but only through system properties or a properties file. /Anders On Sun, Jul 17, 2011 at 19:59, Asmann, Roland roland.asm...@adesso.atwrote: Hi, I am trying to setup a project by configuring the archetype-plugin in my POM. The

Re: How to load a class in a Mojo?

2011-07-17 Thread Hilco Wijbenga
On 17 July 2011 11:48, Robert Scholte rfscho...@codehaus.org wrote: Don't you think it's a bit weird to run the maven-compiler-plugin:compile during the generate-sources phase? Try to keep this as they were meant to:- generate sources during the generate-sources phase- compile the sources

Re: How to load a class in a Mojo?

2011-07-17 Thread Benson Margulies
Could you post a (non)working example on github for others to debug at? On Sun, Jul 17, 2011 at 4:22 PM, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: On 17 July 2011 11:48, Robert Scholte rfscho...@codehaus.org wrote: Don't you think it's a bit weird to run the maven-compiler-plugin:compile

combine two maven project

2011-07-17 Thread hariharansrc
i have a maven project for wicket hibernate integration and another one for wicket jasper reports integration how to integrate both the projects -- View this message in context: http://maven.40175.n5.nabble.com/combine-two-maven-project-tp4593853p4593853.html Sent from the Maven - Users mailing

combining maven projects

2011-07-17 Thread hariharansrc
i am a maven project with pom file for wicket jasper reports integration and another one for wicket-guice-hibernate now i want both of them to be in a single project.So anyone tell what to do for integrating that. -- View this message in context:

Re: Help - client extensions in WAR file

2011-07-17 Thread hariharansrc
I'm not understanding what you are telling actually but i will give you an suggestion you can use Enterprise Archive(EAR) to deploy many modules as a single module. -- View this message in context: http://maven.40175.n5.nabble.com/Help-client-extensions-in-WAR-file-tp4587253p4596202.html Sent

Starter- where do I house my Maven import packages (import javax.*;)

2011-07-17 Thread flanjl2
Where do I house my maven import packages, so the compiler may find it? -- View this message in context: http://maven.40175.n5.nabble.com/Starter-where-do-I-house-my-Maven-import-packages-import-javax-tp4597262p4597262.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Starter- where do I house my Maven import packages (import javax.*;)

2011-07-17 Thread Benson Margulies
I'm afraid that I have no idea what you mean. Could you try to explain your problem in some more detail, or post an example? On Sun, Jul 17, 2011 at 4:32 PM, flanjl2 jflan...@yahoo.com wrote: Where do I house my maven import packages, so the compiler may find it? -- View this message in

Re: combining maven projects

2011-07-17 Thread Thomas Sundberg
Hi! On Sun, Jul 17, 2011 at 13:35, hariharansrc hariharan...@gmail.com wrote: i am a maven project with pom file for wicket jasper reports integration and another one for wicket-guice-hibernate now i want both of them to be in a single project.So anyone tell what to do for integrating  that.