the default central repository for maven 2 is not ibiblio?

2006-09-27 Thread Cheng-Yang.Tang
Hi,

I thought the major central repository for maven 2 is
http://www.ibiblio.org/maven2
but in fact the hard-coded central repository is
http://repo1.maven.org/maven2.  And I have to specify the ibiblio one as
a mirror if I want to use it.  Is it meant to be like that? or is it a
bug to fix?

Cheers,   

Louis


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



archetype plugin can't fetch archetype from my own repository

2006-09-27 Thread Cheng-Yang.Tang
Hi, 

I create my own artifacts and archetypes, and deploy them into my own
repository.  The repository is specified in settings.xml.  Maven can get
artifacts from the repository, but not the archetype: 

mvn archetype:create -DgroupId=helloworld -DartifactId=helloworld
-DarchetypeGroupId=uk.ac.ncl.cs.instantsoap
-DarchetypeArtifactId=archetype-escience-tool
-DarchetypeVersion=1.0-SNAPSHOT


the error message is as follows:
===
[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: uk.ac.ncl.cs.instantsoap
ArtifactId: archetype-escience-tool
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=uk.ac.ncl.cs.instantsoap
-DartifactId=archetype-escience-tool \
-Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file


  uk.ac.ncl.cs.instantsoap:archetype-escience-tool:jar:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
===


However, when I specified
-DremorteRepositories=http://deanmoor.ncl.ac.uk/fluxions/repo-snapshot; 
It works properly.  I think it's because maven does not use the
repositories specified in settings.xml when fetching archetypes.  


My settings.xml is as follows:
===
  profiles
profile
  idinstantsoap/id
  activation
activeByDefaulttrue/activeByDefault
  /activation
  repositories
repository
  idcodehaus/id
  nameCodehaus maven repository/name
  urlhttp://repository.codehaus.org//url
/repository
repository
  idinstantsoap-snapshot/id
  urlhttp://deanmoor.ncl.ac.uk/fluxions/repo-snapshot/url
/repository
repository
  idinstantsoap/id
  urlhttp://deanmoor.ncl.ac.uk/fluxions/repo/url
/repository
  /repositories
profile
  /profiles
==


Cheers,

Louis


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



Re: the default central repository for maven 2 is not ibiblio?

2006-09-27 Thread Cheng-Yang.Tang
Hi Yann,

Thanks very much for your explanation.

Louis
On Wed, 2006-09-27 at 18:56 +0200, Yann Le Du wrote:
 Hi Louis,
 
 http://repo1.maven.org/maven2/ is the official URL, but was once redirected
 to www.ibiblio.org/maven2/ . AFAIK, both repos are identical, so you don't
 need  to specify any mirror. Though, if you want to use mirrors, you can
 check those : http://maven.apache.org/guides/mini/guide-mirror-settings.html
 
 - Yann
 
 2006/9/27, Cheng-Yang.Tang  [EMAIL PROTECTED]:
 
  Hi,
 
  I thought the major central repository for maven 2 is
  http://www.ibiblio.org/maven2
  but in fact the hard-coded central repository is
  http://repo1.maven.org/maven2.  And I have to specify the ibiblio one as
  a mirror if I want to use it.  Is it meant to be like that? or is it a
  bug to fix?
 
  Cheers,
 
  Louis
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: archetype plugin can't fetch archetype from my own repository

2006-09-27 Thread Cheng-Yang.Tang
Hi Wendy,

Thanks very much for your explanation.

Louis

On Wed, 2006-09-27 at 07:44 -0700, Wendy Smoak wrote:
 On 9/27/06, Cheng-Yang.Tang [EMAIL PROTECTED] wrote:
 
  I create my own artifacts and archetypes, and deploy them into my own
  repository.  The repository is specified in settings.xml.  Maven can get
  artifacts from the repository, but not the archetype:
 ...
  However, when I specified
  -DremorteRepositories=http://deanmoor.ncl.ac.uk/fluxions/repo-snapshot;
  It works properly.  I think it's because maven does not use the
  repositories specified in settings.xml when fetching archetypes.
 
 Correct.  The 'remoteRepositories' attribute was added in response to
 this issue:
http://jira.codehaus.org/browse/ARCHETYPE-1
 
 If you search the list archives for posts from Jason van Zyl, I'm
 pretty sure he explained why Archetype does not use settings.xml.  I
 don't remember if this is something that will be changed in the future
 or if it's like that for a reason.
 


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