You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Patrick Staton (JIRA)" <ji...@codehaus.org> on 2010/08/17 20:14:32 UTC

[jira] Created: (MNG-4769) Regression: Repository ignored

Regression: Repository <enabled> ignored
----------------------------------------

                 Key: MNG-4769
                 URL: http://jira.codehaus.org/browse/MNG-4769
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Artifacts and Repositories
    Affects Versions: 3.0-beta-2, 3.0-beta-1
         Environment: Maven 3.0 beta 2
            Reporter: Patrick Staton


In Maven 2 I can disable central and other project repositories by declaring a repository with the same id in settings.xml and declaring <enabled>false</enabled> for both releases and snapshots. For example, in Maven 2, the following settings.xml will disable maven central for the current user:
{code}<?xml version="1.0" encoding="UTF-8"?>
<settings>
  <activeProfiles>
    <activeProfile>DEFAULT</activeProfile>
  </activeProfiles>
  <profiles>
    <profile>
      <id>DEFAULT</id>
      <repositories>
        <repository>
          <id>central</id>
          <name>Maven Repository Switchboard</name>
          <url>http://foo.bar.com</url>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>central</id>
          <name>Maven Repository Switchboard</name>
          <url>http://foo.bar.com</url>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
</settings>
{code}

This no longer works in maven 3. With the above in my settings.xml, Maven 3 still searches for artifacts in central:
{code}
Apache Maven 3.0-beta-2 (r983206; 2010-08-07 07:00:51-0400)
Java version: 1.6.0_20
Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.20.x86_64/jre
Default locale: en_US, platform encoding: ISO-8859-1
OS name: "linux" version: "2.6.18-194.8.1.el5" arch: "amd64" Family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading user settings from /users/foo/.m2/settings.xml
[DEBUG] Reading global settings from /users/foo/maven3/conf/settings.xml
[DEBUG] Using local repository at /users/foo/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Determining update check for <removed>:maven-plugin:1.1.3.9:runtime (/users/foo/.m2/repository/<removed>/1.1.3.9/<removed>-1.1.3.9.jar) from central (http://foo.bar.com)
[DEBUG] Searching for http://foo.bar.com in resolution tracking file.
[DEBUG] Skipped unreadable resolution tracking file /users/foo/.m2/repository/<removed>/1.1.3.9/<removed>-1.1.3.9.maven-plugin.lastUpdated
[DEBUG] Trying repository central for resolution of <removed>:maven-plugin:1.1.3.9 from <removed>/1.1.3.9/<removed>-1.1.3.9.jar
Downloading: http://foo.bar.com/<removed>/1.1.3.9/<removed>-1.1.3.9.jar

{code}

This is extremely helpful in our situation. Only being able to change the url of central is not enough, we would like to totally disable it.

-- 
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-4769) Regression: flag for central cannot be overriden

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

Benjamin Bentmann updated MNG-4769:
-----------------------------------

    Comment: was deleted

(was: what?!?!?!?
)

> Regression: <enabled> flag for central cannot be overriden
> ----------------------------------------------------------
>
>                 Key: MNG-4769
>                 URL: http://jira.codehaus.org/browse/MNG-4769
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0-beta-1, 3.0-beta-2
>         Environment: Maven 3.0 beta 2
>            Reporter: Patrick Staton
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-beta-3
>
>
> In Maven 2 I can disable central and other project repositories by declaring a repository with the same id in settings.xml and declaring <enabled>false</enabled> for both releases and snapshots. For example, in Maven 2, the following settings.xml will disable maven central for the current user:
> {code}<?xml version="1.0" encoding="UTF-8"?>
> <settings>
>   <activeProfiles>
>     <activeProfile>DEFAULT</activeProfile>
>   </activeProfiles>
>   <profiles>
>     <profile>
>       <id>DEFAULT</id>
>       <repositories>
>         <repository>
>           <id>central</id>
>           <name>Maven Repository Switchboard</name>
>           <url>http://foo.bar.com</url>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>         </repository>
>       </repositories>
>       <pluginRepositories>
>         <pluginRepository>
>           <id>central</id>
>           <name>Maven Repository Switchboard</name>
>           <url>http://foo.bar.com</url>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>         </pluginRepository>
>       </pluginRepositories>
>     </profile>
>   </profiles>
> </settings>
> {code}
> This no longer works in maven 3. With the above in my settings.xml, Maven 3 still searches for artifacts in central:
> {code}
> Apache Maven 3.0-beta-2 (r983206; 2010-08-07 07:00:51-0400)
> Java version: 1.6.0_20
> Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.20.x86_64/jre
> Default locale: en_US, platform encoding: ISO-8859-1
> OS name: "linux" version: "2.6.18-194.8.1.el5" arch: "amd64" Family: "unix"
> [INFO] Error stacktraces are turned on.
> [DEBUG] Reading user settings from /users/foo/.m2/settings.xml
> [DEBUG] Reading global settings from /users/foo/maven3/conf/settings.xml
> [DEBUG] Using local repository at /users/foo/.m2/repository
> [INFO] Scanning for projects...
> [DEBUG] Determining update check for <removed>:maven-plugin:1.1.3.9:runtime (/users/foo/.m2/repository/<removed>/1.1.3.9/<removed>-1.1.3.9.jar) from central (http://foo.bar.com)
> [DEBUG] Searching for http://foo.bar.com in resolution tracking file.
> [DEBUG] Skipped unreadable resolution tracking file /users/foo/.m2/repository/<removed>/1.1.3.9/<removed>-1.1.3.9.maven-plugin.lastUpdated
> [DEBUG] Trying repository central for resolution of <removed>:maven-plugin:1.1.3.9 from <removed>/1.1.3.9/<removed>-1.1.3.9.jar
> Downloading: http://foo.bar.com/<removed>/1.1.3.9/<removed>-1.1.3.9.jar
> {code}
> This is extremely helpful in our situation. Only being able to change the url of central is not enough, we would like to totally disable it.

-- 
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-4769) Regression: flag for central cannot be overriden

Posted by "snowflakeaz (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=233016#action_233016 ] 

snowflakeaz commented on MNG-4769:
----------------------------------

what?!?!?!?


> Regression: <enabled> flag for central cannot be overriden
> ----------------------------------------------------------
>
>                 Key: MNG-4769
>                 URL: http://jira.codehaus.org/browse/MNG-4769
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0-beta-1, 3.0-beta-2
>         Environment: Maven 3.0 beta 2
>            Reporter: Patrick Staton
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-beta-3
>
>
> In Maven 2 I can disable central and other project repositories by declaring a repository with the same id in settings.xml and declaring <enabled>false</enabled> for both releases and snapshots. For example, in Maven 2, the following settings.xml will disable maven central for the current user:
> {code}<?xml version="1.0" encoding="UTF-8"?>
> <settings>
>   <activeProfiles>
>     <activeProfile>DEFAULT</activeProfile>
>   </activeProfiles>
>   <profiles>
>     <profile>
>       <id>DEFAULT</id>
>       <repositories>
>         <repository>
>           <id>central</id>
>           <name>Maven Repository Switchboard</name>
>           <url>http://foo.bar.com</url>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>         </repository>
>       </repositories>
>       <pluginRepositories>
>         <pluginRepository>
>           <id>central</id>
>           <name>Maven Repository Switchboard</name>
>           <url>http://foo.bar.com</url>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>         </pluginRepository>
>       </pluginRepositories>
>     </profile>
>   </profiles>
> </settings>
> {code}
> This no longer works in maven 3. With the above in my settings.xml, Maven 3 still searches for artifacts in central:
> {code}
> Apache Maven 3.0-beta-2 (r983206; 2010-08-07 07:00:51-0400)
> Java version: 1.6.0_20
> Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.20.x86_64/jre
> Default locale: en_US, platform encoding: ISO-8859-1
> OS name: "linux" version: "2.6.18-194.8.1.el5" arch: "amd64" Family: "unix"
> [INFO] Error stacktraces are turned on.
> [DEBUG] Reading user settings from /users/foo/.m2/settings.xml
> [DEBUG] Reading global settings from /users/foo/maven3/conf/settings.xml
> [DEBUG] Using local repository at /users/foo/.m2/repository
> [INFO] Scanning for projects...
> [DEBUG] Determining update check for <removed>:maven-plugin:1.1.3.9:runtime (/users/foo/.m2/repository/<removed>/1.1.3.9/<removed>-1.1.3.9.jar) from central (http://foo.bar.com)
> [DEBUG] Searching for http://foo.bar.com in resolution tracking file.
> [DEBUG] Skipped unreadable resolution tracking file /users/foo/.m2/repository/<removed>/1.1.3.9/<removed>-1.1.3.9.maven-plugin.lastUpdated
> [DEBUG] Trying repository central for resolution of <removed>:maven-plugin:1.1.3.9 from <removed>/1.1.3.9/<removed>-1.1.3.9.jar
> Downloading: http://foo.bar.com/<removed>/1.1.3.9/<removed>-1.1.3.9.jar
> {code}
> This is extremely helpful in our situation. Only being able to change the url of central is not enough, we would like to totally disable it.

-- 
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-4769) Regression: Plugin version resolution ignores repository flags

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

Benjamin Bentmann updated MNG-4769:
-----------------------------------

    Summary: Regression: Plugin version resolution ignores repository <enabled> flags  (was: Regression: Repository <enabled> ignored)

> Regression: Plugin version resolution ignores repository <enabled> flags
> ------------------------------------------------------------------------
>
>                 Key: MNG-4769
>                 URL: http://jira.codehaus.org/browse/MNG-4769
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0-beta-1, 3.0-beta-2
>         Environment: Maven 3.0 beta 2
>            Reporter: Patrick Staton
>
> In Maven 2 I can disable central and other project repositories by declaring a repository with the same id in settings.xml and declaring <enabled>false</enabled> for both releases and snapshots. For example, in Maven 2, the following settings.xml will disable maven central for the current user:
> {code}<?xml version="1.0" encoding="UTF-8"?>
> <settings>
>   <activeProfiles>
>     <activeProfile>DEFAULT</activeProfile>
>   </activeProfiles>
>   <profiles>
>     <profile>
>       <id>DEFAULT</id>
>       <repositories>
>         <repository>
>           <id>central</id>
>           <name>Maven Repository Switchboard</name>
>           <url>http://foo.bar.com</url>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>         </repository>
>       </repositories>
>       <pluginRepositories>
>         <pluginRepository>
>           <id>central</id>
>           <name>Maven Repository Switchboard</name>
>           <url>http://foo.bar.com</url>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>         </pluginRepository>
>       </pluginRepositories>
>     </profile>
>   </profiles>
> </settings>
> {code}
> This no longer works in maven 3. With the above in my settings.xml, Maven 3 still searches for artifacts in central:
> {code}
> Apache Maven 3.0-beta-2 (r983206; 2010-08-07 07:00:51-0400)
> Java version: 1.6.0_20
> Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.20.x86_64/jre
> Default locale: en_US, platform encoding: ISO-8859-1
> OS name: "linux" version: "2.6.18-194.8.1.el5" arch: "amd64" Family: "unix"
> [INFO] Error stacktraces are turned on.
> [DEBUG] Reading user settings from /users/foo/.m2/settings.xml
> [DEBUG] Reading global settings from /users/foo/maven3/conf/settings.xml
> [DEBUG] Using local repository at /users/foo/.m2/repository
> [INFO] Scanning for projects...
> [DEBUG] Determining update check for <removed>:maven-plugin:1.1.3.9:runtime (/users/foo/.m2/repository/<removed>/1.1.3.9/<removed>-1.1.3.9.jar) from central (http://foo.bar.com)
> [DEBUG] Searching for http://foo.bar.com in resolution tracking file.
> [DEBUG] Skipped unreadable resolution tracking file /users/foo/.m2/repository/<removed>/1.1.3.9/<removed>-1.1.3.9.maven-plugin.lastUpdated
> [DEBUG] Trying repository central for resolution of <removed>:maven-plugin:1.1.3.9 from <removed>/1.1.3.9/<removed>-1.1.3.9.jar
> Downloading: http://foo.bar.com/<removed>/1.1.3.9/<removed>-1.1.3.9.jar
> {code}
> This is extremely helpful in our situation. Only being able to change the url of central is not enough, we would like to totally disable it.

-- 
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-4769) Regression: flag for central cannot be overriden

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

Benjamin Bentmann updated MNG-4769:
-----------------------------------

    Summary: Regression: <enabled> flag for central cannot be overriden  (was: Regression: Plugin version resolution ignores repository <enabled> flags)

> Regression: <enabled> flag for central cannot be overriden
> ----------------------------------------------------------
>
>                 Key: MNG-4769
>                 URL: http://jira.codehaus.org/browse/MNG-4769
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0-beta-1, 3.0-beta-2
>         Environment: Maven 3.0 beta 2
>            Reporter: Patrick Staton
>
> In Maven 2 I can disable central and other project repositories by declaring a repository with the same id in settings.xml and declaring <enabled>false</enabled> for both releases and snapshots. For example, in Maven 2, the following settings.xml will disable maven central for the current user:
> {code}<?xml version="1.0" encoding="UTF-8"?>
> <settings>
>   <activeProfiles>
>     <activeProfile>DEFAULT</activeProfile>
>   </activeProfiles>
>   <profiles>
>     <profile>
>       <id>DEFAULT</id>
>       <repositories>
>         <repository>
>           <id>central</id>
>           <name>Maven Repository Switchboard</name>
>           <url>http://foo.bar.com</url>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>         </repository>
>       </repositories>
>       <pluginRepositories>
>         <pluginRepository>
>           <id>central</id>
>           <name>Maven Repository Switchboard</name>
>           <url>http://foo.bar.com</url>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>         </pluginRepository>
>       </pluginRepositories>
>     </profile>
>   </profiles>
> </settings>
> {code}
> This no longer works in maven 3. With the above in my settings.xml, Maven 3 still searches for artifacts in central:
> {code}
> Apache Maven 3.0-beta-2 (r983206; 2010-08-07 07:00:51-0400)
> Java version: 1.6.0_20
> Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.20.x86_64/jre
> Default locale: en_US, platform encoding: ISO-8859-1
> OS name: "linux" version: "2.6.18-194.8.1.el5" arch: "amd64" Family: "unix"
> [INFO] Error stacktraces are turned on.
> [DEBUG] Reading user settings from /users/foo/.m2/settings.xml
> [DEBUG] Reading global settings from /users/foo/maven3/conf/settings.xml
> [DEBUG] Using local repository at /users/foo/.m2/repository
> [INFO] Scanning for projects...
> [DEBUG] Determining update check for <removed>:maven-plugin:1.1.3.9:runtime (/users/foo/.m2/repository/<removed>/1.1.3.9/<removed>-1.1.3.9.jar) from central (http://foo.bar.com)
> [DEBUG] Searching for http://foo.bar.com in resolution tracking file.
> [DEBUG] Skipped unreadable resolution tracking file /users/foo/.m2/repository/<removed>/1.1.3.9/<removed>-1.1.3.9.maven-plugin.lastUpdated
> [DEBUG] Trying repository central for resolution of <removed>:maven-plugin:1.1.3.9 from <removed>/1.1.3.9/<removed>-1.1.3.9.jar
> Downloading: http://foo.bar.com/<removed>/1.1.3.9/<removed>-1.1.3.9.jar
> {code}
> This is extremely helpful in our situation. Only being able to change the url of central is not enough, we would like to totally disable it.

-- 
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-4769) Regression: flag for central cannot be overriden

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

Benjamin Bentmann closed MNG-4769.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-beta-3
         Assignee: Benjamin Bentmann

Fixed by [r988749|http://svn.apache.org/viewvc?view=revision&revision=988749].

> Regression: <enabled> flag for central cannot be overriden
> ----------------------------------------------------------
>
>                 Key: MNG-4769
>                 URL: http://jira.codehaus.org/browse/MNG-4769
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0-beta-1, 3.0-beta-2
>         Environment: Maven 3.0 beta 2
>            Reporter: Patrick Staton
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-beta-3
>
>
> In Maven 2 I can disable central and other project repositories by declaring a repository with the same id in settings.xml and declaring <enabled>false</enabled> for both releases and snapshots. For example, in Maven 2, the following settings.xml will disable maven central for the current user:
> {code}<?xml version="1.0" encoding="UTF-8"?>
> <settings>
>   <activeProfiles>
>     <activeProfile>DEFAULT</activeProfile>
>   </activeProfiles>
>   <profiles>
>     <profile>
>       <id>DEFAULT</id>
>       <repositories>
>         <repository>
>           <id>central</id>
>           <name>Maven Repository Switchboard</name>
>           <url>http://foo.bar.com</url>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>         </repository>
>       </repositories>
>       <pluginRepositories>
>         <pluginRepository>
>           <id>central</id>
>           <name>Maven Repository Switchboard</name>
>           <url>http://foo.bar.com</url>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>         </pluginRepository>
>       </pluginRepositories>
>     </profile>
>   </profiles>
> </settings>
> {code}
> This no longer works in maven 3. With the above in my settings.xml, Maven 3 still searches for artifacts in central:
> {code}
> Apache Maven 3.0-beta-2 (r983206; 2010-08-07 07:00:51-0400)
> Java version: 1.6.0_20
> Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.20.x86_64/jre
> Default locale: en_US, platform encoding: ISO-8859-1
> OS name: "linux" version: "2.6.18-194.8.1.el5" arch: "amd64" Family: "unix"
> [INFO] Error stacktraces are turned on.
> [DEBUG] Reading user settings from /users/foo/.m2/settings.xml
> [DEBUG] Reading global settings from /users/foo/maven3/conf/settings.xml
> [DEBUG] Using local repository at /users/foo/.m2/repository
> [INFO] Scanning for projects...
> [DEBUG] Determining update check for <removed>:maven-plugin:1.1.3.9:runtime (/users/foo/.m2/repository/<removed>/1.1.3.9/<removed>-1.1.3.9.jar) from central (http://foo.bar.com)
> [DEBUG] Searching for http://foo.bar.com in resolution tracking file.
> [DEBUG] Skipped unreadable resolution tracking file /users/foo/.m2/repository/<removed>/1.1.3.9/<removed>-1.1.3.9.maven-plugin.lastUpdated
> [DEBUG] Trying repository central for resolution of <removed>:maven-plugin:1.1.3.9 from <removed>/1.1.3.9/<removed>-1.1.3.9.jar
> Downloading: http://foo.bar.com/<removed>/1.1.3.9/<removed>-1.1.3.9.jar
> {code}
> This is extremely helpful in our situation. Only being able to change the url of central is not enough, we would like to totally disable it.

-- 
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