Gents,
I've defined a custom artifact type which I've published in a separate
repository (not ibiblio) if I try and create the artifact with this call:
X:\some-dir>mvn archetype:create \
-DarchetypeGroupId=com.javaforge.maven-csharp \
-DarchetypeArtifactId=maven-archetype-dotnetexe \
-DarchetypeVersion=1.0.RC1
-DgroupId=your-group-id
-DartifactId=your-dotnet-library
I get this error:
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: your-group-id
Downloading:
http://repo1.maven.org/maven2/com/javaforge/maven-csharp/maven-archetype-dot
netexe/1.0.RC1/maven-archetype-dotnetexe-1.0.RC1.jar
<http://repo1.maven.org/maven2/com/javaforge/maven-csharp/maven-archetype-do
tnetexe/1.0.RC1/maven-archetype-dotnetexe-1.0.RC1.jar>
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2 <http://repo1.maven.org/maven2> )
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: com.javaforge.maven-csharp
ArtifactId: maven-archetype-dotnetexe
Version: 1.0.RC1
Reason: Unable to download the artifact from any repository
com.javaforge.maven-csharp:maven-archetype-dotnetexe:jar:1.0.RC1
from the specified remote repositories:
central (http://repo1.maven.org/maven2 <http://repo1.maven.org/maven2> )
[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Wed Feb 08 15:42:21 GMT 2006
[INFO] Final Memory: 4M/7M
[INFO]
----------------------------------------------------------------------------
I know that this archetype lives in my other repo and this works if I
manually install the artifact from source....
Any ideas?
Thanks,
Chris
Chris Stevenson
Dresdner Kleinwort Wasserstein
--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender. 3166
--------------------------------------------------------------------------------