Re: Starting from a maven archetype error

2010-01-29 Thread faye alaska


I am not sure if this helps, but I followed the instructions in
http://tapestry.formos.com/wiki/display/T5IDEINT/Eclipse+%28including+Maven%29
and got quickstart to work quickly.



matias.blasi wrote:
> 
> Hi, I'm trying to start a new tapestry project and I'm getting the
> following error:
> 
> mat...@jo-lie:~/workspace/newscentral $ mvn archetype:generate
> -DarchetypeCatalog=http://tapestry.formos.com/maven-snapshot-repository   
>   
> ...
> [INFO] Building Maven Default Project
> [INFO]task-segment: [archetype:generate] (aggregator-style)
> [INFO]
> 
> [INFO] Preparing archetype:generate
> ...
> [INFO] [archetype:generate]
> [INFO] Generating project in Interactive mode
> [INFO] No archetype defined. Using maven-archetype-quickstart
> (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
> Choose archetype:
> 1: http://tapestry.formos.com/maven-snapshot-repository -> quickstart
> (Tapestry 5.2.0-SNAPSHOT Quickstart Project)
> Choose a number:  (1): 1
> [INFO] snapshot org.apache.tapestry:quickstart:5.2.0-SNAPSHOT: checking
> for updates from quickstart-repo
> [WARNING] repository metadata for: 'snapshot
> org.apache.tapestry:quickstart:5.2.0-SNAPSHOT' could not be retrieved from
> repository: quickstart-repo due to an error: GET request of:
> org/apache/tapestry/quickstart/5.2.0-SNAPSHOT/maven-metadata.xml from
> quickstart-repo failed
> [INFO] Repository 'quickstart-repo' will be blacklisted
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
> ..
> [INFO]
> 
> mat...@jo-lie:~/workspace/newscentral $
> 
> 
> Could the maven-metadata.xml file be corrupted?
> 
> Regards,
> Matías
> 

-- 
View this message in context: 
http://old.nabble.com/Starting-from-a-maven-archetype-error-tp2716p27375832.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Starting from a maven archetype error

2010-01-14 Thread matias.blasi

Hi, I'm trying to start a new tapestry project and I'm getting the following
error:

mat...@jo-lie:~/workspace/newscentral $ mvn archetype:generate
-DarchetypeCatalog=http://tapestry.formos.com/maven-snapshot-repository 

...
[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:generate] (aggregator-style)
[INFO]

[INFO] Preparing archetype:generate
...
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://tapestry.formos.com/maven-snapshot-repository -> quickstart
(Tapestry 5.2.0-SNAPSHOT Quickstart Project)
Choose a number:  (1): 1
[INFO] snapshot org.apache.tapestry:quickstart:5.2.0-SNAPSHOT: checking for
updates from quickstart-repo
[WARNING] repository metadata for: 'snapshot
org.apache.tapestry:quickstart:5.2.0-SNAPSHOT' could not be retrieved from
repository: quickstart-repo due to an error: GET request of:
org/apache/tapestry/quickstart/5.2.0-SNAPSHOT/maven-metadata.xml from
quickstart-repo failed
[INFO] Repository 'quickstart-repo' will be blacklisted
[INFO]

[ERROR] BUILD FAILURE
[INFO]

..
[INFO]

mat...@jo-lie:~/workspace/newscentral $


Could the maven-metadata.xml file be corrupted?

Regards,
Matías
-- 
View this message in context: 
http://old.nabble.com/Starting-from-a-maven-archetype-error-tp2716p2716.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Archetype Error

2009-03-08 Thread Richard Clark
That is exceptionally helpful. Thank you :)

...R


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

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



Re: Archetype Error

2009-03-08 Thread Otho
Just create the archetype. Don't do a 'mvn install' or 'mvn  jetty:run'
immediately but first edit the pom and change  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 

> 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  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-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Archetype Error

2009-03-08 Thread Richard Clark
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  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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Archetype Error

2009-03-08 Thread Andreas Andreou
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  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-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



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

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



Re: Archetype Error

2009-03-08 Thread Otho
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 

> 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-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Archetype Error

2009-03-07 Thread Richard Clark
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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Archetype Error

2009-03-07 Thread Andreas Andreou
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  wrote:
> On Fri, Feb 27, 2009 at 6:36 PM, Andreas Andreou  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-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



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

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



Re: Archetype Error

2009-03-07 Thread Richard Clark
On Fri, Feb 27, 2009 at 6:36 PM, Andreas Andreou  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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Archetype Error

