• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calling a custom maven plugin

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm, I'm pretty sure you should be able to shortcut it yes, have you tried asking their developers mailing list?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic