Kolesnikov, Alexander GNI a écrit :
Look, the quickstart specifies this command:
mvn archetype:create -DarchetypeGroupId=org.apache.tapestry
-DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.4 -DgroupId=org.example
-DartifactId=myapp -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT
See, the version is 5.0.4, not 5.0.4-SNAPSHOT, not 5.0.3-SNAPSHOT
Thank you very much Alexander for your help.
But ...
I did :
D:\essais.maven> mvn archetype:create
-DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository
-Dar
chetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart
-DarchetypeVersion=5.0.4 -DgroupId=org.example -DartifactI
d=my-appT5 -DpackageName=org.example.myappT5 -Dversion=1.0.0-SNAPSHOT
and try too without the remoteRepositories but maven could not find the
quickstart for 5.0.4.
Here is the error :
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating from archetype
Embedded error: Archetype does not exist: Unable to download the
artifact from any repository
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.tapestry
-DartifactId=quickstart \
-Dversion=5.0.4 -Dpackaging=jar -Dfile=/path/to/file
org.apache.tapestry:quickstart:jar:5.0.4
from the specified remote repositories:
id0 (http://people.apache.org/repo/m2-snapshot-repository)
-----Original Message-----
From: #Cyrille37# [mailto:[EMAIL PROTECTED]
Sent: 25 June 2007 11:41
To: Tapestry users
Subject: Re: [T5] archetype quickstart error
Kolesnikov, Alexander GNI a écrit :
No, that's not what I meant.
First of all, I followed the instructions available here:
http://tapestry.apache.org/tapestry5/quickstart/
I did exactly the same: following this quickstart page.
The project was successfully built but then it does not compile because
of errors :
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[8,42]
cannot find symbol
symbol : class Contribute
location: package org.apache.tapestry.ioc.annotations
D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[9,42]
cannot find symbol
symbol : class Id
location: package org.apache.tapestry.ioc.annotations
D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[20,1]
cannot find symbol
symbol: class Id
@Id("app")
D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[23,5]
cannot find symbol
symbol : class Contribute
location: class org.example.myappT5.services.AppModule
D:\essais.maven\my-appT5\src\main\java\org\example\myappT5\services\AppModule.java:[73,5]
cannot find symbol
symbol : class Contribute
location: class org.example.myappT5.services.AppModule
Then I'd try to change the "tapestry-release-version" property to
5.0.4-SNAPSHOT but maven could not find the Tapestry version in
repositories.
And it's right, while browsing at
http://people.apache.org/repo/m2-snapshot-repository/ the last Tapestry
version is 5.0.3-SNAPSHOT.
cyrille.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]