File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes maven plugin and custom parameters 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 "maven plugin and custom parameters" Watch "maven plugin and custom parameters" New topic

maven plugin and custom parameters

Diego Marconato

Joined: Jul 10, 2013
Posts: 1

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.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: maven plugin and custom parameters
It's not a secret anymore!