So the you is plural... Derek Chen-Becker wrote: > Well, to give proper credit, Tyler and Kris both did a lot of initial > work on the archetype and I just fixed a few minor things. > > Derek > > On Fri, Mar 13, 2009 at 5:49 PM, Charles F. Munat <[email protected] > <mailto:[email protected]>> wrote: > > > OH HELL YEAH! THANKYOUTHANKYOUTHANKYOU. You rock. > > Chas. > > Derek Chen-Becker wrote: > > OK, it built and deployed. I just confirmed that you can create > it with: > > > > mvn archetype:generate \ > > -DarchetypeRepository=http://scala-tools.org/repo-snapshots \ > > -DarchetypeGroupId=net.liftweb \ > > -DarchetypeArtifactId=lift-archetype-jpa-basic \ > > -DarchetypeVersion=1.1-SNAPSHOT > > > > Derek > > > > On Fri, Mar 13, 2009 at 12:54 PM, Derek Chen-Becker > > <[email protected] <mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]>>> wrote: > > > > Darnit. It helps if I make the jpa archetype a module of the > master > > lift project. Fixing now. > > > > Derek > > > > > > On Fri, Mar 13, 2009 at 12:52 PM, Derek Chen-Becker > > <[email protected] <mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]>>> wrote: > > > > 1.0, baby! > > > > http://scala-tools.org/mvnsites/scalajpa/ > > > > I've been too busy to put up a nice blog entry on it, but > it's > > on my todo list :( > > > > Derek > > > > > > On Fri, Mar 13, 2009 at 12:47 PM, Kris Nuttycombe > > <[email protected] > <mailto:[email protected]> <mailto:[email protected] > <mailto:[email protected]>>> > > wrote: > > > > > > I actually haven't deployed an archetype onto a remote > > repository > > before, but it sounds right. > > > > Has ScalaJPA become publicly available on scala-tools > yet? > > > > Kris > > > > On Fri, Mar 13, 2009 at 11:28 AM, Derek Chen-Becker > > <[email protected] <mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]>>> wrote: > > > OK, I'll go ahead and merge with master. If I > understand > > this whole process > > > correctly, Hudson should build the new project and > deploy > > it under snapshots > > > on scala-tools.org <http://scala-tools.org> > <http://scala-tools.org>. At that > > point we should be able to use the > > > archetype:generate > > -DremoteRepository=http://scala-tools.org/repo-snapshots > > > to generate, correct? > > > > > > Derek > > > > > > On Fri, Mar 13, 2009 at 12:01 PM, Kris Nuttycombe > > > <[email protected] > <mailto:[email protected]> > > <mailto:[email protected] > <mailto:[email protected]>>> wrote: > > >> > > >> Done. > > >> > > >> > > >> On Fri, Mar 13, 2009 at 10:41 AM, Derek Chen-Becker > > >> <[email protected] > <mailto:[email protected]> <mailto:[email protected] > <mailto:[email protected]>>> > > wrote: > > >> > Actually, I see that you did that against git. > Can you > > commit your > > >> > changes? > > >> > > > >> > Thanks, > > >> > > > >> > Derek > > >> > > > >> > On Fri, Mar 13, 2009 at 11:40 AM, Derek Chen-Becker > > >> > <[email protected] > <mailto:[email protected]> <mailto:[email protected] > <mailto:[email protected]>>> > > >> > wrote: > > >> >> > > >> >> Ah, I think I missed that part of the POM. Let > me fix > > that and commit > > >> >> the > > >> >> changes and then we can re-test. > > >> >> > > >> >> Thanks! > > >> >> > > >> >> Derek > > >> >> > > >> >> On Fri, Mar 13, 2009 at 11:11 AM, Kris Nuttycombe > > >> >> <[email protected] > <mailto:[email protected]> > > <mailto:[email protected] > <mailto:[email protected]>>> wrote: > > >> >>> > > >> >>> How are you installing the archetype as a plugin? > > After clearing out > > >> >>> the repo and running an install of the plugin > > project, I'm not seeing > > >> >>> it in my local archetype repository. > > >> >>> > > >> >>> I had to add this to the lift-archetype-jpa-basic > > pom.xml to get it to > > >> >>> install: > > >> >>> > > >> >>> diff --git a/lift-archetype-jpa-basic/pom.xml > > >> >>> b/lift-archetype-jpa-basic/pom.xml > > >> >>> index 453e2b3..fc0cf8c 100644 > > >> >>> --- a/lift-archetype-jpa-basic/pom.xml > > >> >>> +++ b/lift-archetype-jpa-basic/pom.xml > > >> >>> @@ -7,6 +7,7 @@ > > >> >>> <relativePath>../pom.xml</relativePath> > > >> >>> </parent> > > >> >>> > <artifactId>lift-archetype-jpa-basic</artifactId> > > >> >>> + <packaging>maven-archetype</packaging> > > >> >>> <name>${project.artifactId}</name> > > >> >>> <description>Archetype - blank JPA project for > > Lift</description> > > >> >>> <properties> > > >> >>> @@ -14,10 +15,18 @@ > > >> >>> <maven.test.skip>true</maven.test.skip> > > >> >>> </properties> > > >> >>> <build> > > >> >>> + <extensions> > > >> >>> + <extension> > > >> >>> + > <groupId>org.apache.maven.archetype</groupId> > > >> >>> + > <artifactId>archetype-packaging</artifactId> > > >> >>> + <version>2.0-alpha-4</version> > > >> >>> + </extension> > > >> >>> + </extensions> > > >> >>> <plugins> > > >> >>> <plugin> > > >> >>> > <artifactId>maven-archetype-plugin</artifactId> > > >> >>> <version>2.0-alpha-4</version> > > >> >>> + <extensions>true</extensions> > > >> >>> <configuration> > > >> >>> > > >> >>> > > > <archetypeArtifactId>${project.artifactId}</archetypeArtifactId> > > >> >>> > > <archetypeGroupId>${project.groupId}</archetypeGroupId> > > >> >>> > > >> >>> After that, the archetype installed and I was > able > > to generate it > > >> >>> correctly. I have not yet tested the resulting > > application, though. > > >> >>> > > >> >>> Kris > > >> >>> > > >> >>> > > >> >>> On Fri, Mar 13, 2009 at 9:46 AM, Derek > Chen-Becker > > >> >>> <[email protected] > <mailto:[email protected]> > > <mailto:[email protected] > <mailto:[email protected]>>> wrote: > > >> >>> > de...@rocky:/home/software/liftbook$ mvn -v > > >> >>> > Maven version: 2.0.9 > > >> >>> > Java version: 1.6.0_11 > > >> >>> > OS name: "linux" version: "2.6.27-11-generic" > > arch: "amd64" Family: > > >> >>> > "unix" > > >> >>> > > > >> >>> > This line in your output concerns me: > > >> >>> > > > >> >>> > [INFO] Using following parameters for creating > > >> >>> > OldArchetype:lift-jpa-archetype:0.11-SNAPSHOT > > >> >>> > > > >> >>> > The version in my archetype is > 1.1-SNAPSHOT, so I > > wonder if you're > > >> >>> > getting > > >> >>> > an older version in your repo. Could you try > > nuking your .m2/repo > > >> >>> > and > > >> >>> > see if > > >> >>> > you still get the same error? > > >> >>> > > > >> >>> > Derek > > >> >>> > > > >> >>> > > > >> >>> > On Fri, Mar 13, 2009 at 9:38 AM, Kris > Nuttycombe > > >> >>> > <[email protected] > <mailto:[email protected]> > > <mailto:[email protected] > <mailto:[email protected]>>> > > >> >>> > wrote: > > >> >>> >> > > >> >>> >> What version of Maven are you using? I'm > getting > > the following > > >> >>> >> errors: > > >> >>> >> > > >> >>> >> knuttyco...@knuttycombe-ubuntu:~/tmp$ mvn > > -DarchetypeCatalog=local > > >> >>> >> archetype:generate > > >> >>> >> [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] No archetype defined. Using > > maven-archetype-quickstart > > >> >>> >> > > > (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) > > >> >>> >> Choose archetype: > > >> >>> >> 1: local -> lift-jpa-archetype > (lift-jpa-archetype) > > >> >>> >> Choose a number: (1): > > >> >>> >> Choose archetype: > > >> >>> >> 1: local -> lift-jpa-archetype > (lift-jpa-archetype) > > >> >>> >> Choose a number: (1): 1 > > >> >>> >> Define value for groupId: : com.gaiam.gcsi > > >> >>> >> Define value for artifactId: : jpa-lift > > >> >>> >> Define value for version: 1.0-SNAPSHOT: : > > >> >>> >> Define value for package: : com.gaiam.gcsi > > >> >>> >> Confirm properties configuration: > > >> >>> >> groupId: com.gaiam.gcsi > > >> >>> >> artifactId: jpa-lift > > >> >>> >> version: 1.0-SNAPSHOT > > >> >>> >> package: com.gaiam.gcsi > > >> >>> >> Y: : Y > > >> >>> >> [INFO] > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > ---------------------------------------------------------------------------- > > >> >>> >> [INFO] Using following parameters for creating > > OldArchetype: > > >> >>> >> lift-jpa-archetype:0.11-SNAPSHOT > > >> >>> >> [INFO] > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > ---------------------------------------------------------------------------- > > >> >>> >> [INFO] Parameter: groupId, Value: > com.gaiam.gcsi > > >> >>> >> [INFO] Parameter: packageName, Value: > com.gaiam.gcsi > > >> >>> >> [INFO] Parameter: package, Value: > com.gaiam.gcsi > > >> >>> >> [INFO] Parameter: artifactId, Value: jpa-lift > > >> >>> >> [INFO] Parameter: basedir, Value: > > /home/knuttycombe/tmp > > >> >>> >> [INFO] Parameter: version, Value: 1.0-SNAPSHOT > > >> >>> >> [INFO] ********************* End of debug info > > from resources from > > >> >>> >> generated POM *********************** > > >> >>> >> [ERROR] ResourceManager : unable to find > resource > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > 'archetype-resources/webapp/src/main/webapp/templates-hidden/default.html' > > >> >>> >> in any resource loader. > > >> >>> >> [ERROR] Failed to generate project from > the old > > archetype > > >> >>> >> > > > org.apache.maven.archetype.exception.ArchetypeGenerationFailure: > > >> >>> >> Failed to generate project from the old > archetype > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.archetype.generator.DefaultArchetypeGenerator.processOldArchetype(DefaultArchetypeGenerator.java:272) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:145) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:290) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.archetype.DefaultArchetype.generateProjectFromArchetype(DefaultArchetype.java:75) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:185) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) > > >> >>> >> at > > >> >>> >> > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) > > >> >>> >> at > > >> >>> >> > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) > > >> >>> >> at > > org.apache.maven.cli.MavenCli.main(MavenCli.java:287) > > >> >>> >> at > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > >> >>> >> Method) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > >> >>> >> at > > java.lang.reflect.Method.invoke(Method.java:597) > > >> >>> >> at > > >> >>> >> > > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > >> >>> >> at > > >> >>> >> > > > org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > > >> >>> >> at > > org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > >> >>> >> Caused by: > > >> >>> >> > > >> >>> >> > > > org.apache.maven.archetype.old.ArchetypeTemplateProcessingException: > > >> >>> >> Error merging velocity templates > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.archetype.old.DefaultOldArchetype.processTemplate(DefaultOldArchetype.java:911) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.archetype.old.DefaultOldArchetype.processTemplate(DefaultOldArchetype.java:748) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.archetype.old.DefaultOldArchetype.processResources(DefaultOldArchetype.java:804) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.archetype.old.DefaultOldArchetype.processTemplates(DefaultOldArchetype.java:701) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.archetype.old.DefaultOldArchetype.createArchetype(DefaultOldArchetype.java:337) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.archetype.generator.DefaultArchetypeGenerator.processOldArchetype(DefaultArchetypeGenerator.java:255) > > >> >>> >> ... 22 more > > >> >>> >> Caused by: > > org.apache.velocity.exception.ResourceNotFoundException: > > >> >>> >> Unable to find resource > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > 'archetype-resources/webapp/src/main/webapp/templates-hidden/default.html' > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:452) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:335) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:498) > > >> >>> >> at > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > > org.apache.maven.archetype.old.DefaultOldArchetype.processTemplate(DefaultOldArchetype.java:905) > > >> >>> >> ... 27 more > > >> >>> >> [INFO] > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > ------------------------------------------------------------------------ > > >> >>> >> [ERROR] BUILD FAILURE > > >> >>> >> [INFO] > > >> >>> >> > > >> >>> >> > > >> >>> >> > > > ------------------------------------------------------------------------ > > >> >>> >> [INFO] : > > >> >>> >> > > > org.apache.maven.archetype.exception.ArchetypeGenerationFailure: > > >> >>> >> Failed to generate project from the old > archetype > > >> >>> >> Failed to generate project from the old > archetype > > >> >>> >> > > >> >>> >> > > >> >>> >> On Fri, Mar 13, 2009 at 9:09 AM, Derek > Chen-Becker > > >> >>> >> <[email protected] > <mailto:[email protected]> > > <mailto:[email protected] > <mailto:[email protected]>>> wrote: > > >> >>> >> > Would anyone like to look at the > jpaarchetype > > branch before I > > >> >>> >> > merge > > >> >>> >> > it? > > >> >>> >> > > > >> >>> >> > Derek > > >> >>> >> > > > >> >>> >> > > > > >> >>> >> > > > >> >>> >> > > >> >>> >> Here's my version info: > > >> >>> >> > > >> >>> >> knuttyco...@knuttycombe-ubuntu:~/tmp$ mvn -v > > >> >>> >> Maven version: 2.0.9 > > >> >>> >> Java version: 1.6.0_10 > > >> >>> >> OS name: "linux" version: "2.6.27-11-generic" > > arch: "i386" Family: > > >> >>> >> "unix" > > >> >>> >> > > >> >>> >> > > >> >>> > > > >> >>> > > > >> >>> > > > > >> >>> > > > >> >>> > > >> >>> > > >> >> > > >> > > > >> > > > >> > > > > >> > > > >> > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
