Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6230

Separate plugin dependencies and execution declarations

    XMLWordPrintableJSON

    Details

      Description

      Proposed example:

      <dependencies>
      
          <dependency>...</dependency> <!-- maybe turn <type> into subtypes of this -->
      
          <plugin> <!-- subtype of dependency? -->
              <id>bongo</id> <!-- defaults to short name -->
              <groupId>com.bongo.morebongo</groupId>
              <artifactId>allthebongo</artifactId>
              <version>1.1.0-BONGO</version>
          </plugin>
      
      </dependencies>
      
      <build>
          <executions>
      
              <execution>
                  <id>bongo-run</id>
                  <pluginId>bongo</pluginId> <!-- can also use gavc -->
                  <phase>generate-sources</phase>
                  <goal>bongotime</goal> <!-- just flatten the goals list -->
                  <configuration>
                      <nomorebongo>false</nomorebongo>
                  </configuration>
              </execution>
      
              <execution>
                  <id>maven-compile</id> <!-- ref to make sure bongo fires first -->
              </execution>
      
          </executions>
      </build>
      

      Does any of that sound reasonable?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tzrlk Peter Cummuskey
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: