You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Yves Van Steen (JIRA)" <ji...@codehaus.org> on 2007/05/02 10:32:26 UTC

[jira] Created: (MNG-2974) Unable to resolve & download snapshot versions from CLI

Unable to resolve & download snapshot versions from CLI
-------------------------------------------------------

                 Key: MNG-2974
                 URL: http://jira.codehaus.org/browse/MNG-2974
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.6, 2.0.5, 2.0.4, 2.0.3, 2.0.2, 2.0.1, 2.0
         Environment: Windows
            Reporter: Yves Van Steen


When I try to use a snapshot released version of a plugin on the command line interface maven doesn't resolve these and download them from registered the plugin repositories. When using non snapshot versions it is not a problem to resolve and download them.  When I add the plugin (a snapshot version) to a POM and run it it does download it.  So the problem does not lie with the repo which is registered in the settings.xml in a profile which is active.  The problem just seems to lie with the resolving and dowloading part of the process.   Cause after the snapshot plugin is download using the POM way it does find the plugin when running it from the CLI.

I first discovered this bug when trying to use the Maven install plugin.  Here are commands used in the process.  Reproding this way of use I got the same result when requesting other snapshot version of plugins that were not in the repository.

Command used to load snapshot version from the CLI (this gives the error you find below)
mvn org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file (... + correct plugin params ) 

Command used to load a specific released version from the CLI
mvn org.apache.maven.plugins:maven-install-plugin:2.1:install-file (... + correct plugin params ) 

Command used to load a the top released version from the CLI
mvn org.apache.maven.plugins:maven-install-plugin:install-file (... + correct plugin params ) 

Settings.xml File
		<profile>
			<id>apachesnapshots</id>
			<pluginRepositories>
	    		<pluginRepository>
	      			<id>ddddd</id>
	      			<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
	      			<releases>
	      				<enabled>false</enabled>
	      			</releases>
	    			<snapshots>
						<enabled>true</enabled>
						<updatePolicy>allways</updatePolicy>
						<checksumPolicy>ignore</checksumPolicy>
					</snapshots>
	    		</pluginRepository>
  			</pluginRepositories>
  		</profile>

Hope I gave you enough information to fix this error.  It's not major but does hinder me at this point cause now I have to manually place this plugin in everyone of my developers local repo.

-- 
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-2974) Unable to resolve & download snapshot versions from CLI

Posted by "Yves Van Steen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_94767 ] 

Yves Van Steen commented on MNG-2974:
-------------------------------------

Sorry, I seem to made it a major bug.  This wasn't my intent and now I am unable to change this.

> Unable to resolve & download snapshot versions from CLI
> -------------------------------------------------------
>
>                 Key: MNG-2974
>                 URL: http://jira.codehaus.org/browse/MNG-2974
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6
>         Environment: Windows
>            Reporter: Yves Van Steen
>
> When I try to use a snapshot released version of a plugin on the command line interface maven doesn't resolve these and download them from registered the plugin repositories. When using non snapshot versions it is not a problem to resolve and download them.  When I add the plugin (a snapshot version) to a POM and run it it does download it.  So the problem does not lie with the repo which is registered in the settings.xml in a profile which is active.  The problem just seems to lie with the resolving and dowloading part of the process.   Cause after the snapshot plugin is download using the POM way it does find the plugin when running it from the CLI.
> I first discovered this bug when trying to use the Maven install plugin.  Here are commands used in the process.  Reproding this way of use I got the same result when requesting other snapshot version of plugins that were not in the repository.
> Command used to load snapshot version from the CLI (this gives the error you find below)
> mvn org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file (... + correct plugin params ) 
> Command used to load a specific released version from the CLI
> mvn org.apache.maven.plugins:maven-install-plugin:2.1:install-file (... + correct plugin params ) 
> Command used to load a the top released version from the CLI
> mvn org.apache.maven.plugins:maven-install-plugin:install-file (... + correct plugin params ) 
> Settings.xml File
> 		<profile>
> 			<id>apachesnapshots</id>
> 			<pluginRepositories>
> 	    		<pluginRepository>
> 	      			<id>ddddd</id>
> 	      			<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
> 	      			<releases>
> 	      				<enabled>false</enabled>
> 	      			</releases>
> 	    			<snapshots>
> 						<enabled>true</enabled>
> 						<updatePolicy>allways</updatePolicy>
> 						<checksumPolicy>ignore</checksumPolicy>
> 					</snapshots>
> 	    		</pluginRepository>
>   			</pluginRepositories>
>   		</profile>
> Hope I gave you enough information to fix this error.  It's not major but does hinder me at this point cause now I have to manually place this plugin in everyone of my developers local repo.

