Hi, I deployed a custom archetype in the repository of my company. Unfortunately, I cant figure out how to retreive automatically that. I saw on JIRA I should use the remoteRepositories property but I have the same behaviour. Maven doesnt try to download the archetype from the 'local' repository but from ibiblio :-(
You could find after the log $ /cygdrive/c/java/legacy/apache-maven-2.0.8/bin/mvn.bat archetype:create -Darc hetypeGroupId=fr.common.maven -DarchetypeArtifactId=maven-custom-archetype - DarchetypeVersion=1.4 -DgroupId=test -DartifactId=test -DremoteRepositories=htt p://127.0.0.1/repos -DpomRemoteRepositories=http://127.0.0.1/repos [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] task-segment: [archetype:create] (aggregator-style) [INFO] ------------------------------------------------------------------------ Downloading: http://repo1.maven.org/maven2/test/wagon-http-shared/1.0-beta-2/wag on-http-shared-1.0-beta-2.pom Downloading: http://repo1.maven.org/maven2/test/wagon-http-shared/1.0-beta-2/wag on-http-shared-1.0-beta-2.pom [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus .velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [archetype:create] [INFO] Defaulting package to group ID: test [INFO] We are using command line specified remote repositories: http://127.0.0.1 /repos Downloading: http://repo1.maven.org/maven2/fr/common/maven/maven-custom-arche type/1.4/maven-custom-archetype-1.4.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. GroupId: fr.common.maven ArtifactId: maven-custom-archetype Version: 1.4 Reason: Unable to locate resource in repository Try downloading the file manually from the project website. Then, install it using the command: ... from the specified remote repositories: id0 (http://127.0.0.1/repos) Thanks in advance for your help Regards, Alexandre --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
