Issue Details (XML | Word | Printable)

Key: MPTEST-46
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Lukas Theussl
Reporter: thierry lach
Votes: 0
Watchers: 2
Operations

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

Do not execute test:test-resources unless tests will be run

Created: 18/Nov/04 04:28 PM   Updated: 21/Aug/06 07:01 PM   Resolved: 23/Mar/06 12:14 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 1.8

Time Tracking:
Not Specified

Issue Links:
Related
 


 Description  « Hide

If maven.test.skip is set (or if there are no unit tests), there should be no need to execute test:test-resources.

This allows putting preGoals and postGoals against test:test-resources which may be very time-consuming (such as database loads), and these other goals would not be executed if the tests are not run.



Todd Huss added a comment - 24/Feb/05 05:56 PM

I believe I'm having the same problem. If I define a pregoal for test:test and then run maven as:

maven -Dmaven.test.skip=true

it still executes my pregoal.


nicolas de loof added a comment - 21/Jul/06 05:34 AM

Current solution introduces MPTEST-66. Other plugin expect test plugin to attain java:compile.
The prereqs in test:* goals should be splited to allways invoque java:compile, and skip test:compile is skip=true