-- 
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-2974) Unable to resolve & download snapshot versions from CLI

Posted by "Havard Bjastad (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=165912#action_165912 ] 

Havard Bjastad commented on MNG-2974:
-------------------------------------

We have the same problem, with Maven 2.0.8 and 2.0.9. I'm surprised to see that this bug has been untouched since it was registered in 2007 (!) Has anybody had a look at this?

> Unable to resolve & download snapshot versions from CLI
> -------------------------------------------------------
>
>                 Key: MNG-2974
>                 URL: http://jira.codehaus.org/browse/MNG-2974
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6
>         Environment: Windows
>            Reporter: Yves Van Steen
>             Fix For: 2.0.x
>
>
> When I try to use a snapshot released version of a plugin on the command line interface maven doesn't resolve these and download them from registered the plugin repositories. When using non snapshot versions it is not a problem to resolve and download them.  When I add the plugin (a snapshot version) to a POM and run it it does download it.  So the problem does not lie with the repo which is registered in the settings.xml in a profile which is active.  The problem just seems to lie with the resolving and dowloading part of the process.   Cause after the snapshot plugin is download using the POM way it does find the plugin when running it from the CLI.
> I first discovered this bug when trying to use the Maven install plugin.  Here are commands used in the process.  Reproding this way of use I got the same result when requesting other snapshot version of plugins that were not in the repository.
> Command used to load snapshot version from the CLI (this gives the error you find below)
> mvn org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file (... + correct plugin params ) 
> Command used to load a specific released version from the CLI
> mvn org.apache.maven.plugins:maven-install-plugin:2.1:install-file (... + correct plugin params ) 
> Command used to load a the top released version from the CLI
> mvn org.apache.maven.plugins:maven-install-plugin:install-file (... + correct plugin params ) 
> Settings.xml File
> 		<profile>
> 			<id>apachesnapshots</id>
> 			<pluginRepositories>
> 	    		<pluginRepository>
> 	      			<id>ddddd</id>
> 	      			<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
> 	      			<releases>
> 	      				<enabled>false</enabled>
> 	      			</releases>
> 	    			<snapshots>
> 						<enabled>true</enabled>
> 						<updatePolicy>allways</updatePolicy>
> 						<checksumPolicy>ignore</checksumPolicy>
> 					</snapshots>
> 	    		</pluginRepository>
>   			</pluginRepositories>
>   		</profile>
> Hope I gave you enough information to fix this error.  It's not major but does hinder me at this point cause now I have to manually place this plugin in everyone of my developers local repo.

-- 
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-2974) Unable to resolve & download snapshot versions from CLI

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

Brett Porter closed MNG-2974.
-----------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: 2.2.x (to be reviewed))
         Assignee: Brett Porter

This works for me in 2.0.9+

{code:xml}
<settings>
  <profiles>
    <profile>
      <id>profile</id>
      <pluginRepositories>
        <pluginRepository>
          <id>plugin</id>
          <url>http://localhost:7777/archiva/repository/test</url>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>profile</activeProfile>
  </activeProfiles>
</settings>
{code}

> Unable to resolve & download snapshot versions from CLI
> -------------------------------------------------------
>
>                 Key: MNG-2974
>                 URL: http://jira.codehaus.org/browse/MNG-2974
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6
>         Environment: Windows
>            Reporter: Yves Van Steen
>            Assignee: Brett Porter
>
> When I try to use a snapshot released version of a plugin on the command line interface maven doesn't resolve these and download them from registered the plugin repositories. When using non snapshot versions it is not a problem to resolve and download them.  When I add the plugin (a snapshot version) to a POM and run it it does download it.  So the problem does not lie with the repo which is registered in the settings.xml in a profile which is active.  The problem just seems to lie with the resolving and dowloading part of the process.   Cause after the snapshot plugin is download using the POM way it does find the plugin when running it from the CLI.
> I first discovered this bug when trying to use the Maven install plugin.  Here are commands used in the process.  Reproding this way of use I got the same result when requesting other snapshot version of plugins that were not in the repository.
> Command used to load snapshot version from the CLI (this gives the error you find below)
> mvn org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file (... + correct plugin params ) 
> Command used to load a specific released version from the CLI
> mvn org.apache.maven.plugins:maven-install-plugin:2.1:install-file (... + correct plugin params ) 
> Command used to load a the top released version from the CLI
> mvn org.apache.maven.plugins:maven-install-plugin:install-file (... + correct plugin params ) 
> Settings.xml File
> 		<profile>
> 			<id>apachesnapshots</id>
> 			<pluginRepositories>
> 	    		<pluginRepository>
> 	      			<id>ddddd</id>
> 	      			<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
> 	      			<releases>
> 	      				<enabled>false</enabled>
> 	      			</releases>
> 	    			<snapshots>
> 						<enabled>true</enabled>
> 						<updatePolicy>allways</updatePolicy>
> 						<checksumPolicy>ignore</checksumPolicy>
> 					</snapshots>
> 	    		</pluginRepository>
>   			</pluginRepositories>
>   		</profile>
> Hope I gave you enough information to fix this error.  It's not major but does hinder me at this point cause now I have to manually place this plugin in everyone of my developers local repo.

-- 
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] (MNG-2974) Unable to resolve & download snapshot versions from CLI

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MNG-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MNG-2974:
-------------------------------

    Description: 
When I try to use a snapshot released version of a plugin on the command line interface maven doesn't resolve these and download them from registered the plugin repositories. When using non snapshot versions it is not a problem to resolve and download them.  When I add the plugin (a snapshot version) to a POM and run it it does download it.  So the problem does not lie with the repo which is registered in the settings.xml in a profile which is active.  The problem just seems to lie with the resolving and dowloading part of the process.   Cause after the snapshot plugin is download using the POM way it does find the plugin when running it from the CLI.

I first discovered this bug when trying to use the Maven install plugin.  Here are commands used in the process.  Reproding this way of use I got the same result when requesting other snapshot version of plugins that were not in the repository.

Command used to load snapshot version from the CLI (this gives the error you find below)
mvn org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file (... + correct plugin params ) 

Command used to load a specific released version from the CLI
mvn org.apache.maven.plugins:maven-install-plugin:2.1:install-file (... + correct plugin params ) 

Command used to load a the top released version from the CLI
mvn org.apache.maven.plugins:maven-install-plugin:install-file (... + correct plugin params ) 

Settings.xml File
{code:xml}
<profile>
  <id>apachesnapshots</id>
  <pluginRepositories>
    <pluginRepository>
      <id>ddddd</id>
      <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
        <updatePolicy>allways</updatePolicy>
        <checksumPolicy>ignore</checksumPolicy>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>
</profile>{code}

Hope I gave you enough information to fix this error.  It's not major but does hinder me at this point cause now I have to manually place this plugin in everyone of my developers local repo.

  was:
When I try to use a snapshot released version of a plugin on the command line interface maven doesn't resolve these and download them from registered the plugin repositories. When using non snapshot versions it is not a problem to resolve and download them.  When I add the plugin (a snapshot version) to a POM and run it it does download it.  So the problem does not lie with the repo which is registered in the settings.xml in a profile which is active.  The problem just seems to lie with the resolving and dowloading part of the process.   Cause after the snapshot plugin is download using the POM way it does find the plugin when running it from the CLI.

I first discovered this bug when trying to use the Maven install plugin.  Here are commands used in the process.  Reproding this way of use I got the same result when requesting other snapshot version of plugins that were not in the repository.

Command used to load snapshot version from the CLI (this gives the error you find below)
mvn org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file (... + correct plugin params ) 

Command used to load a specific released version from the CLI
mvn org.apache.maven.plugins:maven-install-plugin:2.1:install-file (... + correct plugin params ) 

Command used to load a the top released version from the CLI
mvn org.apache.maven.plugins:maven-install-plugin:install-file (... + correct plugin params ) 

Settings.xml File
		<profile>
			<id>apachesnapshots</id>
			<pluginRepositories>
	    		<pluginRepository>
	      			<id>ddddd</id>
	      			<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
	      			<releases>
	      				<enabled>false</enabled>
	      			</releases>
	    			<snapshots>
						<enabled>true</enabled>
						<updatePolicy>allways</updatePolicy>
						<checksumPolicy>ignore</checksumPolicy>
					</snapshots>
	    		</pluginRepository>
  			</pluginRepositories>
  		</profile>

