You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jose Vicente Nunez Zuleta <un...@stupidzombie.com> on 2012/01/16 23:19:53 UTC

mvn dependency:get trying to get artifact from internal repo instead of artifact

Hello All,

I'm trying to download an artifact from my release repository (called stupidzombie) but instead mvn tries to get it from the internal repository. Any ideas why the repoUrl is being twisted?'

The output of my attempts below.


Macintosh:walker josevnz$ mvn dependency:get -DrepoUrl=http://localhost:8080/archiva/repository/stupidzombie -Dartifact=com.stupidzombie:walker:0.1
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building walker 0.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.1:get (default-cli) @ walker ---
Downloading: http://localhost:8080/archiva/repository/internal/com/stupidzombie/walker/0.1/walker-0.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.668s
[INFO] Finished at: Mon Jan 16 17:16:55 EST 2012
[INFO] Final Memory: 5M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get (default-cli) on project walker: Couldn't download artifact: Failure to find com.stupidzombie:walker:jar:0.1 in http://localhost:8080/archiva/repository/internal/ was cached in the local repository, resolution will not be reattempted until the update interval of archiva.default has elapsed or updates are forced
[ERROR] 
[ERROR] Try downloading the file manually from the project website.
[ERROR] 
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=com.stupidzombie -DartifactId=walker -Dversion=0.1 -Dpackaging=jar -Dfile=/path/to/file
[ERROR] 
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=com.stupidzombie -DartifactId=walker -Dversion=0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR] 
[ERROR] 
[ERROR] com.stupidzombie:walker:jar:0.1
[ERROR] 
[ERROR] from the specified remote repositories:
[ERROR] archiva.default (http://localhost:8080/archiva/repository/internal/, releases=true, snapshots=false),
[ERROR] archiva.default (http://localhost:8080/archiva/repository/internal/, releases=true, snapshots=true)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Macintosh:walker josevnz$ 


Thanks!


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: mvn dependency:get trying to get artifact from internal repo instead of artifact

Posted by Jose Vicente Nunez Zuleta <un...@stupidzombie.com>.
I'll check that and will get back to you. Thanks for the help.

--Jose

On Jan 16, 2012, at 7:59 PM, Wayne Fay wrote:

>> I did indeed read the manual and even search the web for examples before
>> posting on this list; My mvn installation (3.0.3) doesn't:
>> 
>> * Recognize repositoryUrl, I get an 'repositoryUrl' for goal
>> org.apache.maven.plugins:maven-dependency-plugin:2.1:get are missing or
>> invalid'
>> * remoteRepositories is completely ignored
> 
> Your Maven logs shows you are using plugin version 2.1. The online
> plugin documentation is talking about version 2.4.
> 
> This most likely explains any disparities you have encountered. Use
> the "long form" of the plugin to be sure you are using the version you
> intend to use.
> 
> Wayne
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: mvn dependency:get trying to get artifact from internal repo instead of artifact

Posted by Wayne Fay <wa...@gmail.com>.
> I did indeed read the manual and even search the web for examples before
> posting on this list; My mvn installation (3.0.3) doesn't:
>
> * Recognize repositoryUrl, I get an 'repositoryUrl' for goal
> org.apache.maven.plugins:maven-dependency-plugin:2.1:get are missing or
> invalid'
> * remoteRepositories is completely ignored

Your Maven logs shows you are using plugin version 2.1. The online
plugin documentation is talking about version 2.4.

This most likely explains any disparities you have encountered. Use
the "long form" of the plugin to be sure you are using the version you
intend to use.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: mvn dependency:get trying to get artifact from internal repo instead of artifact

Posted by Jose Vicente Nunez Zuleta <un...@stupidzombie.com>.
Wayne,

I did indeed read the manual and even search the web for examples before posting on this list; My mvn installation (3.0.3) doesn't:

* Recognize repositoryUrl, I get an 'repositoryUrl' for goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get are missing or invalid'
* remoteRepositories is completely ignored

Macintosh:walker josevnz$ mvn dependency:get -DrepositoryUrl=http://localhost:8080/archiva/repository/stupidzombie -Dartifact=com.stupidzombie:walker:0.1
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building walker 0.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.1:get (default-cli) @ walker ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.560s
[INFO] Finished at: Mon Jan 16 17:35:35 EST 2012
[INFO] Final Memory: 5M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get (default-cli) on project walker: The parameters 'repositoryUrl' for goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get are missing or invalid -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException

I came with 'repoUrl' after seeing other users playing with it. That gets rid of the message above.

The original problem still remains, not sure why the plugin is failing back to the mirror URL.

--Jose


On Jan 16, 2012, at 5:30 PM, Wayne Fay wrote:

>> I'm trying to download an artifact from my release repository (called
>> stupidzombie) but instead mvn tries to get it from the internal repository.
>> Any ideas why the repoUrl is being twisted?'
>> 
>> Macintosh:walker josevnz$ mvn dependency:get
>> -DrepoUrl=http://localhost:8080/archiva/repository/stupidzombie
>> -Dartifact=com.stupidzombie:walker:0.1
> 
> As nicely as I can say it... did you Read The Fine Manual?
> https://maven.apache.org/plugins/maven-dependency-plugin/get-mojo.html
> 
> Also, where did you come up with -DrepoUrl? That doesn't appear to be
> a valid parameter for this plugin.
> 
> Wayne
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


Re: mvn dependency:get trying to get artifact from internal repo instead of artifact

Posted by Wayne Fay <wa...@gmail.com>.
> I'm trying to download an artifact from my release repository (called
> stupidzombie) but instead mvn tries to get it from the internal repository.
> Any ideas why the repoUrl is being twisted?'
>
> Macintosh:walker josevnz$ mvn dependency:get
> -DrepoUrl=http://localhost:8080/archiva/repository/stupidzombie
> -Dartifact=com.stupidzombie:walker:0.1

As nicely as I can say it... did you Read The Fine Manual?
https://maven.apache.org/plugins/maven-dependency-plugin/get-mojo.html

Also, where did you come up with -DrepoUrl? That doesn't appear to be
a valid parameter for this plugin.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org