Re: Plugin Testing Harness 2.1 - Problem with Default Values

2015-11-22 Thread Igor Fedorenko
I think you need to specify all parameter values in test pom.xml, at
least this used to be one of annoying limitations of apache plugin
harness in the past. Personally I gave up on apache harness long time
ago. The harness I've written at Takari works much better everywhere I
used it and I am pretty sure mojo defaults are used by the tests as
expected.

-- 
Regards,
Igor

On Sun, Nov 22, 2015, at 11:13 AM, Karl Heinz Marbaise wrote:
> Hi,
> 
> currently i'm trying to fix some issues in the maven-ejb-plugin and 
> within the test there is a setup like this:
> 
> 
>  EjbMojo mojo = (EjbMojo) lookupMojo( "ejb", pomFile );
> 
> But at the moment i don't understand why the defaults for the defined 
> parameters and not injected...
> 
> For example i have parameter like this:
> 
>  @Parameter( property = "maven.ejb.ejbJar", defaultValue = 
> "META-INF/ejb-jar.xml" )
>  private String ejbJar;
> 
> But the string does not contain the default value during the testsso 
> the question: What do i oversight here ?
> 
> Someone an idea?
> 
> Kind regards
> Karl Heinz Marbaise
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
> 

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Plugin Testing Harness 2.1 - Problem with Default Values

2015-11-22 Thread Karl Heinz Marbaise

Hi,

currently i'm trying to fix some issues in the maven-ejb-plugin and 
within the test there is a setup like this:



EjbMojo mojo = (EjbMojo) lookupMojo( "ejb", pomFile );

But at the moment i don't understand why the defaults for the defined 
parameters and not injected...


For example i have parameter like this:

@Parameter( property = "maven.ejb.ejbJar", defaultValue = 
"META-INF/ejb-jar.xml" )

private String ejbJar;

But the string does not contain the default value during the testsso 
the question: What do i oversight here ?


Someone an idea?

Kind regards
Karl Heinz Marbaise




-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org