Meaningless Drivel is fun!*
The moose likes Ant, Maven and Other Build Tools and the fly likes mvn jetty:run-war - richfaces-demo.war Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "mvn jetty:run-war - richfaces-demo.war" Watch "mvn jetty:run-war - richfaces-demo.war" New topic
Author

mvn jetty:run-war - richfaces-demo.war

Yeti Tawa
Greenhorn

Joined: May 11, 2009
Posts: 2
Hi all,

I am very new to the Java world, and have struggled (ultimatly successfully) through getting a JBoss server running (jboss-4.2.3.GA), and Eclipse working and building apps using RichFaces.

I wanted to get the Richfaces demo running locally, and deployed the war file successfully (http://repository.jboss.org/maven2/org/richfaces/samples/richfaces-demo/3.3.0.GA/richfaces-demo-3.3.0.GA-jee5.war). However, the Tag Information is missing, replaced with:
The information from this tab is generated and incorporated in the richfaces-demo.war file with Maven process. The target page is located under /WEB-INF/tlddoc folder.
As soon as you read this text, you have no such folder in your run-time enviroment right now.
If you use Jetty to run, use 'mvn jetty:run-war' command.


I have tried installing Maven, but am unsure how to use it - still not sure what it is really for - is it a replacementfor Ant?

Best I can tell, Jetty is a webserver, so do I need to install that to my server to allow the Tag Information to display?

Can anyone help?
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there and welcome to Javaranch!

Maven is a build tool and much much more. Many would argue that it is a competitor/replacement for Ant, but the topic is a little more complex than that.

Have you read the free online book "Maven - The Definitive Guide"? It will tell you everything you need to know .


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Yeti Tawa
Greenhorn

Joined: May 11, 2009
Posts: 2
Hi Martijn,

Thanks for the reply. While I appreciate the suggestion, and have added the book you recommend to my reading list, I have already got familiar with Ant as a build tool and was hoping to work with that while I get familiar with working in the Eclipse / JBoss environments and building web apps using RichFaces.

In the meantime, I still would like help getting the RichFaces tag library docs working in my local instance of the demo. I do not have an Internet connection from my dev environment, and currently have to do swivel chair to look up tag information for the RichFaces tags (which gets old real fast). I was hoping installing the RichFaces demo would solve this problem for me, but not.

Where do I run 'mvn jetty:run-war' from, and what is the expected result? Do I need to install Jetty first?
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

If you have no Internet connection then mvn anything is pretty much going to fail (it needs to download a ton of artifacts from the internet), you can of course host those artifacts in a local proxy (Nexus, Artifactory are both good artifact managers for Maven), but of course you'd still need to get the artifacts from somewhere initially....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mvn jetty:run-war - richfaces-demo.war
 
Similar Threads
first example, i use maven2
Maven jetty/tomcat plugin doubt
Wicket: how to deploy and run the examples?
compile servlet with Maven 2
How to change jetty binding port number in maven.