You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Roger Ye <ro...@gmail.com> on 2007/12/18 16:18:46 UTC

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

Re: Maven Site, No Anonymous Access to Source Repository

Posted by Lee Meador <le...@leemeador.com>.
Could the developer connection have user and, maybe, password included in
the "URL"? If so, that would make it relevant

-- Lee

On Dec 19, 2007 8:48 AM, Roger Ye <ro...@gmail.com> wrote:

> In a normal build, it's ok to use the anonymous connection, but what if I
> want do a mvn release using continuum, that will require checking in and
> tagging, therefore a developer connection is necessary, so it depends.
>
> I think, when adding a maven project into continuum, the user should be
> asked to choose between the readonly anonymous connection or read-write
> developer connection, afterwards, continuum can read the relevent
> connection
> and use that, or report the error if the corresponding connection is N/A.
>
> One more step, if and only if the anonymous connection url and the
> developer
> connection url are the same, then, whether readonly or read-write is just
> the result of user authentication, anonymous results in readonly
> connection, whilst an authenticated user with write priviledge can get a
> read-write connection. So this could mean that we only need one connection
> url and let user select the authentication type, which determine the
> writability of the connection. so we may deprecate the
> scm.developerConnection element? hmm...
>
> Thanks
> Roger
>
> On 12/19/07, nicklist@planet.nl <ni...@planet.nl> wrote:
> >
> > The scm.connection is the anonymous connection. So, should continuum
> work
> > with the developerConnection or the anonymous connection? (Or pick the
> one,
> > that is available)
> >
> > With regards,
> >
> > Nick Stolwijk
> >
> >
> > -----Original Message-----
> > From: Wendy Smoak [mailto:wsmoak@gmail.com]
> > Sent: Wed 12/19/2007 3:24 PM
> > To: continuum-users@maven.apache.org
> > Subject: Re: Maven Site, No Anonymous Access to Source Repository
> >
> > On Dec 18, 2007 9:08 PM, Roger Ye <ro...@gmail.com> wrote:
> >
> > > 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
> >
> > I think Continuum ought to work with just an anonymous connection.
> > Can you check JIRA and file that if it's not there?
> >
> > --
> > Wendy
> >
> >
>



-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com

Re: Maven Site, No Anonymous Access to Source Repository

Posted by Roger Ye <ro...@gmail.com>.
In a normal build, it's ok to use the anonymous connection, but what if I
want do a mvn release using continuum, that will require checking in and
tagging, therefore a developer connection is necessary, so it depends.

I think, when adding a maven project into continuum, the user should be
asked to choose between the readonly anonymous connection or read-write
developer connection, afterwards, continuum can read the relevent connection
and use that, or report the error if the corresponding connection is N/A.

One more step, if and only if the anonymous connection url and the developer
connection url are the same, then, whether readonly or read-write is just
the result of user authentication, anonymous results in readonly
connection, whilst an authenticated user with write priviledge can get a
read-write connection. So this could mean that we only need one connection
url and let user select the authentication type, which determine the
writability of the connection. so we may deprecate the
scm.developerConnection element? hmm...

Thanks
Roger

On 12/19/07, nicklist@planet.nl <ni...@planet.nl> wrote:
>
> The scm.connection is the anonymous connection. So, should continuum work
> with the developerConnection or the anonymous connection? (Or pick the one,
> that is available)
>
> With regards,
>
> Nick Stolwijk
>
>
> -----Original Message-----
> From: Wendy Smoak [mailto:wsmoak@gmail.com]
> Sent: Wed 12/19/2007 3:24 PM
> To: continuum-users@maven.apache.org
> Subject: Re: Maven Site, No Anonymous Access to Source Repository
>
> On Dec 18, 2007 9:08 PM, Roger Ye <ro...@gmail.com> wrote:
>
> > 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
>
> I think Continuum ought to work with just an anonymous connection.
> Can you check JIRA and file that if it's not there?
>
> --
> Wendy
>
>

Re: Maven Site, No Anonymous Access to Source Repository

Posted by Wendy Smoak <ws...@gmail.com>.
On Dec 19, 2007 7:25 AM,  <ni...@planet.nl> wrote:
> The scm.connection is the anonymous connection. So, should continuum work with the developerConnection or the anonymous connection? (Or pick the one, that is available)

Sorry, it's early. :)  As long as Maven doesn't complain about it, I
think Continuum should work with only a developer connection (and no
anonymous connection) since that's a reasonable configuration for
internal corporate development.

-- 
Wendy

RE: Maven Site, No Anonymous Access to Source Repository

Posted by ni...@planet.nl.
The scm.connection is the anonymous connection. So, should continuum work with the developerConnection or the anonymous connection? (Or pick the one, that is available)

With regards,

Nick Stolwijk


-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com]
Sent: Wed 12/19/2007 3:24 PM
To: continuum-users@maven.apache.org
Subject: Re: Maven Site, No Anonymous Access to Source Repository
 
On Dec 18, 2007 9:08 PM, Roger Ye <ro...@gmail.com> wrote:

> 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

I think Continuum ought to work with just an anonymous connection.
Can you check JIRA and file that if it's not there?

-- 
Wendy


Re: Maven Site, No Anonymous Access to Source Repository

Posted by Wendy Smoak <ws...@gmail.com>.
On Dec 18, 2007 9:08 PM, Roger Ye <ro...@gmail.com> wrote:

> 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

I think Continuum ought to work with just an anonymous connection.
Can you check JIRA and file that if it's not there?

-- 
Wendy

Re: Maven Site, No Anonymous Access to Source Repository

Posted by Roger Ye <ro...@gmail.com>.
Hi,

FYI, I've filed the bug report.

http://jira.codehaus.org/browse/MPIR-78

* Maven 2.x Project Info Reports Plugin<http://jira.codehaus.org/browse/MPIR>
> *
> Unable to exclude scm anonymous access info


Thanks


On 12/19/07, nicklist@planet.nl <ni...@planet.nl> wrote:
>
> 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.1snapshot (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: rogerye@gmail.com on behalf of Roger Ye
> Sent: Wed 12/19/2007 5:08 AM
> To: Maven Users List; continuum-users@maven.apache.org
> 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 <ro...@gmail.com> 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, nicklist@planet.nl <ni...@planet.nl> 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: rogerye@gmail.com 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
> > >
> > >
> >
>
>
>
>

RE: Maven Site, No Anonymous Access to Source Repository

Posted by ni...@planet.nl.
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: rogerye@gmail.com on behalf of Roger Ye
Sent: Wed 12/19/2007 5:08 AM
To: Maven Users List; continuum-users@maven.apache.org
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 <ro...@gmail.com> 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, nicklist@planet.nl <ni...@planet.nl> 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: rogerye@gmail.com 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
> >
> >
>




Maven Site, No Anonymous Access to Source Repository

Posted by Roger Ye <ro...@gmail.com>.
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 <ro...@gmail.com> 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, nicklist@planet.nl <ni...@planet.nl> 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: rogerye@gmail.com 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
> >
> >
>

Maven Site, No Anonymous Access to Source Repository

Posted by Roger Ye <ro...@gmail.com>.
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 <ro...@gmail.com> 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, nicklist@planet.nl <ni...@planet.nl> 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: rogerye@gmail.com 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
> >
> >
>

Re: Maven Site, No Anonymous Access to Source Repository

Posted by Roger Ye <ro...@gmail.com>.
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, nicklist@planet.nl <ni...@planet.nl> 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: rogerye@gmail.com 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
>
>

RE: Maven Site, No Anonymous Access to Source Repository

Posted by ni...@planet.nl.
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: rogerye@gmail.com 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