[alert] archetypes break

0 views
Skip to first unread message

David Bernard

unread,
Feb 10, 2008, 3:00:26 PM2/10/08
to lif...@googlegroups.com
Hi,

Maven team as release a new version of the archetype plugin (used to create new project)
The new plugin breaks compatibility with previous version (1.x -> 2.x) :(
It also add an interactive mode (requested by some of you).

We work on fixing the problem ASAP.

Regards

/davidB

David Bernard

unread,
Feb 10, 2008, 4:11:47 PM2/10/08
to liftweb
A workaround :

mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create
-DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-
blank -DarchetypeVersion=0.4 -DremoteRepositories=http://scala-
tools.org/repo-releases -DgroupId=my.groupid -DartifactId=myprj

/davidB

Viktor Klang

unread,
Feb 10, 2008, 4:16:18 PM2/10/08
to lif...@googlegroups.com
Thanks a million Dave,
you're the man :D

Cheers,
-V


/davidB
       /lift/ committer (www.liftweb.net)
     SGS member (Scala Group Sweden)
 SEJUG member (Swedish Java User Group)
\_____________________________________/

David Bernard

unread,
Feb 10, 2008, 4:45:57 PM2/10/08
to lif...@googlegroups.com
After some test and code browsing, there is a bug in the new version of the plugin :(
I open a bug http://jira.codehaus.org/browse/ARCHETYPE-124

An other workaround :

copy the attached file to $HOME/.m2/archetype-catalog.xml
run "mvn archetype:create -DarchetypeCatalog=local" when you want to create a new lift project
reply to every questions.

/davidB

archetype-catalog.xml

David Bernard

unread,
Feb 10, 2008, 4:49:41 PM2/10/08
to lif...@googlegroups.com
A little fix (the attached file (previous post) as typo mistake) :
content should be

<?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog>
<archetypes>
<archetype>
<groupId>org.scala-tools.archetypes</groupId>
<artifactId>scala-archetype-simple</artifactId>
<version>1.0</version>
<repository>http://scala-tools.org/repo-releases</repository>
<description>A simple scala project</description>
</archetype>
<archetype>
<groupId>net.liftweb</groupId>
<artifactId>lift-archetype-blank</artifactId>
<version>0.5</version>
<repository>http://scala-tools.org/repo-releases</repository>
<description>A blank/empty liftweb project</description>
</archetype>
<archetype>
<groupId>net.liftweb</groupId>
<artifactId>lift-archetype-basic</artifactId>
<version>0.5</version>
<repository>http://scala-tools.org/repo-releases</repository>
<description>A basic liftweb project (with DB, css, ...)</description>
</archetype>
</archetypes>
</archetype-catalog>

Viktor Klang

unread,
Feb 10, 2008, 5:32:03 PM2/10/08
to lif...@googlegroups.com
Some additional info:

Also, I needed to add:

    <dependency>
    <groupId>org.scala-lang</groupId>
    <artifactId>scala-compiler</artifactId>
    <version>${scala.version}</version>
    </dependency>

to the project-pom-file to be able to run mvn install on the newly created project.

Cheers,
-V
--
_____________________________________
/                                                                 \

David Bernard

unread,
Feb 10, 2008, 5:33:37 PM2/10/08
to lif...@googlegroups.com
normaly you don't.

which archetype did you use ?


Viktor Klang wrote:
> Some additional info:
>
> Also, I needed to add:
>
> <dependency>
> <groupId>org.scala-lang</groupId>
> <artifactId>scala-compiler</artifactId>
> <version>${scala.version}</version>
> </dependency>
>
> to the project-pom-file to be able to run mvn install on the newly
> created project.
>
> Cheers,
> -V
>
> On Feb 10, 2008 10:49 PM, David Bernard <david.be...@gmail.com

> /lift/ committer (www.liftweb.net <http://www.liftweb.net>)

Viktor Klang

unread,
Feb 10, 2008, 5:35:42 PM2/10/08
to lif...@googlegroups.com
On Feb 10, 2008 11:33 PM, David Bernard <david.be...@gmail.com> wrote:

normaly you don't.

which archetype did you use ?

0.5-SNAPSHOT for  lift-archetype-blank
 
       /lift/ committer (www.liftweb.net)

David Bernard

unread,
Feb 10, 2008, 6:09:48 PM2/10/08
to lif...@googlegroups.com
The helper LiftConsole is the cause.
I'll fix the archetypes later this week

FYI the correct fix is


<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-compiler</artifactId>
<version>${scala.version}</version>

<scope>test</scope>
</dependency>

To avoid include compiler into your war

/davidB

Viktor Klang wrote:
> Some additional info:
>
> Also, I needed to add:
>
> <dependency>
> <groupId>org.scala-lang</groupId>
> <artifactId>scala-compiler</artifactId>
> <version>${scala.version}</version>
> </dependency>
>
> to the project-pom-file to be able to run mvn install on the newly
> created project.
>
> Cheers,
> -V
>
> On Feb 10, 2008 10:49 PM, David Bernard <david.be...@gmail.com

> /lift/ committer (www.liftweb.net <http://www.liftweb.net>)

Viktor Klang

unread,
Feb 10, 2008, 6:20:23 PM2/10/08
to lif...@googlegroups.com
On Feb 11, 2008 12:09 AM, David Bernard <david.be...@gmail.com> wrote:

The helper LiftConsole is the cause.
I'll fix the archetypes later this week

FYI the correct fix is
   <dependency>
     <groupId>org.scala-lang</groupId>
     <artifactId>scala-compiler</artifactId>
     <version>${scala.version}</version>
     <scope>test</scope>
   </dependency>

To avoid include compiler into your war

Great tip!

-V
 
       /lift/ committer (www.liftweb.net)
Reply all
Reply to author
Forward
0 new messages