Hi,
   
  I've installed the Archiba both in office and at home. When I run at home, 
everything is OK. When I do the same in office, I still have problem by 
downloading the 
"http://sap-dev:8080/archiva/repository/internal/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom";
 though I can access this file with the browser. 
   
  The mirror in my "settings.xml" looks as follow:
  ...
  <mirror>
  <id>MyMirrorId</id>
  <mirrorOf>*</mirrorOf>
  <name>Dependencies for DKV Projects</name>
  <url>http://sap-dev:8080/archiva/repository/internal</url>
  </mirror>
  ...
   
  Here is the error message:
   
  E:\Projekte>mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=Test
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
Downloading: 
http://sap-dev:8080/archiva/repository/internal/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
  GroupId: org.apache.maven.archetype
ArtifactId: maven-archetype
Version: 1.0-alpha-7
  Reason: Unable to download the artifact from any repository
    org.apache.maven.archetype:maven-archetype:pom:1.0-alpha-7
  from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
  
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Jan 09 13:05:50 CET 2008
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------
  E:\Projekte>
   
   
   
   
   
   
  **********************
   
  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: [email protected]
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]


       
---------------------------------
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie“s mit 
dem  neuen Yahoo! Mail. 

Reply via email to