I've taken another look and it seems the scm report configuration was not added
in the current stable (2.0.1) but was added in 2.1, which is still a snapshot.
However,
the
<configuration>
<anonymousConnection/>
</configuration>
was not succesfull with both versions. It seems not to override the default.
On the other hand:
<configuration>
<anonymousConnection>foo</anonymousConnection>
</configuration>
Created a report on 2.0.1, so it doesn't look at that element. On 2.1 snapshot
(fresh from svn) this failed horribly, because it can't resolve the connection.
Also looking at the code, it seems that this is not taken into consideration. I
think this is a feature request.
With regards,
Nick Stolwijk
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Roger Ye
Sent: Wed 12/19/2007 5:08 AM
To: Maven Users List; [EMAIL PROTECTED]
Subject: Maven Site, No Anonymous Access to Source Repository
Hi,
I just made an attempt as I've said, but it failed,
I tried to to configure the project-info-reports plugin as following:
<reporting>
<plugins>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<configuration>
<anonymousConnection></anonymousConnection> <!-- no
anonymous access to source repository -->
</configuration>
....
but the result soure-repository.html of mvn project-info-reports:scm still
includes the anonymous access info
and if I try to remove the scm.connection element from my pom.xml, then I
can not add my project into continuum using the pom, continuum reports
Missing 'connection' sub-element in the 'scm' element in the POM.
hmm....
On 12/19/07, Roger Ye <[EMAIL PROTECTED]> wrote:
>
> Ah, thanks, I had added the scm.connection element back because continuum
> had had problem to checkout the source code,
>
> So the correct solution is to configure the project info report plugin and
> override the anonymousConnection configuration element to avoid it
> defaulting to scm.connection.
>
> I'll try that tomorrow and report the result back here.
>
> Thank you very much.
>
>
> On 12/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > In your pom file you have defined your SCM connections:
> >
> > <scm>
> > <connection/>
> > <developerConnection/>
> > <tag/>
> > <url/>
> > </scm>
> >
> > <connection> is your anonymous access on the web page.
> > <developerConnection> is your developer access on the website
> > <url> is your web access on the website.
> >
> > See also the definition on the maven model [1], the project info reports
> > plugin scm-mojo [2] and the examples for the project info reports plug
> > scm-mojo [3]
> >
> > Hth,
> >
> > Nick Stolwijk
> >
> > [1] http://maven.apache.org/ref/2.0.7/maven-model/maven.html#class_scm
> > [2]
> > http://maven.apache.org/plugins/maven-project-info-reports-plugin/scm-mojo.html
> > [3]
> > http://maven.apache.org/plugins/maven-project-info-reports-plugin/examples/scm-report.html
> >
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] on behalf of Roger Ye
> > Sent: Tue 12/18/2007 4:18 PM
> > To: Maven Users List
> > Subject: Maven Site, No Anonymous Access to Source Repository
> >
> > Hi,
> >
> > I'm using mvn site to generate my project site, and in the
> > source-repository.html
> > page, it contains the anonymous access information to my svn source
> > repository,
> > but the fact is that we don't provide svn anonymous acess, and
> > authentication is
> > mandatory,
> >
> > So the question is how to remove the source repository anonymous access
> > information which is false?
> >
> > Thanks
> > Roger
> >
> >
>