aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Calling a custom maven plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Calling a custom maven plugin" Watch "Calling a custom maven plugin" New topic
Author

Calling a custom maven plugin

Emilio Kazwell
Ranch Hand

Joined: Aug 28, 2009
Posts: 37
I'm currently working with the book "Better Builds with Maven" and doing some custom maven plugin development. I have a plugin I've created with the following POM info.



You know how you can just type "mvn <pluginName>:<mojoName>" for many mojos? My mojo has to run like this: "mvn com.exist.mvnbook.plugins:maven-buildinfo-plugin:extract" where "extract" is the mojo name. From the error I get when I try to run it like this 'mvn buildinfo:extract" it looks like I could get it to run that way if I changed the groupId of my mojo to "org.apache.maven.plugins". Am I stretching the analogy between groupId and java package names too far to think that it is inappropriate to use that groupId for my mojo? Is there another way to get my mojo to run without having to be so verbose?

Thanks.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hmm, I'm pretty sure you should be able to shortcut it yes, have you tried asking their developers mailing list?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling a custom maven plugin