Hope I gave you enough information to fix this error.  It's not major but does hinder me at this point cause now I have to manually place this plugin in everyone of my developers local repo.

    
> Unable to resolve & download snapshot versions from CLI
> -------------------------------------------------------
>
>                 Key: MNG-2974
>                 URL: https://jira.codehaus.org/browse/MNG-2974
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6
>         Environment: Windows
>            Reporter: Yves Van Steen
>            Assignee: Brett Porter
>
> When I try to use a snapshot released version of a plugin on the command line interface maven doesn't resolve these and download them from registered the plugin repositories. When using non snapshot versions it is not a problem to resolve and download them.  When I add the plugin (a snapshot version) to a POM and run it it does download it.  So the problem does not lie with the repo which is registered in the settings.xml in a profile which is active.  The problem just seems to lie with the resolving and dowloading part of the process.   Cause after the snapshot plugin is download using the POM way it does find the plugin when running it from the CLI.
> I first discovered this bug when trying to use the Maven install plugin.  Here are commands used in the process.  Reproding this way of use I got the same result when requesting other snapshot version of plugins that were not in the repository.
> Command used to load snapshot version from the CLI (this gives the error you find below)
> mvn org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file (... + correct plugin params ) 
> Command used to load a specific released version from the CLI
> mvn org.apache.maven.plugins:maven-install-plugin:2.1:install-file (... + correct plugin params ) 
> Command used to load a the top released version from the CLI
> mvn org.apache.maven.plugins:maven-install-plugin:install-file (... + correct plugin params ) 
> Settings.xml File
> {code:xml}
> <profile>
>   <id>apachesnapshots</id>
>   <pluginRepositories>
>     <pluginRepository>
>       <id>ddddd</id>
>       <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
>       <releases>
>         <enabled>false</enabled>
>       </releases>
>       <snapshots>
>         <enabled>true</enabled>
>         <updatePolicy>allways</updatePolicy>
>         <checksumPolicy>ignore</checksumPolicy>
>       </snapshots>
>     </pluginRepository>
>   </pluginRepositories>
> </profile>{code}
> Hope I gave you enough information to fix this error.  It's not major but does hinder me at this point cause now I have to manually place this plugin in everyone of my developers local repo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-2974) Unable to resolve & download snapshot versions from CLI

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

Brett Porter updated MNG-2974:
------------------------------

    Fix Version/s:     (was: Reviewed Pending Version Assignment)
                   2.0.x
      Component/s: Artifacts and Repositories

> Unable to resolve & download snapshot versions from CLI
> -------------------------------------------------------
>
>                 Key: MNG-2974
>                 URL: http://jira.codehaus.org/browse/MNG-2974
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6
>         Environment: Windows
>            Reporter: Yves Van Steen
>             Fix For: 2.0.x
>
>
> When I try to use a snapshot released version of a plugin on the command line interface maven doesn't resolve these and download them from registered the plugin repositories. When using non snapshot versions it is not a problem to resolve and download them.  When I add the plugin (a snapshot version) to a POM and run it it does download it.  So the problem does not lie with the repo which is registered in the settings.xml in a profile which is active.  The problem just seems to lie with the resolving and dowloading part of the process.   Cause after the snapshot plugin is download using the POM way it does find the plugin when running it from the CLI.
> I first discovered this bug when trying to use the Maven install plugin.  Here are commands used in the process.  Reproding this way of use I got the same result when requesting other snapshot version of plugins that were not in the repository.
> Command used to load snapshot version from the CLI (this gives the error you find below)
> mvn org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file (... + correct plugin params ) 
> Command used to load a specific released version from the CLI
> mvn org.apache.maven.plugins:maven-install-plugin:2.1:install-file (... + correct plugin params ) 
> Command used to load a the top released version from the CLI
> mvn org.apache.maven.plugins:maven-install-plugin:install-file (... + correct plugin params ) 
> Settings.xml File
> 		<profile>
> 			<id>apachesnapshots</id>
> 			<pluginRepositories>
> 	    		<pluginRepository>
> 	      			<id>ddddd</id>
> 	      			<url>http://people.apache.org/repo/m2-snapshot-repository/</url>
> 	      			<releases>
> 	      				<enabled>false</enabled>
> 	      			</releases>
> 	    			<snapshots>
> 						<enabled>true</enabled>
> 						<updatePolicy>allways</updatePolicy>
> 						<checksumPolicy>ignore</checksumPolicy>
> 					</snapshots>
> 	    		</pluginRepository>
>   			</pluginRepositories>
>   		</profile>
> Hope I gave you enough information to fix this error.  It's not major but does hinder me at this point cause now I have to manually place this plugin in everyone of my developers local repo.

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