2009-02-27 Thread Andreas Andreou
us VM definitions*
>>
>> *[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
>> be
>> glob*
>>
>> *al in scope if allowed.*
>>
>> *[INFO] Velocimacro : initialization complete.*
>>
>> *[INFO] Velocity successfully started.*
>>
>> *[INFO] [archetype:create]*
>>
>> *[INFO]
>> -*
>>
>> *---*
>>
>> *[INFO] Using following parameters for creating Archetype:
>> quickstart:RELEASE*
>>
>> *[INFO]
>> -*
>>
>> *---*
>>
>> *[INFO] Parameter: groupId, Value: za.co.easypay*
>>
>> *[INFO] Parameter: packageName, Value: za.co.easypay.PMF*
>>
>> *[INFO] Parameter: basedir, Value: C:\DEV\workspace*
>>
>> *[INFO] Parameter: package, Value: za.co.easypay.PMF*
>>
>> *[INFO] Parameter: version, Value: 1.0-SNAPSHOT*
>>
>> *[INFO] Parameter: artifactId, Value: PMF*
>>
>> *[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: 2 seconds*
>>
>> *[INFO] Finished at: Fri Feb 27 **14:16:56** CAT 2009*
>>
>> *[INFO] Final Memory: 5M/9M*
>>
>> *[INFO]
>> *
>>
>> * *
>>
>> *C:\DEV\workspace>*
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Archetype-Error-tp22247532p22252368.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



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

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



Re: Archetype Error

2009-02-27 Thread leechj
a.co.easypay.PMF*
> 
> *[INFO] Parameter: basedir, Value: C:\DEV\workspace*
> 
> *[INFO] Parameter: package, Value: za.co.easypay.PMF*
> 
> *[INFO] Parameter: version, Value: 1.0-SNAPSHOT*
> 
> *[INFO] Parameter: artifactId, Value: PMF*
> 
> *[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: 2 seconds*
> 
> *[INFO] Finished at: Fri Feb 27 **14:16:56** CAT 2009*
> 
> *[INFO] Final Memory: 5M/9M*
> 
> *[INFO]
> *
> 
> * *
> 
> *C:\DEV\workspace>*
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Archetype-Error-tp22247532p22252368.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Archetype Error

2009-02-27 Thread Shuaib Cader
Hi there



My name is Shuaib Cader. I am relatively new to web development and was task
to learn how to use Tapestry. I am following the tutorial that you have
provided on the website but I am getting the following error when trying to
a project using the maven archetype. I have use the archetype before and I
had no problems. See the error highlighted in RED. Am I doing something
incorrect?



*C:\DEV\workspace>mvn archetype:create
-DarchetypeGroupId=org.apache.tapestry -Da*

*rchetypeArtifactId=quickstart -DgroupId=za.co.easypay -DartifactId=PMF
-Dpackage*

*Name=za.co.easypay.PMF*

*[INFO] Scanning for projects...*

*[INFO] Searching repository for plugin with prefix: 'archetype'.*

*[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] ***

*[INFO] Starting **Jakarta** Velocity v1.4*

*[INFO] RuntimeInstance initializing.*

*[INFO] Default Properties File: org\apache\velocity\runtime\defaults\
velocity.pr*

*operties*

*[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.*

*resource.ResourceManagerImpl)*

*[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo*

*aderResourceLoader*

*[INFO] ClasspathResourceLoader : initialization starting.*

*[INFO] ClasspathResourceLoader : initialization complete.*

*[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.*

*ResourceCacheImpl)*

*[INFO] Default ResourceManager initialization complete.*

*[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal*

*[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
*

*[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
*

*[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include*

*[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach*

*[INFO] Created: 20 parsers.*

*[INFO] Velocimacro : initialization starting.*

*[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm*

*[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any*

*resource loader.*

*[INFO] Velocimacro : error using  VM library template VM_global_library.vm
: org*

*.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V*

*M_global_library.vm'*

*[INFO] Velocimacro :  VM library template macro registration complete.*

*[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates*

* *

*[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NOT*

*replace previous VM definitions*

*[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
glob*

*al in scope if allowed.*

*[INFO] Velocimacro : initialization complete.*

*[INFO] Velocity successfully started.*

*[INFO] [archetype:create]*

*[INFO]
-*

*---*

*[INFO] Using following parameters for creating Archetype:
quickstart:RELEASE*

*[INFO]
-*

*---*

*[INFO] Parameter: groupId, Value: za.co.easypay*

*[INFO] Parameter: packageName, Value: za.co.easypay.PMF*

*[INFO] Parameter: basedir, Value: C:\DEV\workspace*

*[INFO] Parameter: package, Value: za.co.easypay.PMF*

*[INFO] Parameter: version, Value: 1.0-SNAPSHOT*

*[INFO] Parameter: artifactId, Value: PMF*

*[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: 2 seconds*

*[INFO] Finished at: Fri Feb 27 **14:16:56** CAT 2009*

*[INFO] Final Memory: 5M/9M*

*[INFO]
*

* *

*C:\DEV\workspace>*