You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Richard Clark <rd...@gmail.com> on 2009/03/07 22:07:55 UTC

Re: Archetype Error

On Fri, Feb 27, 2009 at 6:36 PM, Andreas Andreou <an...@di.uoa.gr> wrote:
> When running that, I see this warning:
> [WARNING] This goal is deprecated. Please use mvn archetype:generate instead
>
> So, use archetype:generate instead of archetype:create and it'll work

Unfortunately not. Using archetype:generate asks the user to select
from list of possible archetypes but the tapestry quickstart archetype
is not on that list.

...Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Archetype Error

Posted by Richard Clark <rd...@gmail.com>.
That is exceptionally helpful. Thank you :)

...R


On Sun, Mar 8, 2009 at 1:29 PM, Otho <ta...@googlemail.com> wrote:
> Just create the archetype. Don't do a 'mvn install' or 'mvn  jetty:run'
> immediately but first edit the pom and change <tapestry-release-version> in
> the property section from 5.1.0.1-SNAPSHOT to 5.0.18.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Archetype Error

Posted by Otho <ta...@googlemail.com>.
Just create the archetype. Don't do a 'mvn install' or 'mvn  jetty:run'
immediately but first edit the pom and change <tapestry-release-version> in
the property section from 5.1.0.1-SNAPSHOT to 5.0.18. You can leave the
testng dependency as is. Other changes, like including tapestry-hibernate or
tapestry-spring-security and later upgrades can then be done easily when
using the property placeholder for the version.

Regards,
Otho

2009/3/8 Richard Clark <rd...@gmail.com>

> If I understand correctly, that archetypes generates a project with
> the 5.1 alpha codebase. That could create problems if some of the
> supporting modules (e.g. tapestry-acegi) aren't ready to work with
> 5.1.
>
> What would someone do if they wanted to start with the current
> production release?
>
> ...Richard
>
>
> On Sun, Mar 8, 2009 at 2:57 AM, Otho <ta...@googlemail.com> wrote:
> > You forgot to specify the archetype repository. The actual commandline
> is:
> >
> > mvn archetype:generate -DarchetypeCatalog=
> > http://tapestry.formos.com/maven-repository
> >
> > This is unfortunately still wrong in the stable docs, but fixed in the
> > nightly ones.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Archetype Error

Posted by Richard Clark <rd...@gmail.com>.
If I understand correctly, that archetypes generates a project with
the 5.1 alpha codebase. That could create problems if some of the
supporting modules (e.g. tapestry-acegi) aren't ready to work with
5.1.

What would someone do if they wanted to start with the current
production release?

...Richard


On Sun, Mar 8, 2009 at 2:57 AM, Otho <ta...@googlemail.com> wrote:
> You forgot to specify the archetype repository. The actual commandline is:
>
> mvn archetype:generate -DarchetypeCatalog=
> http://tapestry.formos.com/maven-repository
>
> This is unfortunately still wrong in the stable docs, but fixed in the
> nightly ones.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Archetype Error

Posted by Otho <ta...@googlemail.com>.
You forgot to specify the archetype repository. The actual commandline is:

mvn archetype:generate -DarchetypeCatalog=
http://tapestry.formos.com/maven-repository

This is unfortunately still wrong in the stable docs, but fixed in the
nightly ones.

2009/3/8 Richard Clark <rd...@gmail.com>

