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

        

Reply via email to