I thought I'd fixed the problem but it's Still not working when I execute on one of my development boxes. I can execute the command from the system with the archiva repository, but not on a networked machine:
D:\src\workspace-Grails>mvn archetype:generate -DarchetypeGroupId=org.grails -DarchetypeArtifactId=grails-maven-archetype -DarchetypeVersion=1.0-SNAPSHOT -DarchetypeRepository=http://snapshots.repository.codehaus.org -DgroupId=com.summitbid -DartifactId=TestGrailsMavenArchetype mvn archetype:generate -DarchetypeGroupId=org.grails -DarchetypeArtifactId=grails-maven-archetype -DarchetypeVersion=1.0-SNAPSHOT -DarchetypeRepository=http://snapshots.repository.codehaus.org -DgroupId=com.summitbid -DartifactId=TestGrailsMavenArchetype [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu Nov 13 06:55:59 MST 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------ The archetype jar is in my snapshots managed repository, so i'm baffled. from my development box's settings.xml: <mirror> <id>internal</id> <mirrorOf>*</mirrorOf> <url>http://192.168.2.2:8090/archiva/repository/internal</url> <name>Archiva Managed Internal Repository</name> </mirror> <mirror> <id>snapshots</id> <mirrorOf>*</mirrorOf> <url>http://192.168.2.2:8090/archiva/repository/shapshots</url> <name>Archiva Managed Snapshot Repository</name> </mirror> In my archiva config, I have to managed repositories and a proxy connector set up for the grails.org snapshots Grails.org Snapshot Repository Identifier grails.snapshots Name Grails.org Snapshot Repository URL http://snapshots.repository.codehaus.org/ Type Maven 2.x Repository and Proxy Connector grails.snapshots Grails.org Snapshot Repository http://snapshots.repository.codehaus.org/ Expand Network Proxy: (Direct Connection) Policies: propagate-errors-on-update artifact not already present propagate-errors queue error releases hourly snapshots daily checksum fix cache-failures no Any ideas? On Wed, Nov 12, 2008 at 2:05 PM, Ed <[EMAIL PROTECTED]> wrote: > This seems to be the issue, actually. I added the repository using the > archiva web ui: > Grails.org Snapshot Repository > Identifier grails.snapshots > Name Grails.org Snapshot Repository > URL http://snapshots.repository.codehaus.org/ > Type Maven 2.x Repository > > And it shows up in the main archiva.xml file. Cool. > > But I don't see how to enable snapshots...It looks like it's a matter > of editing the archiva.xml file to enable snapshots for that > repository, and other's I guess. > > One thing that's odd is that it seem to work f for the octo repos... > Forge Snapshot Repository > Identifier mtg > Name Forge Snapshot Repository > URL http://forge.octo.com/archiva/repository/mtg-snapshots > Type Maven 2.x Repository > > Forge Snapshot Repository > Identifier mtg.snapshots > Name Forge Snapshot Repository > URL http://forge.octo.com/archiva/repository/mtg-snapshots > Type Maven 2.x Repository > > Anyway, I'm zeroing in I think... > > > > On Tue, Nov 11, 2008 at 7:41 AM, Pablo Saavedra > <[EMAIL PROTECTED]> wrote: >> IIRC, you can add proxied repositories, and you have to make sure spnapshots >> are enabled in them. >> >> Good luck with it. >> >> 2008/11/11 Ed <[EMAIL PROTECTED]> >> >>> Same result with: >>> mvn -U archetype:generate -DarchetypeGroupId=org.grails >>> -DarchetypeArtifactId=grails-maven-archetype >>> -DarchetypeVersion=1.0-SNAPSHOT >>> -DarchetypeRepository=http://snapshots.repository.codehaus.org >>> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype >>> >>> However, I'm suspecting that my shiny new archiva repos may not be >>> configured correctly, because I don't see any SNAPSHOT type jars in >>> there. >>> >>> I think SNAPSHOT jars go in the snapshot repos rather then the >>> internal, and therefore may not be getting downloaded and installed >>> correctly... >>> >>> When I say "shiny new" I really mean, I don't fully understand how >>> it's supposed to work yet. >>> >>> I'll do some more work on this and let you know how it works out. >>> >>> >>> >>> On Tue, Nov 11, 2008 at 6:58 AM, Pablo Saavedra >>> <[EMAIL PROTECTED]> wrote: >>> > Have you tried using the -U flag? >>> > >>> > 2008/11/11 Ed <[EMAIL PROTECTED]> >>> > >>> >> I tried the archetype, and had no luck. I already have grails >>> >> installed (of course) but wanted to give it a try to take it for a >>> >> spin: >>> >> >>> >> D:\src\workspace-Grails> mvn archetype:generate >>> >> -DarchetypeGroupId=org.grails >>> >> -DarchetypeArtifactId=grails-maven-archetype >>> >> -DarchetypeVersion=1.0-SNAPSHOT >>> >> -DarchetypeRepository=http://snapshots.repository.codehaus.org >>> >> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype >>> >> mvn archetype:generate -DarchetypeGroupId=org.grails >>> >> -DarchetypeArtifactId=grails-maven-archetype >>> >> -DarchetypeVersion=1.0-SNAPSHOT >>> >> -DarchetypeRepository=http://snapshots.repository.codehaus.org >>> >> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype >>> >> [INFO] Scanning for projects... >>> >> [INFO] Searching repository for plugin with prefix: 'archetype'. >>> >> [INFO] >>> >> ------------------------------------------------------------------------ >>> >> [INFO] Building Maven Default Project >>> >> [INFO] task-segment: [archetype:generate] (aggregator-style) >>> >> [INFO] >>> >> ------------------------------------------------------------------------ >>> >> [INFO] Preparing archetype:generate >>> >> [INFO] No goals needed for project - skipping >>> >> [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:generate] >>> >> [INFO] Generating project in Interactive mode >>> >> [INFO] Archetype defined by properties >>> >> [INFO] snapshot org.grails:grails-maven-archetype:1.0-SNAPSHOT: >>> >> checking for updates from grails-maven-archetype-repo >>> >> Downloading: >>> >> >>> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar >>> >> Downloading: >>> >> >>> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar >>> >> [INFO] >>> >> ------------------------------------------------------------------------ >>> >> [ERROR] BUILD FAILURE >>> >> [INFO] >>> >> ------------------------------------------------------------------------ >>> >> [INFO] The desired archetype does not exist >>> >> (org.grails:grails-maven-archetype:1.0-SNAPSHOT) >>> >> [INFO] >>> >> ------------------------------------------------------------------------ >>> >> [INFO] For more information, run Maven with the -e switch >>> >> [INFO] >>> >> ------------------------------------------------------------------------ >>> >> [INFO] Total time: 4 seconds >>> >> [INFO] Finished at: Tue Nov 11 05:54:44 MST 2008 >>> >> [INFO] Final Memory: 8M/14M >>> >> [INFO] >>> >> ------------------------------------------------------------------------ >>> >> >>> >> >>> >> >>> >> >>> >> On Sat, Nov 8, 2008 at 4:06 AM, Peter Ledbrook <[EMAIL PROTECTED]> >>> >> wrote: >>> >> > >>> >> > Hi, >>> >> > >>> >> > I have been working on the Maven integration for Grails, basically >>> >> > incorporating the Maven Grails Plugin and taking advantage of some >>> >> changes >>> >> > in Grails itself. There is now an archetype available that you can use >>> to >>> >> > create Grails projects without having to install Grails manually. The >>> >> > command line is: >>> >> > >>> >> > mvn archetype:generate -DarchetypeGroupId=org.grails \ >>> >> > -DarchetypeArtifactId=grails-maven-archetype \ >>> >> > -DarchetypeVersion=1.0-SNAPSHOT \ >>> >> > -DarchetypeRepository=http://snapshots.repository.codehaus.org \ >>> >> > -DgroupId=example -DartifactId=my-app \ >>> >> > >>> >> > Once you have a project, you can execute the standard phases: "clean", >>> >> > "compile", "test", and "package". It's a bit rough around the edges to >>> >> say >>> >> > the least, so there might be a few problems. >>> >> > >>> >> > I'm interested in what people think and whether it plays ok with other >>> >> > plugins (I suspect mostly not). Issues should be raised as sub-tasks >>> of: >>> >> > >>> >> > http://jira.codehaus.org/browse/GRAILS-3547 >>> >> > >>> >> > Regards, >>> >> > >>> >> > Peter >>> >> > >>> >> > >>> >> > -- >>> >> > View this message in context: >>> >> >>> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20395006.html >>> >> > Sent from the Maven - Users mailing list archive at Nabble.com. >>> >> > >>> >> > >>> >> > --------------------------------------------------------------------- >>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> > For additional commands, e-mail: [EMAIL PROTECTED] >>> >> > >>> >> > >>> >> >>> >> >>> >> >>> >> -- >>> >> Ed >>> >> >>> >> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >>> >> >>> > >>> >>> >>> >>> -- >>> Ed >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> > > > > -- > Ed > -- Ed --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
