You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by #Cyrille37# <cy...@gmail.com> on 2007/06/24 15:07:20 UTC
which version of tapestry-simple:5.0.?
Hello
I would like to start with Tapestry5 and looking to the maven's archetype.
In the page
http://tapestry.apache.org/tapestry5/tapestry-simple/
it is talking about tapestry-simple:5.0.2.
Is this number version is relative to Tapestry5 version ? Should I
prefer tapestry-simple:5.0.5 ?
Please, could you give me some explanation ?
thanks
cyrille
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: which version of tapestry-simple:5.0.?
Posted by #Cyrille37# <cy...@gmail.com>.
#Cyrille37# a écrit :
> #Cyrille37# a écrit :
>> Hello
>>
>> I would like to start with Tapestry5 and looking to the maven's
>> archetype.
>> In the page
>> http://tapestry.apache.org/tapestry5/tapestry-simple/
>> it is talking about tapestry-simple:5.0.2.
>>
>> Is this number version is relative to Tapestry5 version ? Should I
>> prefer tapestry-simple:5.0.5 ?
>>
>> Please, could you give me some explanation ?
>> thanks
>> cyrille
> When following instructions of page
> http://tapestry.apache.org/tapestry5/tapestry-simple/
>
> mvn archetype:create
> -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository
> -DarchetypeGroupId=org.apache.tapestry
> -DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.2
> -DgroupId=org.example -DartifactId=myapp
> -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT
>
> Maven could not find the archetype :
>
> [INFO] We are using command line specified remote repositories:
> http://people.apache.org/repo/m2-snapshot-repository
> Downloading:
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/quickstart/5.0.2/quickstart-5.0.2.jar
>
> [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.2 -Dpackaging=jar -Dfile=/path/to/file
>
> org.apache.tapestry:quickstart:jar:5.0.2
>
> from the specified remote repositories:
> id0 (http://people.apache.org/repo/m2-snapshot-repository)
>
> Any help ?
> Cyrille.
Ok, I've found the right archetype version :
-DarchetypeVersion=5.0.3-SNAPSHOT
So Maven can create the projet.
Then I go in the project folder and type mvn jetty:run and gt those errors :
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building my-app Tapestry 5 Application
[INFO] task-segment: [jetty:run]
[INFO]
----------------------------------------------------------------------------
[INFO] Preparing jetty:run
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:compile]
[INFO] Compiling 2 source files to
D:\evote.java\projet\my-app\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
D:\my-app\src\main\java\org\example\myapp\services\AppModule.java:[8,42]
cannot find symbol
symbol : class Contribute
location: package org.apache.tapestry.ioc.annotations
D:\my-app\src\main\java\org\example\myapp\services\AppModule.java:[9,42]
cannot find symbol
symbol : class Id
location: package org.apache.tapestry.ioc.annotations
D:\my-app\src\main\java\org\example\myapp\services\AppModule.java:[20,1]
cannot find symbol
symbol: class Id
@Id("app")
D:\my-app\src\main\java\org\example\myapp\services\AppModule.java:[23,5]
cannot find symbol
symbol : class Contribute
location: class org.example.myapp.services.AppModule
D:\my-app\src\main\java\org\example\myapp\services\AppModule.java:[73,5]
cannot find symbol
symbol : class Contribute
location: class org.example.myapp.services.AppModule
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Sun Jun 24 15:20:53 CEST 2007
[INFO] Final Memory: 5M/10M
[INFO]
------------------------------------------------------------------------
I think I just have to read the pom.xml to add some references ... I'll
see ...
cyrille.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: which version of tapestry-simple:5.0.?
Posted by Steven Coco <co...@stevencoco.com>.
Hello.
Executing the command you gave, without the repository flag:
-DremoteRepositories=...
Works for me. The Tapestry archetype is in the main repository.
When building the app, you will need the snapshot repositories -- you'll need
whichever repositories are added to the POM by the archetype. This is because
Tapestry itself is in the snapshot repositories.
Hope that helps.
On Sun June 24 2007 9:13:55 am #Cyrille37# wrote:
> #Cyrille37# a écrit :
> > Hello
> >
> > I would like to start with Tapestry5 and looking to the maven's
> > archetype.
> > In the page
> > http://tapestry.apache.org/tapestry5/tapestry-simple/
> > it is talking about tapestry-simple:5.0.2.
> >
> > Is this number version is relative to Tapestry5 version ? Should I
> > prefer tapestry-simple:5.0.5 ?
> >
> > Please, could you give me some explanation ?
> > thanks
> > cyrille
> When following instructions of page
> http://tapestry.apache.org/tapestry5/tapestry-simple/
>
> mvn archetype:create
> -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository
> -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart
> -DarchetypeVersion=5.0.2 -DgroupId=org.example -DartifactId=myapp
> -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT
>
> Maven could not find the archetype :
>
> [INFO] We are using command line specified remote repositories:
> http://people.apache.org/repo/m2-snapshot-repository
> Downloading:
>
http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/quickstart/5.0.2/quickstart-5.0.2.jar
> [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.2 -Dpackaging=jar -Dfile=/path/to/file
>
> org.apache.tapestry:quickstart:jar:5.0.2
>
> from the specified remote repositories:
> id0 (http://people.apache.org/repo/m2-snapshot-repository)
>
> Any help ?
> Cyrille.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: which version of tapestry-simple:5.0.?
Posted by #Cyrille37# <cy...@gmail.com>.
#Cyrille37# a écrit :
> Hello
>
> I would like to start with Tapestry5 and looking to the maven's
> archetype.
> In the page
> http://tapestry.apache.org/tapestry5/tapestry-simple/
> it is talking about tapestry-simple:5.0.2.
>
> Is this number version is relative to Tapestry5 version ? Should I
> prefer tapestry-simple:5.0.5 ?
>
> Please, could you give me some explanation ?
> thanks
> cyrille
When following instructions of page
http://tapestry.apache.org/tapestry5/tapestry-simple/
mvn archetype:create
-DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository
-DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart
-DarchetypeVersion=5.0.2 -DgroupId=org.example -DartifactId=myapp
-DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT
Maven could not find the archetype :
[INFO] We are using command line specified remote repositories:
http://people.apache.org/repo/m2-snapshot-repository
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/quickstart/5.0.2/quickstart-5.0.2.jar
[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.2 -Dpackaging=jar -Dfile=/path/to/file
org.apache.tapestry:quickstart:jar:5.0.2
from the specified remote repositories:
id0 (http://people.apache.org/repo/m2-snapshot-repository)
Any help ?
Cyrille.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org