Afaik, that is because with "normal" artifacts you are looking for 
com.example:example:1.0 from which a complete url to the pom and jar files can 
be created. With plugins you are looking for 
org.apache.maven.plugins:maven-example-plugin:LATEST for which there should be 
some checking in the metadata.xml on the remote server, which you don't have.

To have a quick solution (and it is always best practice), create a 
pluginmanagement in your pom file and version each plugin you use. It is also 
better for reproducible builds. You don't want a tag to break because one of 
the plugins the build uses is updated.

Hth,

Nick Stolwijk


-----Original Message-----
From: Thomas Chang [mailto:[EMAIL PROTECTED]
Sent: Fri 1/4/2008 4:03 PM
To: Maven Users List
Subject: RE: A question about using Mirrors for Repositories
 
You are right. I use the local repository on the server machine as a remote 
repository to my local client.
   
  But I wonder why the other jars can be downloaded except those of
"org\apache\maven\plugins"?

   
  ****************************************
   
  How did the artifacts get at your remote repository. (Your server). Do
 you use a maven mirror/proxy, like archiva or artifactory or are you
 using a local repository on the server. (Which is populated by running
 mvn commands on the server)

If you use the second, it is not a real remote repository and then you
 notice things like this. (Also not updating of snapshots on your own
 local repository).

Please take a look at archiva or artifactory for your remote
 repository. It is much easier in use then a remote "local repository".

Hth,

Nick Stolwijk


-----Original Message-----
From: Thomas Chang [mailto:[EMAIL PROTECTED]
Sent: Fri 1/4/2008 2:50 PM
To: users@maven.apache.org
Subject: Re: A question about using Mirrors for Repositories
 
The mirror is the repository on the remote server machine. What
 metadata files should I use? 
   
  From this mirror I can download all the jars except those of
 "org\apache\maven\plugins".
   
   
   
  ********************************
  Looks like you are missing some metadata files in the mirror. How did
you populate the mirror?

   
  > Hi all,
>
>   I have a mirror in my "settings.xml" as follow:
>
>   ...
>   <mirror>
> <id>MyMirrorId</id>
> <mirrorOf>*</mirrorOf>
> <name>Dependencies for DKV Projects</name>
> <url>file:////sap-dev/CVSREPO/CvsMaven</url>
> </mirror>
> ...
>
>   I do so because I want to download the dependencies from the
 repository on the server machine. And this runs in most case OK. But
 in
 somecase it doesn't work. For example when I run "mvn clean", I got
 error as
 follow. But the Jar "maven-archetype-quickstart-1.0.jar" is on the
 repository on the server machine. I have copy this jar into the local
 repository. After that the "mvn clean" process can go on, i.e., the
 other
 jars can be downloaded from the server repository.
>
>   Such a problem happends when I run "mvn eclipse:eclipse". I have to
 copy the "maven-eclipse-plugin-2.4.jar" into the local repository.
>
>   Somebody knows why?
>
>   Regards
>
>   Thomas
>
>   ************************
>   [ERROR] BUILD ERROR
> [INFO]

 ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>   GroupId: org.apache.maven.archetypes
> ArtifactId: maven-archetype-quickstart
> Version: RELEASE
>   Reason: Unable to determine the release version
>   Try downloading the file manually from the project website.
>   Then, install it using the command:
>     mvn install:install-file -DgroupId=org.apache.maven.archetypes
 -DartifactId=
> maven-archetype-quickstart \
>         -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the
 file there:
>   mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes
 -DartifactId=mave
> n-archetype-quickstart \
>         -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \
>          -Durl=[url] -DrepositoryId=[id]
>
>   org.apache.maven.archetypes:maven-archetype-quickstart:jar:RELEASE
>
>   [INFO]

 ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]

 ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Fri Jan 04 11:03:38 CET 2008
> [INFO] Final Memory: 4M/8M
> [INFO]

 ------------------------------------------------------------------------


       
---------------------------------
Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. 

Reply via email to