maven 3 site, changelog and javasvn provider

355 views
Skip to first unread message

Stevo Slavic

unread,
Jun 28, 2011, 10:15:04 AM6/28/11
to maven-scm-provider-svnjava
Hello,

This project wiki documents usage of the javasvn provider with maven-
changelog-plugin (see
http://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnjava/wiki/UsingWithChangelogPlugin
). Unfortunately I can not get this to work with maven 3, and site
plugin 3.0-beta-3.

If I configure connection/developerConnection to start with
scm:javasvn: have site and changelog plugin configured like:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<executions>
<execution>
<id>attach-descriptor</id>
<goals>
<goal>attach-descriptor</goal>
</goals>
</execution>
</executions>
<configuration>
<locales>en</locales>
<reportPlugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.2</version>
<configuration>
<username>foo</username>
<password>bar</password>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.code.maven-scm-provider-svnjava</groupId>
<artifactId>maven-scm-provider-svnjava</artifactId>
<version>${com.google.code.maven-scm-provider-svnjava.version}
</version>
</dependency>
</dependencies>
</plugin>
</reportPlugins>
</configuration>
</plugin>

Then maven site build fails with:

Caused by:
org.codehaus.plexus.component.configurator.ComponentConfigurationException:
Cannot find setter, adder nor field in
org.apache.maven.plugins.site.ReportPlugin for 'dependencies'

If I declare changelog plugin in build/plugins, and move svnjava
dependency there, running build fails with:

Caused by: org.apache.maven.scm.manager.NoSuchScmProviderException: No
such provider: 'javasvn'.
at
org.apache.maven.scm.manager.AbstractScmManager.getProviderByType(AbstractScmManager.java:
158)
at
org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(AbstractScmManager.java:
188)
at
org.apache.maven.plugin.changelog.ChangeLogReport.getScmRepository(ChangeLogReport.java:
746)


"No such provider" error occurs if I configure providerImplementations/
svn/javasvn, regardless if I configure this option for change-log-
plugin in build/plugins/plugin/maven-changelog-plugin or in build/
plugins/maven-site-plugin/configuration/reportPlugins/maven-site-
plugin

Am I doing something wrong here?

Regards,
Stevo.

Olivier Lamy

unread,
Jul 4, 2011, 3:50:31 PM7/4/11
to maven-scm-pro...@googlegroups.com
Hello,
Sorry for long response.
This won't work with maven3.

Could you please load an issue in Apache Maven project : site plugin [1]

--
Olivier Lamy
http://twitter.com/olamy | http://www.linkedin.com/in/olamy


2011/6/28 Stevo Slavic <ssl...@gmail.com>:

--
Olivier Lamy
http://twitter.com/olamy | http://www.linkedin.com/in/olamy

Reply all
Reply to author
Forward
Message has been deleted
0 new messages