Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.7
-
Fix Version/s: 2.2.0
-
Component/s: Plugins and Lifecycle
-
Labels:None
-
Number of attachments :
Description
Currently, it's impossible to configure the two default maven-compiler-plugin mojos in the jar lifecycle (:compile and :test-compile) separately without the configuration for one affecting both. This is because they are both executed in the same (default) execution. We should be assigning these to different execution id's, to allow separate configuration.
Issue Links
- relates to
-
MCOMPILER-15
ability to have different test compilation parameters to general compilation parameters
-
-
MNG-3401
Plugin parameters must be specified outside an execution block when they are invoked from the command line
-
-
MNG-4919
Plugin execution contributed by lifecycle mapping gets lost when same goal is bound multiple times
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 2.1-alpha-1 [ 13143 ] | |
| Fix Version/s | 2.0.8 [ 13139 ] |
| Link |
This issue relates to |
| Fix Version/s | 2.1-alpha-1 [ 13143 ] | |
| Fix Version/s | 2.0.9 [ 13801 ] | |
| Fix Version/s | 2.0.8 [ 13139 ] |
| Fix Version/s | 2.0.10 [ 14112 ] | |
| Fix Version/s | 2.0.9 [ 13801 ] |
| Fix Version/s | 2.0.11 [ 14118 ] | |
| Fix Version/s | 2.0.10 [ 14112 ] |
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 2.0.11 [ 14118 ] | |
| Assignee | John Casey [ jdcasey ] | |
| Fix Version/s | 2.2.0 [ 15103 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
I'm not sure what you mean here - how would this be used? Maybe something like:
<configuration>
<shared>...</shared>
</configuration>
<executions>
<execution>
<id>testCompile</id>
<configuration>
<something>...
</configuration>
<!-- not goals, that's already bound -->
</execution>
</executions>
I'm not even sure that'd work - could be a good way to achieve this though. Would you implement it by putting every bound goal in it's own execution? Currently, there is no way to specify this in the default lifecycles.