You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by fy <fy...@gmail.cn> on 2007/01/19 09:16:27 UTC

About downloading artifacts from remote repositories

Hi,
I want download artifacts from my server so I modified my mirror:
<mirror>
      <id>maven</id>
      <mirrorOf>maven</mirrorOf>
      <name>maven</name>
      <url>http://10.10.100.22/maven</url>
 </mirror>

And I deployed junit-3.8.1.jar into server with runed deploy:deploy-file.
But it always downloaded the pom from  http://repo1.maven.org/maven2 when I
runned .

D:\workspace\maven_itms>mvn compile
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building maven_itms Maven Webapp
[INFO]    task-segment: [compile]
[INFO]
----------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom
145b downloaded
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://10.10.100.22/maven/junit/junit/3.8.1/junit-3.8.1.jar
118K downloaded
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Fri Jan 19 15:31:25 CST 2007
[INFO] Final Memory: 4M/9M
[INFO]
------------------------------------------------------------------------

why? and how I to do?


-- 
View this message in context: http://www.nabble.com/About-downloading-artifacts--from-remote-repositories-tf3038777s177.html#a8445554
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: About downloading artifacts from remote repositories

Posted by "Henry S. Isidro" <hi...@exist.com>.
On Friday, January 19, 2007 16:16, fy wrote:

Hi fy,

If you noticed, it downloaded the pom, which is a different file from a jar. 
If you want it to be downloaded from your repository, you have to install the 
pom file as well.

- Henry


>- Downloading:
> http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom 145b
> downloaded
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading: http://10.10.100.22/maven/junit/junit/3.8.1/junit-3.8.1.jar
> 118K downloaded
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 11 seconds
> [INFO] Finished at: Fri Jan 19 15:31:25 CST 2007
> [INFO] Final Memory: 4M/9M
> [INFO]
> ------------------------------------------------------------------------
>
> why? and how I to do?

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