http://maven.apache.org/pom.html#SCM

Well, connectionUrl is used for readonly access (for example, when you
provide users with public access), and access for developers
(developerConnection) is the one used for committing (write access).

IMO, your problem also comes from the fact that you should put connection
information into the project/scm block and not in some configuration
specific to the scm plugin.

Cheers.

2009/5/8 Nafter <hdo...@allshare.nl>

>
> I have to profiles in my pom.xml. The first profile does a scm:update in a
> workingDirectory using the connectionUrl. This works just fine.
>
> Then later during the same build within Hudson, another profile is
> triggered
> which is also using the maven scm plugin. Now I would like to commit
> (checkin) a modified file.
> I did configure the workingDirectory and the connectionUrl.
> But now an exception is thrown about the fact that the
> developerConnectionUrl is missing! Why?
>
> Why can't I just use the connectionUrl to do the checkin/commit?
> Now I did try using the developerConnectionUrl and providing a message. But
> now the actual file is not committed, but it seems it is looking at a time
> file instead of the location of my workingdirectory.
> I use tortoisesvn and the workingdirectory does already have a svn
> checkout.
> And doing a commit with tortoisesvn is working just fine.
>
> This is a part of my configuration:
> <!-- SUBVERSION COMMIT VERSION.TXT -->
>    <profile>
>      <id>commit_version_id</id>
>      <activation>
>        <property>
>          <name>commit_version</name>
>        </property>
>      </activation>
>      <build>
>        <plugins>
>          <plugin>
>            <groupId>org.apache.maven.plugins</groupId>
>            <artifactId>maven-scm-plugin</artifactId>
>            <version>1.2</version>
>            <configuration>
>              <username>${SVN_USERNAME}</username>
>              <password>${SVN_PASSWORD}</password>
>
> <developerConnectionUrl>${SVN_CONNECTIONURL}</developerConnectionUrl>
>            </configuration>
>            <executions>
>              <execution>
>                <id>svn_commit</id>
>                <phase>verify</phase>
>                <goals>
>                  <goal>checkin</goal>
>                </goals>
>                <configuration>
>                  <message>Automatically generated build id</message>
>
> <workingDirectory>${SVN_WORKINGDIRECTORY__PV50}</workingDirectory>
>                </configuration>
>              </execution>
>            </executions>
>          </plugin>
>        </plugins>
>      </build>
>    </profile>
>
> --
> View this message in context:
> http://www.nabble.com/Maven-scm%3Acheckin-requires-developerConnectionUrl---tp23436610p23436610.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Reply via email to