Re: Tapestry 5, WAR files and deployment

2008-11-07 Thread Olle Hallin
The standard cure-most-dependency-problems medicin for Maven is to wipe your
local repository and try again.
Delete (or rename) $HOME/.m2/repository (Linux) or
%USERPROFILE%\.m2\repository (Windows).

Also: the standard way to package a any Maven project is mvn package.
mvn war:war happens to work here, since it is bound to the package goal for
a war project.

HTH,
Olle

2008/11/6 Fernando Padilla [EMAIL PROTECTED]

 This is probably because it can't download the files..

 I would double check your networking, but because you're emailing us I'll
 assume it's working.

 Someone I know also had issue like this, and the cause for him was he
 installed it as root on his laptop, so when he tried to build it as his user
 he didn't have permissions to actually modify the repository.  So it could
 not successfully fetch any dependencies.

 Though I don't recommend it, he runs all maven with sudo.

 Not sure what the best way to install it is, but I installed maven on my
 laptop simply by extracting it into a directory as my user, then adding the
 bin directory to my user's path..






 tapestryphoto wrote:

 Quoting Olle Hallin [EMAIL PROTECTED]:

  Does it work from the command line?
 Olle


 I tried mvn war:war from the project directory.

 Bizarrely it gives even more problems.  I find Maven very frustrating...


 [INFO] Failed to resolve artifact.

 Missing:
 --
 1) org.apache.maven:maven-archiver:jar:2.2

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.apache.maven
 -DartifactId=maven-arc
 hiver -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
 there:

  mvn deploy:deploy-file -DgroupId=org.apache.maven
 -DartifactId=maven-archi
 ver -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
 -DrepositoryI
 d=[id]

  Path to dependency:
1)
 org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
2) org.apache.maven:maven-archiver:jar:2.2

 2) org.codehaus.plexus:plexus-utils:jar:1.4.7

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.codehaus.plexus
 -DartifactId=plexus
 -utils -Dversion=1.4.7 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
 there:

  mvn deploy:deploy-file -DgroupId=org.codehaus.plexus
 -DartifactId=plexus-u
 tils -Dversion=1.4.7 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
 -Dreposito
 ryId=[id]

  Path to dependency:
1)
 org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
2) org.codehaus.plexus:plexus-utils:jar:1.4.7

 3) com.thoughtworks.xstream:xstream:jar:1.2.2

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=com.thoughtworks.xstream
 -DartifactId=x
 stream -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
 there:

  mvn deploy:deploy-file -DgroupId=com.thoughtworks.xstream
 -DartifactId=xst
 ream -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
 -Dreposito
 ryId=[id]

  Path to dependency:
1)
 org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
2) com.thoughtworks.xstream:xstream:jar:1.2.2

 --
 3 required artifacts are missing.



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Olle Hallin
Senior Java Developer and Architect
[EMAIL PROTECTED]
www.crisp.se


Re: Tapestry 5, WAR files and deployment

2008-11-07 Thread tapestryphoto

Thank you Olle and everyone else who replied to my query.

Indeed, I had to recreate the repository (plus I missed one or two  
dependencies).


p.


Quoting Olle Hallin [EMAIL PROTECTED]:


The standard cure-most-dependency-problems medicin for Maven is to wipe your
local repository and try again.
Delete (or rename) $HOME/.m2/repository (Linux) or
%USERPROFILE%\.m2\repository (Windows).

Also: the standard way to package a any Maven project is mvn package.
mvn war:war happens to work here, since it is bound to the package goal for
a war project.

HTH,
Olle

2008/11/6 Fernando Padilla [EMAIL PROTECTED]


This is probably because it can't download the files..

I would double check your networking, but because you're emailing us I'll
assume it's working.

Someone I know also had issue like this, and the cause for him was he
installed it as root on his laptop, so when he tried to build it as his user
he didn't have permissions to actually modify the repository.  So it could
not successfully fetch any dependencies.

Though I don't recommend it, he runs all maven with sudo.

Not sure what the best way to install it is, but I installed maven on my
laptop simply by extracting it into a directory as my user, then adding the
bin directory to my user's path..






tapestryphoto wrote:


Quoting Olle Hallin [EMAIL PROTECTED]:

 Does it work from the command line?

Olle



I tried mvn war:war from the project directory.

Bizarrely it gives even more problems.  I find Maven very frustrating...


