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>
      <id>instantsoap</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <repositories>
        <repository>
          <id>codehaus</id>
          <name>Codehaus maven repository</name>
          <url>http://repository.codehaus.org/</url>
        </repository>
        <repository>
          <id>instantsoap-snapshot</id>
          <url>http://deanmoor.ncl.ac.uk/fluxions/repo-snapshot</url>
        </repository>
        <repository>
          <id>instantsoap</id>
          <url>http://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]

Reply via email to