Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting maven to start jetty (Tapestry Tutorial)

I'm trying to work through the Tapestry tutorial.

I think I got everything set up right and so far so good but I get to the part where the tut rather glibly states:

Change into the newly created directory, and execute the command:

mvn jetty:run

Again, the first time, there's a dizzying number of downloads, but before you know it, the Jetty servlet container is up and running.

I wish! that only results in the following error.

The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not exist or no valid version could be found

I have maven-2.2.0, Jetty-5.1.9

The only thing I did different to what the tutorial stated was I used archetype:generate instead of archetype:create as create failed and noted it was deprecated and suggested generate instead.

like image 579
Ron Tuffin Avatar asked Nov 27 '25 17:11

Ron Tuffin


1 Answers

This is due to missing maven-jetty-plugin in your pom.xml file :

Add the following dependency in pom:

<plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <version>6.0.1</version>
      </plugin>

now mvn clean install and then jetty run it will work

like image 187
venkatram mutyala Avatar answered Nov 29 '25 10:11

venkatram mutyala



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!