You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Steven Rowe <sa...@syr.edu> on 2007/04/18 21:54:51 UTC

release plugin lifecycle binding

Hello,

I want to bind a custom plugin goal to a phase in the
maven-release-plugin's lifecycle, but when I attempt to do so, the
binding appears to be ignored:

  <build>
    <plugins>
      <plugin>
        <groupId>my.group</groupId>
        <artifactId>my-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>scm-commit-release</phase>
            <goals><goal>my-goal</goal></goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

In the above example, I'm attempting to bind to the "scm-commit-release"
phase, which I see defined in maven-release-plugin's components
descriptor [1].  But when I run "mvn release:prepare",
my-maven-plugin:my-goal is not invoked.

Is this not possible?  I'm using Maven v2.0.6 with maven-release-plugin
v1.0-alpha-1.

Thanks,
Steve Rowe

[1]
<http://svn.apache.org/viewvc/maven/release/tags/maven-release-manager-1.0-alpha-1/src/main/resources/META-INF/plexus/components.xml?revision=528665&view=markup>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: release plugin lifecycle binding

Posted by LAMY Olivier <Ol...@accor.com>.
Hi,
No it's not a maven "phase".
What is your use case ?
You need to made something with the generated artifact ?

Maybe you can invoke the maven-release-plugin with this :
-Dgoals=deploy,my:my-goal (or add the configuration in your pom) (you need to have my.group in your pluginGroups/pluginGroup in your settings).

I have this in my company (in order to commit some artifacts war,ear to a svn repo).

--
Olivier

-----Message d'origine-----
De : Steven Rowe [mailto:sarowe@syr.edu] 
Envoyé : mercredi 18 avril 2007 21:55
À : Maven Users List
Objet : release plugin lifecycle binding

Hello,

I want to bind a custom plugin goal to a phase in the maven-release-plugin's lifecycle, but when I attempt to do so, the binding appears to be ignored:

  <build>
    <plugins>
      <plugin>
        <groupId>my.group</groupId>
        <artifactId>my-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>scm-commit-release</phase>
            <goals><goal>my-goal</goal></goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

In the above example, I'm attempting to bind to the "scm-commit-release"
phase, which I see defined in maven-release-plugin's components descriptor [1].  But when I run "mvn release:prepare", my-maven-plugin:my-goal is not invoked.

Is this not possible?  I'm using Maven v2.0.6 with maven-release-plugin v1.0-alpha-1.

Thanks,
Steve Rowe

[1]
<http://svn.apache.org/viewvc/maven/release/tags/maven-release-manager-1.0-alpha-1/src/main/resources/META-INF/plexus/components.xml?revision=528665&view=markup>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
********************************************************************** 
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
********************************************************************** 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org