maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Herve Boutemy (JIRA)" <j...@codehaus.org>
Subject [jira] (MPLUGIN-267) document how to change desriptor phase instead of running it twice with skipErrorNoDescriptorsFound
Date Mon, 02 Jun 2014 17:18:10 GMT
Herve Boutemy created MPLUGIN-267:
-------------------------------------

             Summary: document how to change desriptor phase instead of running it twice with
skipErrorNoDescriptorsFound
                 Key: MPLUGIN-267
                 URL: https://jira.codehaus.org/browse/MPLUGIN-267
             Project: Maven Plugin Tools
          Issue Type: Improvement
          Components: Plugin Plugin
    Affects Versions: 3.3
            Reporter: Herve Boutemy


actual example says:
{code:xml}  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-plugin-plugin</artifactId>
        <version>3.3</version>
        <configuration>
          <!-- see http://jira.codehaus.org/browse/MNG-5346 -->
          <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
        </configuration>
        <executions>
          <execution>
            <id>mojo-descriptor</id>
            <goals>
              <goal>descriptor</goal>
            </goals>
          </execution>{code:xml}

this skipErrorNoDescriptorsFound configuration is not really good, since it does never check
if mojo descriptors can be found.

A recent idea permits to avoid this: simply changing the phase of the actual goal, instead
of configuring a second run:
{code:xml}  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-plugin-plugin</artifactId>
        <version>3.3</version>
        <executions>
          <execution>
            <id>default-descriptor</id>
            <phase>process-classes</phase>
          </execution>{code}

the default-descriptor execution id instead of mojo-descriptor is the key change...



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message