Hello,
recently I tried to configure a project to use the svn
implementation of the SCM plugin, however it seems to be partially
working, since, for example, issuing the command "mvn scm:update"
results in this output:
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building pivot-wtk-svn
[INFO] task-segment: [scm:update] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] [scm:update]
[INFO] Executing: /bin/sh -c cd
/home/oso/Programación/java/pivot-wtk-svn && svn --non-interactive
update /home/oso/Programación/java/pivot-wtk-svn
[INFO] Working directory: /home/oso/Programación/java/pivot-wtk-svn
[INFO] Storing revision in 'scm.revision' project property.
[INFO] Project at revision 0
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Fri Jun 19 19:40:40 CDT 2009
[INFO] Final Memory: 14M/120M
[INFO]
------------------------------------------------------------------------
As you can see, it doesn't update sources, I had some trouble in
finding good documentation on how to configure the plugin, so I might
have missed something, here's my pom.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>pivot-svn</groupId>
<artifactId>pivot-wtk-svn</artifactId>
<packaging>jar</packaging>
<version>1.2-SNAPSHOT</version>
<name>pivot-wtk-svn</name>
<url>http://maven.apache.org</url>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/incubator/pivot/trunk/core</connection>
<tag>HEAD</tag>
</scm>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.1</version>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>pivot-svn</groupId>
<artifactId>pivot-core-svn</artifactId>
<version>1.2-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
Any help will be greatly appreciated!
Thanks in advance,
Edgar Merino