QuickTip: maven jetty plugin issue

The following issue is encountered most of the times in maven war projects when you type “mvn clean jetty:run” in the command line and hope to see your WAR project deployed on jetty but instead you get the dreaded error.

[ERROR] BUILD ERROR
[INFO] ————————————————————————
[INFO] The plugin ‘org.apache.maven.plugins:maven-jetty-plugin’ does not exist or no valid version could be found
[INFO] ————————————————————————
[INFO] For more information, run Maven with the -e switch

The easiest way to fix this issue is to give complete info about the jetty plugin in the command line and deploy your WAR file i.e.
mvn org.mortbay.jetty:maven-jetty-plugin:run

The above command should fix your problem.

Share

Advertisements

About Tarun Sapra
Agile Java developer @ Xebia India

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: