Hi,
It's an issue in svnjava provider. The scm prefix is not used.
You can create an issue in this project.
The fix is easy


2010/5/21 Julien HENRY <[email protected]>:
> Hi,
>
> I'm trying to use javasvn provider with the release plugin. But it seems 
> there is an issue as scmCommentPrefix is not taken into account during 
> tagging. Can someone check my configuration and then tell me if I did 
> something wrong or if I should report a bug (bug fore release plugin? 
> scm-api? svnjava provider?)
>
>
> I have configured my pom like this:
>                 <plugin>
>                    <groupId>org.apache.maven.plugins</groupId>
>                    <artifactId>maven-release-plugin</artifactId>
>                    <version>2.0</version>
>                    <configuration>
>                        <providerImplementations>
>                            <svn>javasvn</svn>
>                        </providerImplementations>
>                    </configuration>
>                    <dependencies>
>                        <dependency>
>                            
> <groupId>com.google.code.maven-scm-provider-svnjava</groupId>
>                            <artifactId>maven-scm-provider-svnjava</artifactId>
>                            <version>1.10</version>
>                        </dependency>
>                    </dependencies>
>                </plugin>
>
> In my organisation we need to provide a specific comment during any svn write 
> operation (commit, tag) so I am using -DscmCommentPrefix option:
> mvn release:prepare -DscmCommentPrefix=[XYZ]
>
> The commit in trunk was done successfully but the tag failed:
> [DEBUG] Configuring mojo 
> 'org.apache.maven.plugins:maven-release-plugin:2.0:prepare' with basic 
> configurator -->
> [DEBUG]   (f) addSchema = true
> [DEBUG]   (f) allowReleasePluginSnapshot = false
> [DEBUG]   (f) allowTimestampedSnapshots = false
> [DEBUG]   (f) autoVersionSubmodules = true
> [DEBUG]   (s) basedir = D:\myproject
> [DEBUG]   (f) commitByProject = false
> [DEBUG]   (f) dryRun = false
> [DEBUG]   (f) generateReleasePoms = false
> [DEBUG]   (f) javaHome = C:\Program Files\Java\jdk1.6.0_20\jre
> [DEBUG]   (f) localCheckout = false
> [DEBUG]   (f) mavenExecutorId = invoker
> [DEBUG]   (f) mavenHome = D:\apache-maven-3.0-beta-1
> [DEBUG]   (f) preparationGoals = clean verify
> [DEBUG]   (f) project = MavenProject: com.mycompany:myproject:2.3.0 @ 
> D:\myproject\pom.xml
> [DEBUG]   (f) providerImplementations = {svn=javasvn}
> [DEBUG]   (f) reactorProjects = [MavenProject: com.mycompany:myproject:2.3.0 
> @ D:\myproject\pom.xml]
> [DEBUG]   (f) remoteTagging = true
> [DEBUG]   (f) resume = true
> [DEBUG]   (f) scmCommentPrefix = [XYZ]
> [DEBUG]   (f) session = org.apache.maven.execution.mavensess...@bf7916
> [DEBUG]   (f) settings = org.apache.maven.execution.settingsadap...@1478a2d
> [DEBUG]   (f) updateDependencies = true
> [DEBUG]   (f) useEditMode = false
> [DEBUG] -- end configuration --
> [INFO] Change the default 'svn' provider implementation to 'javasvn'.
> [INFO] Resuming release from phase 'scm-tag'
> [INFO] Tagging release with the label myproject-2.3.0...
> [DEBUG] ScmTagPhase :: scmTagParameters remotingTag true
> [DEBUG] ScmTagPhase :: scmTagParameters scmRevision null
> [INFO] SVN checkout directory: D:\myproject
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 5.109s
> [INFO] Finished at: Fri May 21 12:01:10 CEST 2010
> [INFO] Final Memory: 5M/15M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on 
> project myproject: Unable to tag SCM
> Provider message:
> SVN tag failed.
> Command output:
> svn: Commit failed (details follow):
> svn: Commit blocked by pre-commit hook (exit code 1) with output:
> Associations are required on commit.
>
>
> Thanks
>
> Julien
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Olivier
http://twitter.com/olamy
http://fr.linkedin.com/in/olamy
http://www.viadeo.com/fr/profile/olivier.lamy7

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to