> Actually, the command line as you wrote it:
> > mvn archetype:generate -DarchetypeGroupId=org.apache.tapestry \
> -DarchetypeArtifactId=quickstart
>
> causes Maven to generate the list of candidate archetypes and the
> tapestry quickstart archetype isn't among them. (It's the same command
> line I tried before writing the reply.)
>
> There's a real problem here: someone who wants to start a new Tapestry
> project on the current release version cannot do it using the
> archetype.
>
> ...Richard
>
> P.S. Here's the first part of the console output:
> Commutative-property:~ rdclark$ mvn archetype:generate
> -DarchetypeGroupId=org.apache.tapestry \
> > -DarchetypeArtifactId=quickstart
> [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
> [WARNING] Specified archetype not found.
> [INFO] No archetype defined. Using maven-archetype-quickstart
> (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
> Choose archetype:
> 1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web
> application with Hibernate, Spring and JSF)
> 2: internal -> appfuse-basic-spring (AppFuse archetype for creating a
> web application with Hibernate, Spring and Spring MVC)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Archetype Error

Posted by Andreas Andreou <an...@di.uoa.gr>.
You're right - at some point i had configured my local
archetypeCatalog to include T5

Just use
mvn archetype:generate
-DarchetypeCatalog=http://tapestry.formos.com/maven-repository

as mentioned in the previous link

On Sun, Mar 8, 2009 at 7:22 AM, Richard Clark <rd...@gmail.com> wrote:
> Actually, the command line as you wrote it:
>> mvn archetype:generate -DarchetypeGroupId=org.apache.tapestry \
> -DarchetypeArtifactId=quickstart
>
> causes Maven to generate the list of candidate archetypes and the
> tapestry quickstart archetype isn't among them. (It's the same command
> line I tried before writing the reply.)
>
> There's a real problem here: someone who wants to start a new Tapestry
> project on the current release version cannot do it using the
> archetype.
>
> ...Richard
>
> P.S. Here's the first part of the console output:
> Commutative-property:~ rdclark$ mvn archetype:generate
> -DarchetypeGroupId=org.apache.tapestry \
>> -DarchetypeArtifactId=quickstart
> [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
> [WARNING] Specified archetype not found.
> [INFO] No archetype defined. Using maven-archetype-quickstart
> (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
> Choose archetype:
> 1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web
> application with Hibernate, Spring and JSF)
> 2: internal -> appfuse-basic-spring (AppFuse archetype for creating a
> web application with Hibernate, Spring and Spring MVC)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Archetype Error

Posted by Richard Clark <rd...@gmail.com>.
Actually, the command line as you wrote it:
> mvn archetype:generate -DarchetypeGroupId=org.apache.tapestry \
-DarchetypeArtifactId=quickstart

causes Maven to generate the list of candidate archetypes and the
tapestry quickstart archetype isn't among them. (It's the same command
line I tried before writing the reply.)

There's a real problem here: someone who wants to start a new Tapestry
project on the current release version cannot do it using the
archetype.

...Richard

P.S. Here's the first part of the console output:
Commutative-property:~ rdclark$ mvn archetype:generate
-DarchetypeGroupId=org.apache.tapestry \
> -DarchetypeArtifactId=quickstart
[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
[WARNING] Specified archetype not found.
[INFO] No archetype defined. Using maven-archetype-quickstart
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web
application with Hibernate, Spring and JSF)
2: internal -> appfuse-basic-spring (AppFuse archetype for creating a
web application with Hibernate, Spring and Spring MVC)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Archetype Error

Posted by Andreas Andreou <an...@di.uoa.gr>.
I meant he should substitute create with generate in his command line
and not just
use what you wrote... The end result would be something like:
mvn archetype:generate -DarchetypeGroupId=org.apache.tapestry
-DarchetypeArtifactId=quickstart

Anyway, there's also some updated info at
http://tapestry.formos.com/nightly/tapestry5/quickstart/



On Sat, Mar 7, 2009 at 11:07 PM, Richard Clark <rd...@gmail.com> wrote:
> On Fri, Feb 27, 2009 at 6:36 PM, Andreas Andreou <an...@di.uoa.gr> wrote:
>> When running that, I see this warning:
>> [WARNING] This goal is deprecated. Please use mvn archetype:generate instead
>>
>> So, use archetype:generate instead of archetype:create and it'll work
>
> Unfortunately not. Using archetype:generate asks the user to select
> from list of possible archetypes but the tapestry quickstart archetype
> is not on that list.
>
> ...Richard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org