Maven
  1. Maven
  2. MNG-3959

Per-execution inherited flag ignored

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      Per-execution inherited flag ignored. E.g.

      <plugin>
      	<groupId>org.apache.maven.plugins</groupId>
      	<artifactId>maven-antrun-plugin</artifactId>
      	<executions>
      		<execution>
      			<id>test</id>
      			<phase>initialize</phase>
      			<inherited>false</inherited>
      ...
      

      If you move the inherited element up to the plugin level it works, but then that applies to all executions, which isn't what is needed.

        Activity

        Hide
        Christian Schulte added a comment -

        Maven 3 correctly supports per-execution inherited flags.

        Show
        Christian Schulte added a comment - Maven 3 correctly supports per-execution inherited flags.
        Hide
        Michael Osipov added a comment -

        Sadly, I can confirm this on Maven 2.2.1. Maven 3.0.x works as expected.

        Show
        Michael Osipov added a comment - Sadly, I can confirm this on Maven 2.2.1. Maven 3.0.x works as expected.
        Hide
        Jason van Zyl added a comment -

        This works in 3.x, we're likely not going to fix it in 2.x.

        Show
        Jason van Zyl added a comment - This works in 3.x, we're likely not going to fix it in 2.x.
        Hide
        Michael Osipov added a comment -

        Won't fix for Maven 2.2.x, works in Maven 3.x

        Show
        Michael Osipov added a comment - Won't fix for Maven 2.2.x, works in Maven 3.x

          People

          • Assignee:
            Unassigned
            Reporter:
            Dave Syer
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: