maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [maven] rfscholte commented on pull request #357: Add wildcard option for direct goal execution id from command line
Date Tue, 02 Jun 2020 20:32:04 GMT

rfscholte commented on pull request #357:
URL: https://github.com/apache/maven/pull/357#issuecomment-637789710


   ```
     <profiles>
       <profile>
         <id>license</id>
         <build>
           <plugins>
             <plugin>
               <groupId>com.mycila</groupId>
               <artifactId>license-maven-plugin</artifactId>
               <executions>
                 <execution>
                   <id>check-lgpl-headers</id>
                   <phase>validate</phase>
                 </execution>
                 <execution>
                   <id>check-dbxml-headers</id>
                   <phase>validate</phase>
                 </execution>
               </executions>
             </plugin>
           </plugins>
         </build>
       </profile>
     </profiles>
   ```
   With this, `mvn verify` will work as usual, doing the check at the end, `mvn validate -Plicense`
will just call the `check` goals. 
   
   All other goals are a sign to me there's an issue with your project structure, as a stack
of plugins that are trying to fix something. Requiring a wildcard only confirms that to me.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message