You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Evan Toliopoulos <ev...@softwarekitchen.com.au> on 2007/05/18 05:25:33 UTC

Problems with preparationGoals config in the release plugin

Hi,

Has any one managed to configure the *preparationGoals *for the *release 
*plugin successfully.

I have the following in my pom.xml (which is a parent POM with packaging 
pom):

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-release-plugin</artifactId>
    <configuration>
        
<tagBase>scm:svn:svn://svn.emagineinternational.com/tags/sms-transceiver</tagBase>
        <preparationGoals>
            <preparationGoal>assembly:assembly</preparationGoal>
        </preparationGoals>
    </configuration>
  </plugin>

and when I try to run Maven v2.0.6 with goal *release:prepare* I get:

  [INFO] Failed to configure plugin parameters for: 
org.apache.maven.plugins:maven-release-plugin:2.0-beta-4
  Cause: When configuring a basic element the configuration cannot 
contain any child elements. Configuration element 'preparationGoals'.

Does anyone know what I am doing wrong?

Thanks,
Evan

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


Re: Problems with preparationGoals config in the release plugin

Posted by Evan Toliopoulos <ev...@softwarekitchen.com.au>.
Wendy Smoak wrote:
> The first thing I would do is add a <version> element to your <plugin>
> with the latest version number:  2.0-beta-5  then try it again.

Thanks Wendy,

I didn't even think to look for a more recent version.

In the end I didn't need it because I discovered (embarassingly) that 
*release:perform* does what I was going to try to do via the 
preparationGoals.

My real problem was that I had not read enough about the process of 
releasing using the release plugin.

Cheers,
Evan



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


Re: Problems with preparationGoals config in the release plugin

Posted by Wendy Smoak <ws...@gmail.com>.
On 5/17/07, Evan Toliopoulos <ev...@softwarekitchen.com.au> wrote:

> Has any one managed to configure the *preparationGoals *for the *release
> *plugin successfully.
...
>   [INFO] Failed to configure plugin parameters for:
> org.apache.maven.plugins:maven-release-plugin:2.0-beta-4
>   Cause: When configuring a basic element the configuration cannot
> contain any child elements. Configuration element 'preparationGoals'.

The first thing I would do is add a <version> element to your <plugin>
with the latest version number:  2.0-beta-5  then try it again.

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-release-plugin/

-- 
Wendy

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


RE: Problems with preparationGoals config in the release plugin

Posted by LAMY Olivier <Ol...@accor.com>.
Hi,
Just try :
 <preparationGoals>assembly:assembly</preparationGoals>

If you have more than one, just use as this :
<preparationGoals>clean test-compile</preparationGoals>

Have a look : http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#preparationGoals



HTH,
--
Olivier

-----Message d'origine-----
De : Evan Toliopoulos [mailto:evantoliopoulos@softwarekitchen.com.au] 
Envoyé : vendredi 18 mai 2007 05:26
À : Maven Users List
Objet : Problems with preparationGoals config in the release plugin

Hi,

Has any one managed to configure the *preparationGoals *for the *release *plugin successfully.

I have the following in my pom.xml (which is a parent POM with packaging
pom):

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-release-plugin</artifactId>
    <configuration>
        
<tagBase>scm:svn:svn://svn.emagineinternational.com/tags/sms-transceiver</tagBase>
        <preparationGoals>
            <preparationGoal>assembly:assembly</preparationGoal>
        </preparationGoals>
    </configuration>
  </plugin>

and when I try to run Maven v2.0.6 with goal *release:prepare* I get:

  [INFO] Failed to configure plugin parameters for: 
org.apache.maven.plugins:maven-release-plugin:2.0-beta-4
  Cause: When configuring a basic element the configuration cannot contain any child elements. Configuration element 'preparationGoals'.

Does anyone know what I am doing wrong?

Thanks,
Evan

---------------------------------------------------------------------
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