Hi, Tim.

setting the <testSourceDirectory> will work if you don't have any other test sources in src/test/java... otherwise, you should use project.addTestCompileSourceRoot


Tim Kettler wrote:
Aleksei Valikov schrieb:
Hi.

1. When developing a plugin, how would it be possible to provide a default expression for an array?
For instance, I have a field like:

protected String[] bindingIncludes;

I'd like the it to be an array of single "*.xjb" string.

See this thread:
http://www.mail-archive.com/[email protected]/msg42055.html

2. I have a Java code generation plugin which may also produce some unit tests. Everything is put into target/generated-sources/xjc, for some technical reasons I can't output unit tests into a different directory. How could I instruct Maven to execute the generated unit tests from target/generated-sources/xjc?

You can set the directory for test sources in your pom:

<build>
  <testSourceDirectory>target/generated-sources/xjc</testSourceDirectory>
</build>

In the case you want to further customize the surefire-plugin configuration have a look at the plugins site at:
http://maven.apache.org/plugins/maven-surefire-plugin

especially the test mojo configuration page:
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html


Thank you for your time.

Bye.
/lexi

Hope this helps
-Tim

---------------------------------------------------------------------
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to