File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven plugin and custom parameters" Watch "maven plugin and custom parameters" New topic
Author

maven plugin and custom parameters

Diego Marconato
Greenhorn

Joined: Jul 10, 2013
Posts: 1
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

Joined: Jun 25, 2001
Posts: 16022
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: maven plugin and custom parameters