RE: A question about using Mirrors for Repositories

2008-01-09 Thread Thomas Chang
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
  idMyMirrorId/id
  mirrorOf*/mirrorOf
  nameDependencies for DKV Projects/name
  urlhttp://sap-dev:8080/archiva/repository/internal/url
  /mirror
  ...
   
  Here is the error message:
   
  E:\Projektemvn 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: 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
 idMyMirrorId/id
 mirrorOf*/mirrorOf
 nameDependencies for DKV Projects/name
 urlfile: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]


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

RE: A question about using Mirrors for Repositories

2008-01-09 Thread Thomas Chang
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
  idMyMirrorId/id
  mirrorOf*/mirrorOf
  nameDependencies for DKV Projects/name
  urlhttp://sap-dev:8080/archiva/repository/internal/url
  /mirror
  ...
   
  Here is the error message:
   
  E:\Projektemvn 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: 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
 idMyMirrorId/id
 mirrorOf*/mirrorOf
 nameDependencies for DKV Projects/name
 urlfile: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. 

RE: A question about using Mirrors for Repositories

2008-01-05 Thread Thomas Chang
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

I am going to use the archiva. But the archiva 1.0 needs jdk 1.5. That means I 
have to set the JAVA_HOME to point to the jdk 1.5. But many of my programms use 
jdk 1.4 and I can't change the JAVA_HOME to point to the jdk 1.4
   
  Any sujestion?
   
  *
-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.


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

Re: A question about using Mirrors for Repositories

2008-01-05 Thread Heinrich Nirschl
On Jan 5, 2008 10:46 AM, Thomas Chang [EMAIL PROTECTED] wrote:
 I am going to use the archiva. But the archiva 1.0 needs jdk 1.5. That means 
 I have to set the JAVA_HOME to point to the jdk 1.5. But many of my programms 
 use jdk 1.4 and I can't change the JAVA_HOME to point to the jdk 1.4

   Any sujestion?


I do not really see the problem. You will have one archiva instance
for the whole team that runs under a different account on the server.
Its easy to setup JAVA_HOME differently on the server and on the
developer machines. Even if you share a machine, the environment
variables can be set up per account or a little shell wrapper can do
the trick.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A question about using Mirrors for Repositories

2008-01-05 Thread Wendy Smoak
On Jan 5, 2008 2:46 AM, Thomas Chang [EMAIL PROTECTED] wrote:

 I am going to use the archiva. But the archiva 1.0 needs jdk 1.5. That means 
 I have to set the JAVA_HOME to point to the jdk 1.5. But many of my programms 
 use jdk 1.4 and I can't change the JAVA_HOME to point to the jdk 1.4

   Any sujestion?

Archiva has separate mailing lists, please come join us if you have
more questions... http://maven.apache.org/archiva/mail-lists.html

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A question about using Mirrors for Repositories

2008-01-04 Thread Heinrich Nirschl
On Jan 4, 2008 11:42 AM, Thomas Chang [EMAIL PROTECTED] wrote:
 Hi all,

   I have a mirror in my settings.xml as follow:

   ...
   mirror
 idMyMirrorId/id
 mirrorOf*/mirrorOf
 nameDependencies for DKV Projects/name
 urlfile: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] 
 




 -
 Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.

Looks like you are missing some metadata files in the mirror. How did
you populate the mirror?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A question about using Mirrors for Repositories

2008-01-04 Thread Thomas Chang
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
 idMyMirrorId/id
 mirrorOf*/mirrorOf
 nameDependencies for DKV Projects/name
 urlfile: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]
 




 -
 Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.



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

RE: A question about using Mirrors for Repositories

2008-01-04 Thread nicklist
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
 idMyMirrorId/id
 mirrorOf*/mirrorOf
 nameDependencies for DKV Projects/name
 urlfile: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]
 




 -
 Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.



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



RE: A question about using Mirrors for Repositories

2008-01-04 Thread Thomas Chang
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
 idMyMirrorId/id
 mirrorOf*/mirrorOf
 nameDependencies for DKV Projects/name
 urlfile: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. 

Re: A question about using Mirrors for Repositories

2008-01-04 Thread Heinrich Nirschl
In some situations maven needs additional information for resolving
artifacts. This info is stored in the metadata files in the
repository. Since the filenames of these metadata files are different
in local and remote repositories it does not work to misuse a local
repository as a remote one.

It is mere luck, that sometimes the download works in spite of that.

As Nick already suggested, consider to install a repository manager.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A question about using Mirrors for Repositories

2008-01-04 Thread nicklist
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
 idMyMirrorId/id
 mirrorOf*/mirrorOf
 nameDependencies for DKV Projects/name
 urlfile: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.