Quoting Franz Allan Valencia See <[EMAIL PROTECTED]>:
Good day to you, Aaron,
add @parameter to your mojos field so that it can be configured in the pom.
How do I add "@parameter" to my mojo at runtime? :-)
Some background: I'm currently extending the archetype plugin. In my
new version, you can add arbitrary additional template
parameters/variables to replace in the archetype templates.
Of course, I need a way for the user to specify them. That would be
-D... on the command line. But I had trouble to find the additional
properties. To my surprise, they seem to show up in System.properties.
Is that the "official" place for all properties specified on the
command line?
At second thought this makes sense since mvn.bat eventually calls
java.exe with all the extra parameters...
Regards,
I have a mojo which has dynamic parameters/properties which have to be
specified via the commandline.
When I'm in my execute() method, what do I have to call to see "value"
when I call mvn with "-Dtest=value"?
They aren't in MavenProject/Model.getProperties()...
Regards,
--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]