Ah. blank-single never existed under Lift 1.0, so I updated the POM to track Lift's snapshot. The only changes you should have to make to use the archetype under 1.0 is to modify the POM dependencies and set the scala.version property to 2.7.3. I believe we're looking at doing a bugfix release of 1.0, so I may be able to backport the JPA archetypes to 1.0 with proper POMs.
Derek On Thu, Apr 30, 2009 at 8:45 AM, Tim Pigden <tim.pig...@optrak.co.uk> wrote: > Derek, > > Note jpa-blank-single. I actually pasted the text from pdf into local bat > file so I could re-run. I did that last week, though I don’t think you’ve > changed anything in that part of the book since. Only used lift from maven > (in fact, to be honest I can’t claim to have used “lift” at all yet – still > compiling and running tests with my data model under junit). > > > > mvn archetype:generate > -DarchetypeRepository=http://scala-tools.org/repo-snapshots > -DarchetypeGroupId=net.liftweb > -DarchetypeArtifactId=lift-archetype-jpa-blank-single > -DarchetypeVersion=1.1-SNAPSHOT<http://scala-tools.org/repo-snapshots%0A-DarchetypeGroupId=net.liftweb%0A-DarchetypeArtifactId=lift-archetype-jpa-blank-single%0A-DarchetypeVersion=1.1-SNAPSHOT>-DgroupId=com.foo.jpaweb > -DartifactId=addresses -Dversion=1.0-SNAPSHOT > > > > Tim > > > > > > *From:* the-lift-b...@googlegroups.com [mailto: > the-lift-b...@googlegroups.com] *On Behalf Of *Derek Chen-Becker > *Sent:* 30 April 2009 15:23 > *To:* the-lift-b...@googlegroups.com; liftweb > *Subject:* [TheLiftBook:214] Re: confused about version of lift referenced > in book > > > > That's really weird. The version in Git uses 1.0. I just used this command: > > mvn archetype:generate -DarchetypeRepository= > http://scala-tools.org/repo-snapshots-DarchetypeArtifactId=lift-archetype-jpa-basic > -DarchetypeVersion=1.1-SNAPSHOT -DgroupId=com.foo.jpaweb > -DartifactId=JPADemo -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=net.liftweb > > And I'm getting Lift 1.0: > > <dependency> > <groupId>net.liftweb</groupId> > <artifactId>lift-webkit</artifactId> > <version>1.0</version> > </dependency> > <dependency> > <groupId>net.liftweb</groupId> > <artifactId>lift-util</artifactId> > <version>1.0</version> > </dependency> > > Can you give me the exact command line you used? Have you built Lift > locally, or are you just pulling from the repo? > > Derek > > On Thu, Apr 30, 2009 at 6:45 AM, TSP <tim.pig...@optrak.co.uk> wrote: > > > I'm a bit confused about whether the examples in JPA chapter are using > lift 1.1 snapshot or 1.0 which may be due to my lack of maven > experience but > DarchetypeArtifactId=lift-archetype-jpa-basic \ > -DarchetypeVersion=1.1-SNAPSHOT \ > -DgroupId=com.foo.jpaweb \ > -DartifactId=JPADemo \ > -Dversion=1.0-SNAPSHOT > > when run previously was producing a pom with > <dependency> > <groupId>net.liftweb</groupId> > <artifactId>lift-webkit</artifactId> > <version>1.0</version> > </dependency> > > but now my pom has > <dependency> > <groupId>net.liftweb</groupId> > <artifactId>lift-webkit</artifactId> > <version>1.1-SNAPSHOT</version> > </dependency> > > so it would seem I'm using 1.1 now. But 1.1 is still far from finished > I thought. > Is this all intentional? > Tim > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---