I found this in the lift book and used it: mvn archetype:generate \ -DarchetypeRepository=http://scala-tools.org/repo-snapshots \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-jpa-basic \ -DarchetypeVersion=1.1-SNAPSHOT \ -DgroupId=com.foo.jpaweb \ -DartifactId=JPADemo \ -Dversion=1.0-SNAPSHOT
During the creation of the basic jpa app, I got this: Downloading: http://scala-tools.org/repo-snapshots/net/liftweb/lift-archetype-jpa-basic/1.1-SNAPSHOT/lift-archetype-jpa-basic-1.1-SNAPSHOT.jar 44K downloaded (lift-archetype-jpa-basic-1.1-SNAPSHOT.jar) [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '66b831a190e2e072816e5b2acc8064287d94b371'; remote = '023a3bb1cf2994e837b18394a2eb3975c8735552' - RETRYING Downloading: http://scala-tools.org/repo-snapshots/net/liftweb/lift-archetype-jpa-basic/1.1-SNAPSHOT/lift-archetype-jpa-basic-1.1-SNAPSHOT.jar 44K downloaded (lift-archetype-jpa-basic-1.1-SNAPSHOT.jar) [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '66b831a190e2e072816e5b2acc8064287d94b371'; remote = '023a3bb1cf2994e837b18394a2eb3975c8735552' - IGNORING And a bunch of warnings: [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 37,column 16] : ${scala.version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 43,column 16] : ${scala.version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 85,column 25] : ${scala.version} is not a valid reference. [WARNING] PT Don't override file /private/var/www/lift/admin/pom.xml [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/web/pom.xml [line 13,column 9] : ${parent.artifactId} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/web/pom.xml [line 24,column 16] : ${pom.groupId} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/web/pom.xml [line 26,column 16] : ${pom.version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/spa/pom.xml [line 14,column 9] : ${parent.artifactId} is not a valid reference. The build completed successfully anyway. Afterward, I tried "mvn compile" in the top directory and got the following error: [WARNING] /private/var/www/lift/admin/web/src/main/scala/bootstrap/liftweb/Boot.scala:70: error: type mismatch; [WARNING] found : net.liftweb.util.Box[javax.servlet.http.HttpServletRequest] [WARNING] required: net.liftweb.util.Box[net.liftweb.http.provider.HTTPRequest] [WARNING] case null => Full(LiftRules.defaultLocaleCalculator(request)) [WARNING] ^ [WARNING] /private/var/www/lift/admin/web/src/main/scala/bootstrap/liftweb/Boot.scala:75: error: type mismatch; [WARNING] found : (net.liftweb.util.Box[javax.servlet.http.HttpServletRequest]) => java.util.Locale [WARNING] required: (net.liftweb.util.Box[net.liftweb.http.provider.HTTPRequest]) => java.util.Locale [WARNING] LiftRules.localeCalculator = localeCalculator _ [WARNING] ^ [WARNING] two errors found [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE Hmmmm. Ideas? Chas. Charles F. Munat wrote: > Anyone know offhand what the mvn command is to create a blank JPA > project (split, not single)? We should probably collect all the > archetype commands and put them on the new wiki (and keep them up to > date with the latest version number). > > I'm happy to do it if I can figure out what the right versions are... > > Chas. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---