Hi,

you can generate a sample mojo using the archetype plugin, this can be treated as your additional reference for creating plugin

just execute on your command line

m2 archetype:create -DgroupId=<your_groupId> -DartifactId=<your_artifactId> -DarchetypeArtifactId=maven-archetype-mojo

you can also read http://maven.apache.org/maven2/developers/mojo-api-specification.html
for additional information regarding mojo.

regards,
-allan

Choong Yong Koh wrote:

So it means that if I wanted to use torque in maven 2, I have to write the plugin myself. :) However, the plugin development guide at http://maven.apache.org/maven2/developers/plugin-development-guide.html is quite bare. Nothing could be found on the maven wiki at http://wiki.apache.org/maven/ too.

Is there any reference elsewhere I can refer to to start attempting to write the plugin?

Thanks.
Choong Yong


On 9/11/05, Brett Porter <[EMAIL PROTECTED]> wrote:
I believe that the torque plugin is only for Maven 1.x (currently, even Maven 1.x plugins appear in the Maven 2.x repository).

- Brett

On 9/10/05, Choong Yong Koh <[EMAIL PROTECTED]> wrote:
Hi,

I was trying to install the torque plugin for maven2, but was not
succcessful (probably because I am still not familiar with maven2, although
I have been using maven1 in many of my other projects).

Question 1 is:
- there are multiple copies of the maven torque plugin
- http://www.ibiblio.org/maven2/torque/maven-torque-plugin/
- http://www.ibiblio.org/maven2/maven-torque-plugin/maven-torque-plugin/

Which one should I be refering to? How should I be installing the plugin?

Question 2 is:
How should I define my pom.xml in my project to use the plugin? Thanks for any response, as I was not really able to find much documentation
on maven2 plugins.

Choong Yong



------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.20/95 - Release Date: 9/9/2005

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to