You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Yegor Bugayenko <eg...@technoparkcorp.com> on 2011/03/17 23:16:13 UTC

default-value are not injected

I'm testing my Maven 3 plugin. During tests all fields annotated with
@parameter default-value="" equal to NULL.

The only dependencies I have in pom.xml are:

 1. org.apache.maven:maven-plugin-api:3.0
 2. org.apache.maven.plugin-testing:maven-plugin-testing-harness:2.0-alpha-1

Do I miss something?

—
Yegor Bugayenko

Re: default-value are not injected

Posted by epicurio <st...@gmail.com>.
I've noticed this exact same issue. It seems that you have to explicitly
define the values for all your configuration parameters (either in the test
plugin pom, or via setVariableValueInObject), even if they have a
default-value specified. Or am I missing something as well?

--
View this message in context: http://maven.40175.n5.nabble.com/default-value-are-not-injected-tp3907553p5017722.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org