[INFO] Failed to resolve artifact.

Missing:
--
1) org.apache.maven:maven-archiver:jar:2.2

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.apache.maven
-DartifactId=maven-arc
hiver -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file

 Alternatively, if you host your own repository you can deploy the file
there:

 mvn deploy:deploy-file -DgroupId=org.apache.maven
-DartifactId=maven-archi
ver -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryI
d=[id]

 Path to dependency:
   1)
org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
   2) org.apache.maven:maven-archiver:jar:2.2

2) org.codehaus.plexus:plexus-utils:jar:1.4.7

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus
-utils -Dversion=1.4.7 -Dpackaging=jar -Dfile=/path/to/file

 Alternatively, if you host your own repository you can deploy the file
there:

 mvn deploy:deploy-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus-u
tils -Dversion=1.4.7 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-Dreposito
ryId=[id]

 Path to dependency:
   1)
org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
   2) org.codehaus.plexus:plexus-utils:jar:1.4.7

3) com.thoughtworks.xstream:xstream:jar:1.2.2

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=com.thoughtworks.xstream
-DartifactId=x
stream -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file

 Alternatively, if you host your own repository you can deploy the file
there:

 mvn deploy:deploy-file -DgroupId=com.thoughtworks.xstream
-DartifactId=xst
ream -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-Dreposito
ryId=[id]

 Path to dependency:
   1)
org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
   2) com.thoughtworks.xstream:xstream:jar:1.2.2

--
3 required artifacts are missing.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Olle Hallin
Senior Java Developer and Architect
[EMAIL PROTECTED]
www.crisp.se






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread Thiago H. de Paula Figueiredo
Em Thu, 06 Nov 2008 11:18:59 -0300, tapestryphoto [EMAIL PROTECTED]  
escreveu:



Hi,

Having gone through the Tapestry tutorials, got to grips with it,  
developed a small application and have got it running well I'd like to  
actually deploy it.


I notice there are no documents, examples or tutorials (as far as I can  
see) that address how to do this. Even the Tapestry 5 book is pretty  
silent on the issue (apart from telling me what a WAR file is - and even  
I know that). Perhaps someone could whip up a Wiki entry?


I don't think it's needed because the process of packaging and deploying a  
Tapestry application is absolutely equal to any other Java Web application.


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tapestry 5, WAR files and deployment

2008-11-06 Thread James Sherwood
Hello,

I deploy to tomcat but war essentials should be the same.  I think the only
difference between tomcat and Jetty are Tomcats classloaders which maven
takes care of apparently.

Just create the WAR with eclipse and drop it in your deploy folder(tomcat is
the webapps directory and you don't even have to create a context) but for
Jetty you may have too. Just do a quick search on deploying war's to jetty.

This is one example that might help you(I am not familiar with Jetty):

http://markmail.org/message/csnnytlurso7b3ut

--James

-Original Message-
From: tapestryphoto [mailto:[EMAIL PROTECTED] 
Sent: November-06-08 10:19 AM
To: users@tapestry.apache.org
Subject: Tapestry 5, WAR files and deployment

Hi,

Having gone through the Tapestry tutorials, got to grips with it,  
developed a small application and have got it running well I'd like to  
actually deploy it.

I notice there are no documents, examples or tutorials (as far as I  
can see) that address how to do this. Even the Tapestry 5 book is  
pretty silent on the issue (apart from telling me what a WAR file is -  
and even I know that). Perhaps someone could whip up a Wiki entry?


I'm using Eclipse. I'd like to:

1) create a WAR from my project

2) deploy it on a server that has Jetty running.


Do I need something like the following build.xml:

project name=war_demo default=build_war
target name=build_war
   war destfile=dportal.war webxml=src/main/webapp/WEB-INF
classes dir=target/
/war
/target
/project

Is there anthing else I need to do for this Ant target?

Or do I use Maven?  And is that something like a command line call:  
mvn war:war
or are there other things I need to do first?


I then place the resulting WAR in the webapps directory under Jetty  
and start Jetty.

Correct?


p.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__ Information from ESET Smart Security, version of virus signature
database 3536 (20081019) __

The message was checked by ESET Smart Security.

http://www.eset.com

 

__ Information from ESET Smart Security, version of virus signature
database 3536 (20081019) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread Olle Hallin
Hi,

