Run mvn jetty:run problem
In section 5.4. Configuring the Jetty Plugin I had this problem:
To run mvn jetty:run I had to qualify jetty like this:
>mvn org.mortbay.jetty:jetty:run
or alternatively adding
<plugingroups>
<plugingroup>org.mortbay.jetty</plugingroup>
</plugingroups>
to settings.xml
Now I can run jetty like this:
>mvn jetty:run
To run mvn jetty:run I had to qualify jetty like this:
>mvn org.mortbay.jetty:jetty:run
or alternatively adding
<plugingroups>
<plugingroup>org.mortbay.jetty</plugingroup>
</plugingroups>
to settings.xml
Now I can run jetty like this:
>mvn jetty:run
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?I believe that this is happening because you are attempting to run "jetty:run" from the top-level directory of the project. If you do this, the Jetty plugin is not configured. Trying running "mvn jetty:run" from the Web Application project.
I've created a JIRA issue to follow up on this if it is a bug: https://issues.sonatype.org/browse/MV...
Even if it isn't a bug, I think we need to have a clarifying section in the book that tells you to run this particular command line from the web application module. -
Inappropriate?Alright, I added a clarifying note to this section that tells people to run "mvn jetty:run" from the simple-webapp/ project directory.
Thanks for reporting the problem.
I’m thankful
The company says
this answers the question
Loading Profile...



EMPLOYEE