Getting maven to launch the pier (Tapestry Tutorial)

I'm trying to work with a tapestry tutorial.

I think everything is set up correctly for me and so far so good, but I get to the part where tut is pretty smoothing out:

Change to newly created and run the command:

mvn jetty:run

Again, for the first time a dizzying number of downloads, but before you know it, the Jetty surfing container is up and running.

I wish you! which leads to the following error.

The plugin 'Org.apache.maven.plugins: Maven-pier-plugin' does not exist or not a valid version can be found

I have maven-2.2.0, Jetty-5.1.9

The only thing that differed from what was said in the textbook was that I used the archetype: generate instead of the archetype: create because the creation failed, and noted that it was outdated and suggested creating instead.

+3
source share
2 answers

This is due to the absence of the maven-jetty plugin in the pom.xml file:

Add the following dependency to pom:

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

now mvn clean install and then run the pier will work

+1
source

, org.apache.maven.plugins org.codehaus.mojo, Maven , . : pom pluginGroup settings.xml

0

Source: https://habr.com/ru/post/1712605/


All Articles