2010-10-29 5 views
0

Nous avons un projet multi-module sur lequel je voulais utiliser le plugin de release.Maven2 release plugin ne veut pas tagger

La configuration de la subversion est

/svn/repo/project 
-- branches 
-- tags 
-- trunk 
-- -- project 
-- -- pom.xml 
-- -- module1 
-- -- -- pom.xml 
-- -- module2 
-- -- -- pom.xml 
-- -- module3 
-- -- -- pom.xml 
-- -- module4 
-- -- -- pom.xml 

Ce projet a été vérifié à partir du tronc donc sur mon système de fichiers je n'ai pas un dossier de balises ou des branches. Lorsque j'utilise la commande: version mvn: préparer, je reçois l'erreur:

[INFO] ------------------------------------------------------------------------ 
[ERROR] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Unable to tag SCM 
Provider message: 
The svn tag command failed. 
Command output: 
svn: Commit failed (details follow): 
svn: File '/svn/repo/project/tags/project-1.0/module1/pom.xml' already exists 

je reçois ce qui suit quand je lance la commande en mode débogage:

[DEBUG] WARNING: A dependency of the current project (or of one the plugins used 
in its build) was found in the reactor, 
but had not been built at the time it was requested. It will be resolved from 
the repository instead. 

Current Project: module2 
Requested Dependency: com.mycompany:module2:jar:1.0 

NOTE: You may need to run this build to the 'compile' lifecycle phase, 
or farther, in order to build the dependency artifact. 

Bien sûr, la tag n'existe pas dans svn.

Quelqu'un a des idées?

Répondre

1

Correction de ce problème en réglant le plugin comme ci-dessous. Les paramètres par défaut n'étaient pas bons apparemment.

<plugin> 
    <groupId>org.codehaus.mojo</groupId> 
     <artifactId>buildnumber-maven-plugin</artifactId> 
     <version>1.0-beta-4</version> 
     <executions> 
      <execution> 
       <phase>validate</phase> 
       <goals> 
        <goal>create</goal> 
       </goals> 
      </execution> 
     </executions> 
     <configuration> 
      <doCheck>false</doCheck> 
      <doUpdate>false</doUpdate> 
     </configuration> 
</plugin> 
+0

Vous pouvez accepter votre propre réponse si vous le souhaitez. –

Questions connexes