This is most easily done with mvn package. The resulting WAR is found in the
target folder of your project.
Drop it into Tomcat/Jetty, and you're done.

If you insist on doing it from within Eclipse, then

   1. install the m2eclipse plugin
   2. enable Maven for your project
   3. right-click pom.xml and invoke Run As - Maven package


Olle


2008/11/6 James Sherwood [EMAIL PROTECTED]

 Hello,

 I deploy to tomcat but war essentials should be the same.  I think the only
 difference between tomcat and Jetty are Tomcats classloaders which maven
 takes care of apparently.

 Just create the WAR with eclipse and drop it in your deploy folder(tomcat
 is
 the webapps directory and you don't even have to create a context) but for
 Jetty you may have too. Just do a quick search on deploying war's to jetty.

 This is one example that might help you(I am not familiar with Jetty):

 http://markmail.org/message/csnnytlurso7b3ut

 --James

 -Original Message-
 From: tapestryphoto [mailto:[EMAIL PROTECTED]
 Sent: November-06-08 10:19 AM
 To: users@tapestry.apache.org
 Subject: Tapestry 5, WAR files and deployment

 Hi,

 Having gone through the Tapestry tutorials, got to grips with it,
 developed a small application and have got it running well I'd like to
 actually deploy it.

 I notice there are no documents, examples or tutorials (as far as I
 can see) that address how to do this. Even the Tapestry 5 book is
 pretty silent on the issue (apart from telling me what a WAR file is -
 and even I know that). Perhaps someone could whip up a Wiki entry?


 I'm using Eclipse. I'd like to:

 1) create a WAR from my project

 2) deploy it on a server that has Jetty running.


 Do I need something like the following build.xml:

 project name=war_demo default=build_war
 target name=build_war
   war destfile=dportal.war webxml=src/main/webapp/WEB-INF
classes dir=target/
/war
 /target
 /project

 Is there anthing else I need to do for this Ant target?

 Or do I use Maven?  And is that something like a command line call:
 mvn war:war
 or are there other things I need to do first?


 I then place the resulting WAR in the webapps directory under Jetty
 and start Jetty.

 Correct?


 p.





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 __ Information from ESET Smart Security, version of virus signature
 database 3536 (20081019) __

 The message was checked by ESET Smart Security.

 http://www.eset.com



 __ Information from ESET Smart Security, version of virus signature
 database 3536 (20081019) __

 The message was checked by ESET Smart Security.

 http://www.eset.com



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Olle Hallin M.Sc.
+46 70 6653071
[EMAIL PROTECTED]
www.hit.se


Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread Thiago H. de Paula Figueiredo
Em Thu, 06 Nov 2008 12:05:50 -0300, Olle Hallin [EMAIL PROTECTED]  
escreveu:



Hi,
If you insist on doing it from within Eclipse, then

   1. install the m2eclipse plugin
   2. enable Maven for your project
   3. right-click pom.xml and invoke Run As - Maven package


You can also right-click the project and invoke Run As - Maven package.  
Just a little faster than finding the pom.xml. :)


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread Olle Hallin
Everyday one learns something new is a good day :D
Olle


2008/11/6 Thiago H. de Paula Figueiredo [EMAIL PROTECTED]

 Em Thu, 06 Nov 2008 12:05:50 -0300, Olle Hallin [EMAIL PROTECTED]
 escreveu:

  Hi,
 If you insist on doing it from within Eclipse, then

   1. install the m2eclipse plugin
   2. enable Maven for your project
   3. right-click pom.xml and invoke Run As - Maven package


 You can also right-click the project and invoke Run As - Maven package.
 Just a little faster than finding the pom.xml. :)

 --
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 http://www.arsmachina.com.br/thiago

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Olle Hallin M.Sc.
+46 70 6653071
[EMAIL PROTECTED]
www.hit.se


RE: Tapestry 5, WAR files and deployment

2008-11-06 Thread James Sherwood
Hello,

I just file/export/war in eclipse. Works fine for tomcat.

--James

-Original Message-
From: Olle Hallin [mailto:[EMAIL PROTECTED] 
Sent: November-06-08 11:15 AM
To: Tapestry users
Subject: Re: Tapestry 5, WAR files and deployment

Everyday one learns something new is a good day :D
Olle


2008/11/6 Thiago H. de Paula Figueiredo [EMAIL PROTECTED]

 Em Thu, 06 Nov 2008 12:05:50 -0300, Olle Hallin [EMAIL PROTECTED]
 escreveu:

  Hi,
 If you insist on doing it from within Eclipse, then

   1. install the m2eclipse plugin
   2. enable Maven for your project
   3. right-click pom.xml and invoke Run As - Maven package


 You can also right-click the project and invoke Run As - Maven package.
 Just a little faster than finding the pom.xml. :)

 --
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 http://www.arsmachina.com.br/thiago

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Olle Hallin M.Sc.
+46 70 6653071
[EMAIL PROTECTED]
www.hit.se



__ Information from ESET Smart Security, version of virus signature 
database 3536 (20081019) __

The message was checked by ESET Smart Security.

http://www.eset.com
 

__ Information from ESET Smart Security, version of virus signature 
database 3536 (20081019) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread tapestryphoto

Thanks Olle, much appreciated!

Although when I try Maven I get:


Error message: Failed to resolve plugin for mojo binding:  
org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test

Root error message: Unable to download the artifact from any repository

p.

Quoting Olle Hallin [EMAIL PROTECTED]:


Hi,

This is most easily done with mvn package. The resulting WAR is found in the
target folder of your project.
Drop it into Tomcat/Jetty, and you're done.

If you insist on doing it from within Eclipse, then

   1. install the m2eclipse plugin
   2. enable Maven for your project
   3. right-click pom.xml and invoke Run As - Maven package


Olle


2008/11/6 James Sherwood [EMAIL PROTECTED]


Hello,

I deploy to tomcat but war essentials should be the same.  I think the only
difference between tomcat and Jetty are Tomcats classloaders which maven
takes care of apparently.

Just create the WAR with eclipse and drop it in your deploy folder(tomcat
is
the webapps directory and you don't even have to create a context) but for
Jetty you may have too. Just do a quick search on deploying war's to jetty.

This is one example that might help you(I am not familiar with Jetty):

http://markmail.org/message/csnnytlurso7b3ut

--James

-Original Message-
From: tapestryphoto [mailto:[EMAIL PROTECTED]
Sent: November-06-08 10:19 AM
To: users@tapestry.apache.org
Subject: Tapestry 5, WAR files and deployment

Hi,

Having gone through the Tapestry tutorials, got to grips with it,
developed a small application and have got it running well I'd like to
actually deploy it.

I notice there are no documents, examples or tutorials (as far as I
can see) that address how to do this. Even the Tapestry 5 book is
pretty silent on the issue (apart from telling me what a WAR file is -
and even I know that). Perhaps someone could whip up a Wiki entry?


I'm using Eclipse. I'd like to:

1) create a WAR from my project

2) deploy it on a server that has Jetty running.


Do I need something like the following build.xml:

project name=war_demo default=build_war
target name=build_war
  war destfile=dportal.war webxml=src/main/webapp/WEB-INF
   classes dir=target/
   /war
/target
/project

Is there anthing else I need to do for this Ant target?

Or do I use Maven?  And is that something like a command line call:
mvn war:war
or are there other things I need to do first?


I then place the resulting WAR in the webapps directory under Jetty
and start Jetty.

Correct?


p.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__ Information from ESET Smart Security, version of virus signature
database 3536 (20081019) __

The message was checked by ESET Smart Security.

http://www.eset.com



__ Information from ESET Smart Security, version of virus signature
database 3536 (20081019) __

The message was checked by ESET Smart Security.

http://www.eset.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Olle Hallin M.Sc.
+46 70 6653071
[EMAIL PROTECTED]
www.hit.se






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread Olle Hallin
Does it work from the command line?
Olle


2008/11/6 tapestryphoto [EMAIL PROTECTED]

 Thanks Olle, much appreciated!

 Although when I try Maven I get:


 Error message: Failed to resolve plugin for mojo binding:
 org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test
 Root error message: Unable to download the artifact from any repository

 p.

 Quoting Olle Hallin [EMAIL PROTECTED]:

  Hi,

 This is most easily done with mvn package. The resulting WAR is found in
 the
 target folder of your project.
 Drop it into Tomcat/Jetty, and you're done.

 If you insist on doing it from within Eclipse, then

   1. install the m2eclipse plugin
   2. enable Maven for your project
   3. right-click pom.xml and invoke Run As - Maven package



 Olle


 2008/11/6 James Sherwood [EMAIL PROTECTED]

  Hello,

 I deploy to tomcat but war essentials should be the same.  I think the
 only
 difference between tomcat and Jetty are Tomcats classloaders which maven
 takes care of apparently.

 Just create the WAR with eclipse and drop it in your deploy folder(tomcat
 is
 the webapps directory and you don't even have to create a context) but
 for
 Jetty you may have too. Just do a quick search on deploying war's to
 jetty.

 This is one example that might help you(I am not familiar with Jetty):

 http://markmail.org/message/csnnytlurso7b3ut

 --James

 -Original Message-
 From: tapestryphoto [mailto:[EMAIL PROTECTED]
 Sent: November-06-08 10:19 AM
 To: users@tapestry.apache.org
 Subject: Tapestry 5, WAR files and deployment

 Hi,

 Having gone through the Tapestry tutorials, got to grips with it,
 developed a small application and have got it running well I'd like to
 actually deploy it.

 I notice there are no documents, examples or tutorials (as far as I
 can see) that address how to do this. Even the Tapestry 5 book is
 pretty silent on the issue (apart from telling me what a WAR file is -
 and even I know that). Perhaps someone could whip up a Wiki entry?


 I'm using Eclipse. I'd like to:

 1) create a WAR from my project

 2) deploy it on a server that has Jetty running.


 Do I need something like the following build.xml:

 project name=war_demo default=build_war
 target name=build_war
  war destfile=dportal.war webxml=src/main/webapp/WEB-INF
   classes dir=target/
   /war
 /target
 /project

 Is there anthing else I need to do for this Ant target?

 Or do I use Maven?  And is that something like a command line call:
 mvn war:war
 or are there other things I need to do first?


 I then place the resulting WAR in the webapps directory under Jetty
 and start Jetty.

 Correct?


 p.





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 __ Information from ESET Smart Security, version of virus
 signature
 database 3536 (20081019) __

 The message was checked by ESET Smart Security.

 http://www.eset.com



 __ Information from ESET Smart Security, version of virus
 signature
 database 3536 (20081019) __

 The message was checked by ESET Smart Security.

 http://www.eset.com



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Olle Hallin M.Sc.
 +46 70 6653071
 [EMAIL PROTECTED]
 www.hit.se





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Olle Hallin M.Sc.
+46 70 6653071
[EMAIL PROTECTED]
www.hit.se


Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread tapestryphoto

Quoting Olle Hallin [EMAIL PROTECTED]:


Does it work from the command line?
Olle



I tried mvn war:war from the project directory.

Bizarrely it gives even more problems.  I find Maven very frustrating...


[INFO] Failed to resolve artifact.

Missing:
--
1) org.apache.maven:maven-archiver:jar:2.2

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.apache.maven  
-DartifactId=maven-arc

hiver -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the  
file there:


  mvn deploy:deploy-file -DgroupId=org.apache.maven  
-DartifactId=maven-archi
ver -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]  
-DrepositoryI

d=[id]

  Path to dependency:
1) org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
2) org.apache.maven:maven-archiver:jar:2.2

2) org.codehaus.plexus:plexus-utils:jar:1.4.7

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.codehaus.plexus  
-DartifactId=plexus

-utils -Dversion=1.4.7 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the  
file there:


  mvn deploy:deploy-file -DgroupId=org.codehaus.plexus  
-DartifactId=plexus-u
tils -Dversion=1.4.7 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]  
-Dreposito

ryId=[id]

  Path to dependency:
1) org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
2) org.codehaus.plexus:plexus-utils:jar:1.4.7

3) com.thoughtworks.xstream:xstream:jar:1.2.2

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=com.thoughtworks.xstream  
-DartifactId=x

stream -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the  
file there:


  mvn deploy:deploy-file -DgroupId=com.thoughtworks.xstream  
-DartifactId=xst
ream -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]  
-Dreposito

ryId=[id]

  Path to dependency:
1) org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
2) com.thoughtworks.xstream:xstream:jar:1.2.2

--
3 required artifacts are missing.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tapestry 5, WAR files and deployment

2008-11-06 Thread James Sherwood
Hello,

You need to put those dependencies in your pom.xml file.(did you check if it 
works just using the eclipse built in war exporter?)


--James

-Original Message-
From: tapestryphoto [mailto:[EMAIL PROTECTED] 
Sent: November-06-08 11:50 AM
To: users@tapestry.apache.org
Subject: Re: Tapestry 5, WAR files and deployment

Quoting Olle Hallin [EMAIL PROTECTED]:

 Does it work from the command line?
 Olle


I tried mvn war:war from the project directory.

Bizarrely it gives even more problems.  I find Maven very frustrating...


[INFO] Failed to resolve artifact.

Missing:
--
1) org.apache.maven:maven-archiver:jar:2.2

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=org.apache.maven  
-DartifactId=maven-arc
hiver -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy the  
file there:

   mvn deploy:deploy-file -DgroupId=org.apache.maven  
-DartifactId=maven-archi
ver -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]  
-DrepositoryI
d=[id]

   Path to dependency:
 1) org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
 2) org.apache.maven:maven-archiver:jar:2.2

2) org.codehaus.plexus:plexus-utils:jar:1.4.7

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=org.codehaus.plexus  
-DartifactId=plexus
-utils -Dversion=1.4.7 -Dpackaging=jar -Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy the  
file there:

   mvn deploy:deploy-file -DgroupId=org.codehaus.plexus  
-DartifactId=plexus-u
tils -Dversion=1.4.7 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]  
-Dreposito
ryId=[id]

   Path to dependency:
 1) org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
 2) org.codehaus.plexus:plexus-utils:jar:1.4.7

3) com.thoughtworks.xstream:xstream:jar:1.2.2

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=com.thoughtworks.xstream  
-DartifactId=x
stream -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy the  
file there:

   mvn deploy:deploy-file -DgroupId=com.thoughtworks.xstream  
-DartifactId=xst
ream -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]  
-Dreposito
ryId=[id]

   Path to dependency:
 1) org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
 2) com.thoughtworks.xstream:xstream:jar:1.2.2

--
3 required artifacts are missing.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__ Information from ESET Smart Security, version of virus signature 
database 3536 (20081019) __

The message was checked by ESET Smart Security.

http://www.eset.com

 

__ Information from ESET Smart Security, version of virus signature 
database 3536 (20081019) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread Fernando Padilla

This is probably because it can't download the files..

I would double check your networking, but because you're emailing us 
I'll assume it's working.


Someone I know also had issue like this, and the cause for him was he 
installed it as root on his laptop, so when he tried to build it as his 
user he didn't have permissions to actually modify the repository.  So 
it could not successfully fetch any dependencies.


Though I don't recommend it, he runs all maven with sudo.

Not sure what the best way to install it is, but I installed maven on my 
laptop simply by extracting it into a directory as my user, then adding 
the bin directory to my user's path..






tapestryphoto wrote:

Quoting Olle Hallin [EMAIL PROTECTED]:


Does it work from the command line?
Olle



I tried mvn war:war from the project directory.

Bizarrely it gives even more problems.  I find Maven very frustrating...


[INFO] Failed to resolve artifact.

Missing:
--
1) org.apache.maven:maven-archiver:jar:2.2

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.apache.maven 
-DartifactId=maven-arc

hiver -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file 
there:


  mvn deploy:deploy-file -DgroupId=org.apache.maven 
-DartifactId=maven-archi
ver -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] 
-DrepositoryI

d=[id]

  Path to dependency:
1) 
org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1

2) org.apache.maven:maven-archiver:jar:2.2

2) org.codehaus.plexus:plexus-utils:jar:1.4.7

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.codehaus.plexus 
-DartifactId=plexus

-utils -Dversion=1.4.7 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file 
there:


  mvn deploy:deploy-file -DgroupId=org.codehaus.plexus 
-DartifactId=plexus-u
tils -Dversion=1.4.7 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] 
-Dreposito

ryId=[id]

  Path to dependency:
1) 
org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1

2) org.codehaus.plexus:plexus-utils:jar:1.4.7

3) com.thoughtworks.xstream:xstream:jar:1.2.2

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=com.thoughtworks.xstream 
-DartifactId=x

stream -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file 
there:


  mvn deploy:deploy-file -DgroupId=com.thoughtworks.xstream 
-DartifactId=xst
ream -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] 
-Dreposito

ryId=[id]

  Path to dependency:
1) 
org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1

2) com.thoughtworks.xstream:xstream:jar:1.2.2

--
3 required artifacts are missing.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]