Bonjour à tous,
Dans le cadre d'un projet géré avec maven, nous utilisons le plugin "release" pour générer les versions finale des applications, et nous utilisons SVN.
Logiquement, la tache "release:prepare" doit avant toute chose vérifier qu'aucune modification locale n'est présente dans le répertoire de travail. Mais ça n'a pas l'air de fonctionner. Lorsque je lance l'opération, Maven agit comme s'il n'existait aucune modification locale (or des modifications n'ont pas encore été commitées), et je me retrouve avec une version taguée qui contient des fichiers de versions différentes par rapport à la branche principal.
Voici les commandes exécutée :
ici, je vérifié que des modifications locales sont bien présentes :
Lorsque j'utilise le plugin "release", j'obtiens le résultat suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 #> svn --non-interactive status ? src\changes M src\site\site.xml M pom.xml
Quelqu'un dans la communauté a-t-il déjà rencontré ce problème ? ou peut-être ai-je mal compris le fonctionnement du plugin ....
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 #> mvn release:clean release:prepare [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'release'. [INFO] ------------------------------------------------------------------------ [INFO] Building Unnamed - xxx.yyy.zzz:pom-root:pom:0.3-SNAPSHOT [INFO] task-segment: [release:clean, release:prepare] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [release:clean] [INFO] Cleaning up after release... [INFO] [release:prepare] [INFO] Verifying that there are no local modifications... [INFO] Executing: svn --non-interactive status [INFO] Working directory: e:\dev\workspace-soft\pom-root [INFO] Checking dependencies and plugins for snapshots ... What is the release version for "Unnamed - xxx.yyy.zzz:pom-root:pom:0.3-SNAPSHOT"? (xxx.yyy.zzz:pom-root) 0.3: : What is SCM release tag or label for "Unnamed - xxx.yyy.zzz:pom-root:pom:0.3-SNAPSHOT"? (xxx.yyy.zzz:pom-root) pom-root-0.3: : What is the new development version for "Unnamed - xxx.yyy.zzz:pom-root:pom:0.3-SNAPSHOT"? (xxx.yyy.zzz:pom-root) 0.4-SNAPSHOT: : [INFO] Transforming 'Unnamed - xxx.yyy.zzz:pom-root:pom:0.3-SNAPSHOT'... [INFO] Not generating release POMs [INFO] Executing goals 'clean verify'... [INFO] Executing: mvn clean verify --no-plugin-updates -P dev [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Unnamed - xxx.yyy.zzz:pom-root:pom:0.3 [INFO] task-segment: [clean, verify] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] [site:attach-descriptor] [INFO] Unable to load parent project from a relative path: Could not find the model file 'e:\dev\workspace-soft\pom.xml'. for project unknown [INFO] Parent project loaded from repository. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Tue Jun 30 17:18:52 CEST 2009 [INFO] Final Memory: 7M/15M [INFO] ------------------------------------------------------------------------ [INFO] Checking in modified POMs... [INFO] Executing: svn --non-interactive commit --file C:\DOCUME~1\rkbk7381\LOCALS~1\Temp\maven-scm-1646580232.commit --targets C:\DOCUME~1\rkbk7381\LOCALS~1\Temp\maven-scm-12712-targets [INFO] Working directory: e:\dev\workspace-soft\pom-root [INFO] Tagging release with the label pom-root-0.3... [INFO] Executing: svn --non-interactive copy --file C:\DOCUME~1\rkbk7381\LOCALS~1\Temp\maven-scm-1199151198.commit . <a href="http://vmsoft/svn/soft/common/pom-root/tags/pom-root-0.3" target="_blank">http://vmsoft/svn/soft/common/pom-ro...s/pom-root-0.3</a> [INFO] Working directory: e:\dev\workspace-soft\pom-root [INFO] Transforming 'Unnamed - xxx.yyy.zzz:pom-root:pom:0.3-SNAPSHOT'... [INFO] Not removing release POMs [INFO] Checking in modified POMs... [INFO] Executing: svn --non-interactive commit --file C:\DOCUME~1\rkbk7381\LOCALS~1\Temp\maven-scm-1973681382.commit --targets C:\DOCUME~1\rkbk7381\LOCALS~1\Temp\maven-scm-12713-targets [INFO] Working directory: e:\dev\workspace-soft\pom-root [INFO] Release preparation complete. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 21 seconds [INFO] Finished at: Tue Jun 30 17:18:54 CEST 2009 [INFO] Final Memory: 5M/9M [INFO] ------------------------------------------------------------------------
Partager