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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
