maven - mvn release - svn error while tagging -


while trying execute release:prepare goal, following failure :

... [info] checking in modified poms... [info] svn commit directory: c:\dev\eclipse\workspace\xxx-parent [info] tagging release label xxx-parent-0.0.1... [info] svn checkout directory: c:\dev\eclipse\workspace\xxx-parent [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 16.603s [info] finished at: thu oct 22 14:43:44 cest 2015 [info] final memory: 10m/244m [info] ------------------------------------------------------------------------ [error] failed execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project xxx-parent: unable tag scm [error] provider message: [error] svn tag failed. [error] command output: [error] svn: commit failed (details follow): [error] svn: commit blocked pre-commit hook (exit code 1) output: [error] message mandatory! [error] message must comply following structure 'tt 12345: explanation'. [error] pay attention white space between tt , tt number , between colon , explanation. [error] explanation after colon should @ least 10 characters long. [error] svn: merge of '/svn/xxxxx/xxx-parent': 409 conflict (https://192.19.20.56) [error] -> [help 1] ... 

the project well updated in trunk release version not in tags , looks it's trying svn merge ?! ? if so, why ?

here maven-release-plugin config:

        <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-release-plugin</artifactid>             <version>2.5.3</version>             <dependencies>                 <dependency>                     <groupid>com.google.code.maven-scm-provider-svnjava</groupid>                     <artifactid>maven-scm-provider-svnjava</artifactid>                     <version>1.6</version>                 </dependency>             </dependencies>             <configuration>                 <providerimplementations>                     <svn>javasvn</svn>                 </providerimplementations>                 <branchbase>https://192.19.20.56/svn/xxxxx/xxx-parent/branches</branchbase>                 <tagbase>https://192.19.20.56/svn/xxxxx/xxx-parent/tags</tagbase>                 <scmcommentprefix>tt 00000: tagging release of project ${project.name} ${project.version}, </scmcommentprefix>             </configuration>         </plugin> 

maven's output contains pointers:

[error] svn: commit failed (details follow): [error] svn: commit blocked pre-commit hook (exit code 1) output: [error] message mandatory! [error] message must comply following structure 'tt 12345: explanation'. [error] pay attention white space between tt , tt number , between colon , explanation. [error] explanation after colon should @ least 10 characters long. 

your team has pre-commit hook installed disallows commit, because commit message missing. can assume maven-release-plugin configuration have included not 1 active, since contains not commit message, 1 in required format:

<scmcommentprefix>tt 00000: tagging release of project ${project.name} ${project.version}, </scmcommentprefix> 

you might try adding commit message manually using command-line parameter so:

mvn release:prepare -dscmcommentprefix="tt 00000: tagging release of project..." 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -