You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Shinobu Kawai (JIRA)" <ji...@codehaus.org> on 2006/07/27 22:27:32 UTC
[jira] Updated: (MPEJB-23) ejb:init does not compile java code if
tests are not run
[ http://jira.codehaus.org/browse/MPEJB-23?page=all ]
Shinobu Kawai updated MPEJB-23:
-------------------------------
Attachment: MPEJB-23
Patch to fix bug.
> ejb:init does not compile java code if tests are not run
> --------------------------------------------------------
>
> Key: MPEJB-23
> URL: http://jira.codehaus.org/browse/MPEJB-23
> Project: maven-ejb-plugin
> Issue Type: Bug
> Reporter: Shinobu Kawai
> Priority: Critical
> Attachments: MPEJB-23
>
>
> When there are no tests, or maven.test.skip=true, then the build classes and resources are not included in the ejb jar file.
> As a workaround, you can set java:compile and java:jar-resources as preGoals for ejb:ejb in your maven.xml:
> <preGoal name="ejb:init">
> <j:if test="${unitTestSourcesPresent != 'true' or context.getVariable('maven.test.skip') == 'true'}">
> <attainGoal name="java:compile"/>
> <attainGoal name="java:jar-resources"/>
> </j:if>
> </preGoal>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira