OK, now that I got approval to fix this only for JBX and above.
So here is how I implemented:
- I will only generate EJB and Web Module if the targeted
JB is jbuilderX and above
- I only generate Web module if I detect the present of
${maven.war.src}/WEB-INF/web.xml
- I only generate EJB module if I detect the present of
${maven.ejb.src}/META-INF/ejb-jar.xml
- User will need to manually attached application server
under test to the module using jbuilder. Too much work
to hander that since It has too many combination to test.
Do they sound acceptable?
Regarding the use of maven:get in RC3. I dont think i can use it.
I need to have access to maven.war.final.name and maven.ejb.final.name. These 2 vars only configure in war:init
and ejb:init respectively.
So there are 2 solutions for this:
1. Not use maven.xxx.final.name at all
use use the combination of pom.artifactId and pom.currentVersion
2. Use ejb:init and war:init any way since
user needs clean up compilation error any way.
finally, i dont think I can create a separate goal, it would requires lots of work. A huge refractoring in the plugin.jell.
For now an if statement would be ok.
Any thought?
-Dan
Can attach your patch?
Thanks.