This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maven plugin and custom parameters

 
Diego Marconato
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I can recommend a maven plugin ....

I use the library qdox java to generate the customized documentation through a main java at which step the parameters, currently I use
exec-maven-plugin step to which these parameters.

But I would need a function different from that adopted by me, that is a plugin that allows me to generate this documentation passing custom parameters (input directory, output directory etc. ...) and insert this feature for example in "maven install" .. ..
That is, in other words, the "mvn install" should also generarmi documentation.

Thanks in advance.

DM
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Diego!

Maven doesn't encourage a lot of parameterization because the idea with Maven is that it should run portably. You should be able to hand me a POM+source that you use under Windows, I should be able to copy it into a random empty directory on my Linux machine, and issue a maven goal such as "mvn package" and it should successfully build immediately. Which is a welcome change for me over older systems that basically required me to have to reconstruct someone else's filesystem and machine environment quirks.

However, there are some situations where external parameters can be used. To inject them, you use the standard JVM definition feature (-Dname=value) on the Maven command line.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic