When I import this maven project into Eclipse (Kepler) - the HelloWorldServlet.java class file has some errors in it:
(underlined in red):
@WebServlet (could not resolve to type)
HttpServlet (same error as above)
Should these come up as errors in eclipse? (ie does it matter?) Or should there be jar lib's included in the project setup? (but this still won't solve the maven building of package from the command line).
Very frustrating ... any help would be appreciated - I've downloaded the quickstart example, extracted it, tried building it and it fails ...(I've not changed a single line of code!) very strange
The main problem is that the page you refer to is obsolete.
The current quickstart information can be found here: JBoss AS Quickstarts
The current helloworld download and instructions can be found here: helloworld: Helloworld Example
The current helloworld tutorial can be found here: CDI + Servlet — Helloworld quickstart
There is a fully configured Maven 'settings.xml' file in this version of the quickstart download. Follow the instructions here and you should not run into any problems: JBoss AS Quickstarts: Configure Maven