This should give you a hint:
org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.finalizeMojoConfiguration(MojoExecution)
Robert
Op Mon, 25 Aug 2014 20:56:23 +0200 schreef Karl Heinz Marbaise
<[email protected]>:
Hi,
based on the following problem
http://jira.codehaus.org/browse/MDEPLOY-181
I've dived a little bit more into this..
@Parameter ( property = "test", defaultValue = "false")
private boolean test;
If i understand Maven correctly that if i do mvn -Dtest=true the value
will be given to the plugin (via injection)...this would result in an
output:
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<test default-value="false">${test}</test>
</configuration>
[DEBUG] ============================
but if i define things within the pom.xml
<configuration>
<test>true</test>
</configuration>
than it is not possible anymore to override the value via command line
like this:
mvn -Dtest=false
cause the output looks like this:
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<test default-value="false">true</test>
</configuration>
[DEBUG] ============================
which is based on that the injection will be done only once during the
phase from reading from pom and do the injection to the plugin...
This looks exactly like the problem with <skip>..</skip> for tests etc.
The only solution i know to is to define a property within the pom file
to be able to override values via command line afterwards...
So can someone guide where to look for this behaviour and may be to
change it...
Many thanks in advance..
Kind regards
Karl-Heinz Marbaise
---------------------------------------------------------------------
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]