Issue Details (XML | Word | Printable)

Key: MPEJB-23
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: Shinobu Kawai
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x EJB Plugin

ejb:init does not compile java code if tests are not run

Created: 27/Jul/06 03:25 PM   Updated: 06/Sep/06 08:34 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.7.3

Time Tracking:
Not Specified

File Attachments: 1. Text File MPEJB-23 (0.8 kB)

Issue Links:
Related
 
dependent
 


 Description  « Hide
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>



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Shinobu Kawai added a comment - 27/Jul/06 03:26 PM
Patch to fix bug.

dion gillard added a comment - 03/Aug/06 07:11 PM
This is a showstopper for another 1.1 beta release for me, as well.

Shinobu Kawai added a comment - 06/Sep/06 08:34 PM
This should be revisited once MPTEST-66 is fixed one way or another.