You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Benedict (JIRA)" <ji...@codehaus.org> on 2008/12/01 15:14:19 UTC

[jira] Created: (MNG-3882) Prevent local repository from also being the remote repository

Prevent local repository from also being the remote repository
--------------------------------------------------------------

                 Key: MNG-3882
                 URL: http://jira.codehaus.org/browse/MNG-3882
             Project: Maven 2
          Issue Type: Bug
          Components: Settings
    Affects Versions: 2.1.0-M1, 2.0.10, 3.0-alpha-1
            Reporter: Paul Benedict


User list shows that the local repository can be specified as a remote repository. I've confirmed this is true. This is obviously a sore misconfiguration. Let's check that the values are never equal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-3882) Prevent local repository from also being the remote repository

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156061#action_156061 ] 

Wendy Smoak commented on MNG-3882:
----------------------------------

What values do you want to compare?  The local repo is a path, the remote repo is a url.  How would Maven be able to detect this?

Usually what happens is that a user takes a local repository, copies it to a server and serves it as a remote repo either with a file:// url or by using a web server in front.

Less common is dropping a copy of the local repo filesystem into a repository manager -- and this is less of a problem since Archiva at least can repair the metadata.

> Prevent local repository from also being the remote repository
> --------------------------------------------------------------
>
>                 Key: MNG-3882
>                 URL: http://jira.codehaus.org/browse/MNG-3882
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Settings
>    Affects Versions: 2.0.10, 2.1.0-M1, 3.0-alpha-1
>            Reporter: Paul Benedict
>
> User list shows that the local repository can be specified as a remote repository. I've confirmed this is true. This is obviously a sore misconfiguration. Let's check that the values are never equal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-3882) Prevent local repository from also being the remote repository

Posted by "Paul Benedict (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158453#action_158453 ] 

Paul Benedict commented on MNG-3882:
------------------------------------

I can definitely create one. However, what is the use of making them the same? Is it just for what Wendy said above, and is that still safe? 

> Prevent local repository from also being the remote repository
> --------------------------------------------------------------
>
>                 Key: MNG-3882
>                 URL: http://jira.codehaus.org/browse/MNG-3882
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Settings
>    Affects Versions: 2.0.10, 2.1.0-M1, 3.0-alpha-1
>            Reporter: Paul Benedict
>             Fix For: 2.0.x
>
>
> User list shows that the local repository can be specified as a remote repository. I've confirmed this is true. This is obviously a sore misconfiguration. Let's check that the values are never equal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MNG-3882) Prevent local repository from also being the remote repository

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason van Zyl closed MNG-3882.
------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 2.2.x)

> Prevent local repository from also being the remote repository
> --------------------------------------------------------------
>
>                 Key: MNG-3882
>                 URL: http://jira.codehaus.org/browse/MNG-3882
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Settings
>    Affects Versions: 2.0.10, 2.1.0-M1, 3.0-alpha-1
>            Reporter: Paul Benedict
>
> User list shows that the local repository can be specified as a remote repository. I've confirmed this is true. This is obviously a sore misconfiguration. Let's check that the values are never equal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-3882) Prevent local repository from also being the remote repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3882:
------------------------------

    Fix Version/s: 2.0.x

I would lean more towards a warning than an error.

Got a patch?

> Prevent local repository from also being the remote repository
> --------------------------------------------------------------
>
>                 Key: MNG-3882
>                 URL: http://jira.codehaus.org/browse/MNG-3882
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Settings
>    Affects Versions: 2.0.10, 2.1.0-M1, 3.0-alpha-1
>            Reporter: Paul Benedict
>             Fix For: 2.0.x
>
>
> User list shows that the local repository can be specified as a remote repository. I've confirmed this is true. This is obviously a sore misconfiguration. Let's check that the values are never equal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-3882) Prevent local repository from also being the remote repository

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204485#action_204485 ] 

Jason van Zyl commented on MNG-3882:
------------------------------------

Most Maven users know this is not a very bright thing to do.

> Prevent local repository from also being the remote repository
> --------------------------------------------------------------
>
>                 Key: MNG-3882
>                 URL: http://jira.codehaus.org/browse/MNG-3882
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Settings
>    Affects Versions: 2.0.10, 2.1.0-M1, 3.0-alpha-1
>            Reporter: Paul Benedict
>
> User list shows that the local repository can be specified as a remote repository. I've confirmed this is true. This is obviously a sore misconfiguration. Let's check that the values are never equal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-3882) Prevent local repository from also being the remote repository

Posted by "Paul Benedict (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156078#action_156078 ] 

Paul Benedict commented on MNG-3882:
------------------------------------

I want to compare the values of the local repo path and the remote repo path. I can set both of them to a file system path. I can't remember if I can do it directly, or use the file:// protocol.

> Prevent local repository from also being the remote repository
> --------------------------------------------------------------
>
>                 Key: MNG-3882
>                 URL: http://jira.codehaus.org/browse/MNG-3882
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Settings
>    Affects Versions: 2.0.10, 2.1.0-M1, 3.0-alpha-1
>            Reporter: Paul Benedict
>
> User list shows that the local repository can be specified as a remote repository. I've confirmed this is true. This is obviously a sore misconfiguration. Let's check that the values are never equal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-3882) Prevent local repository from also being the remote repository

Posted by "Paul Benedict (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156079#action_156079 ] 

Paul Benedict commented on MNG-3882:
------------------------------------

Okay. I have verified I can put in the same exact value for both. Neither of them are using a protocol -- just a file system path.

> Prevent local repository from also being the remote repository
> --------------------------------------------------------------
>
>                 Key: MNG-3882
>                 URL: http://jira.codehaus.org/browse/MNG-3882
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Settings
>    Affects Versions: 2.0.10, 2.1.0-M1, 3.0-alpha-1
>            Reporter: Paul Benedict
>
> User list shows that the local repository can be specified as a remote repository. I've confirmed this is true. This is obviously a sore misconfiguration. Let's check that the values are never equal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-3882) Prevent local repository from also being the remote repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158456#action_158456 ] 

Brett Porter commented on MNG-3882:
-----------------------------------

right - there's a chance someone is using it for both and has both metadata files - not recommended, but don't want to break it. It's safe.

> Prevent local repository from also being the remote repository
> --------------------------------------------------------------
>
>                 Key: MNG-3882
>                 URL: http://jira.codehaus.org/browse/MNG-3882
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Settings
>    Affects Versions: 2.0.10, 2.1.0-M1, 3.0-alpha-1
>            Reporter: Paul Benedict
>             Fix For: 2.0.x
>
>
> User list shows that the local repository can be specified as a remote repository. I've confirmed this is true. This is obviously a sore misconfiguration. Let's check that the values are never equal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira