On Mon, Nov 30, 2009 at 8:25 PM, Ross Mellgren <[email protected]> wrote:
> It looks like they work to me. I'm using this: > > r...@hugo:~$ mklift lift-archetype-basic test-brokenarchetypes4 > + mklift lift-archetype-basic test-brokenarchetypes4 > + test 2 -lt 2 > + mvn archetype:generate -DarchetypeGroupId=net.liftweb > -DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=1.1-SNAPSHOT > -DarchetypeRepository=http://www.scala-tools.org/repo-snapshots-DgroupId=test > -DartifactId=test-brokenarchetypes4 -Dversion=1.0-SNAPSHOT > [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 {execution: default-cli}] > [INFO] Generating project in Interactive mode > [INFO] Archetype defined by properties > [INFO] snapshot net.liftweb:lift-archetype-basic:1.1-SNAPSHOT: checking for > updates from lift-archetype-basic-repo > Confirm properties configuration: > groupId: test > artifactId: test-brokenarchetypes4 > version: 1.0-SNAPSHOT > package: test > Y: : > [WARNING] PT Don't override file /Users/rmm/test-brokenarchetypes4/pom.xml > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESSFUL > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 4 seconds > [INFO] Finished at: Mon Nov 30 23:22:36 EST 2009 > [INFO] Final Memory: 13M/80M > [INFO] > ------------------------------------------------------------------------ > > > I note you're using archetype:create? The wiki says archetype:generate; I > don't know what archetype:create does, though it looks like an old (and > deprecated) name for archetype:generate. > archetype:create was working up through last week. There were no **BREAKING CHANGES** notifications. archetype:generate forces me to answer questions (the whole point of having a script is so I can type the script name and have it work.) Sorry for being grumpy about this, but I don't like things changing/breaking without some form of warning. > > -Ross > > On Nov 30, 2009, at 10:51 PM, David Pollak wrote: > > Folks, > > Somehow somebody broke the basic archetype. This is not acceptable. > Here's what I typed and here's what happened: > > d...@sevenof9:~/tmp$ cat /home/dpp/bin/new_lift > #!/bin/sh > mvn archetype:create -U -DarchetypeGroupId=net.liftweb \ > -DarchetypeArtifactId=lift-archetype-basic \ > -DarchetypeVersion=1.1-SNAPSHOT \ > -DremoteRepositories=http://scala-tools.org/repo-snapshots \ > -DgroupId=$1 -DartifactId=$2 > > > d...@sevenof9:~/tmp$ new_lift com.liftcode imagine > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'archetype'. > [INFO] org.apache.maven.plugins: checking for updates from central > [INFO] org.codehaus.mojo: checking for updates from central > [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking > for updates from central > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Maven Default Project > [INFO] task-segment: [archetype:create] (aggregator-style) > [INFO] > ------------------------------------------------------------------------ > [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:create {execution: default-cli}] > [WARNING] This goal is deprecated. Please use mvn archetype:generate > instead > [INFO] Defaulting package to group ID: com.liftcode > [INFO] We are using command line specified remote repositories: > http://scala-tools.org/repo-snapshots > [INFO] snapshot net.liftweb:lift-archetype-basic:1.1-SNAPSHOT: checking for > updates from id0 > Downloading: > http://scala-tools.org/repo-snapshots/net/liftweb/lift-archetype-basic/1.1-SNAPSHOT/lift-archetype-basic-1.1-SNAPSHOT.jar > [INFO] > ---------------------------------------------------------------------------- > [INFO] Using following parameters for creating OldArchetype: > lift-archetype-basic:1.1-SNAPSHOT > [INFO] > ---------------------------------------------------------------------------- > [INFO] Parameter: groupId, Value: com.liftcode > [INFO] Parameter: packageName, Value: com.liftcode > [INFO] Parameter: package, Value: com.liftcode > [INFO] Parameter: artifactId, Value: imagine > [INFO] Parameter: basedir, Value: /home/dpp/tmp > [INFO] Parameter: version, Value: 1.0-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error creating from archetype > > Embedded error: The META-INF/maven/archetype.xml descriptor cannot be > found. > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 5 seconds > [INFO] Finished at: Mon Nov 30 19:48:19 PST 2009 > [INFO] Final Memory: 16M/170M > [INFO] > ------------------------------------------------------------------------ > d...@sevenof9:~/tmp$ > > > We are supposed to be stabilizing the archetypes and making sure they are > tested as part of the build process. It is absolutely unacceptable (can I > be any more blunt than this?) that the archetypes do not work. > > Whoever broke them, please do whatever you have to do to get them fixed > ASAP. > > David > > > > -- > Lift, the simply functional web framework http://liftweb.net > Beginning Scala http://www.apress.com/book/view/1430219890 > Follow me: http://twitter.com/dpp > Surf the harmonics > > -- > 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. > > > -- > 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]<liftweb%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- 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.
